lancer-shared 1.2.65 → 1.2.67

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 (242) hide show
  1. package/dist/bundle.cjs.js +2 -0
  2. package/dist/schemas/organization/index.d.ts +12 -8
  3. package/dist/schemas/organization/subscription.d.ts +4 -4
  4. package/dist/schemas/scraper/scrape-payload.d.ts +12 -7
  5. package/package.json +1 -1
  6. package/dist/constants/account-status.d.ts +0 -3
  7. package/dist/constants/account-status.js +0 -17
  8. package/dist/constants/collections.d.ts +0 -13
  9. package/dist/constants/collections.js +0 -16
  10. package/dist/constants/common-questions.js +0 -60
  11. package/dist/constants/index.js +0 -40
  12. package/dist/constants/job-filter-options.js +0 -268
  13. package/dist/constants/job-status.js +0 -26
  14. package/dist/constants/mappings/countryMapping.js +0 -122
  15. package/dist/constants/mappings/regionMapping.js +0 -242
  16. package/dist/constants/organization.d.ts +0 -2
  17. package/dist/constants/proxies.d.ts +0 -4
  18. package/dist/constants/routes.js +0 -114
  19. package/dist/constants/upwork-accounts.js +0 -21
  20. package/dist/constants/upwork-filters.d.ts +0 -5
  21. package/dist/constants/upwork-filters.js +0 -75
  22. package/dist/index.js +0 -20
  23. package/dist/schemas/account/account-status.js +0 -11
  24. package/dist/schemas/account/bidder-account.js +0 -37
  25. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
  26. package/dist/schemas/account/index.js +0 -19
  27. package/dist/schemas/account/manager-account.d.ts +0 -116
  28. package/dist/schemas/account/manager-account.js +0 -38
  29. package/dist/schemas/account/scraper-account.js +0 -37
  30. package/dist/schemas/ai/ai-config.d.ts +0 -36
  31. package/dist/schemas/ai/ai-config.js +0 -12
  32. package/dist/schemas/ai/index.d.ts +0 -3
  33. package/dist/schemas/ai/index.js +0 -19
  34. package/dist/schemas/ai/proposal.d.ts +0 -82
  35. package/dist/schemas/ai/proposal.js +0 -16
  36. package/dist/schemas/ai/suitability.d.ts +0 -37
  37. package/dist/schemas/ai/suitability.js +0 -17
  38. package/dist/schemas/ai-config/ai-config.d.ts +0 -39
  39. package/dist/schemas/ai-config/ai-config.js +0 -12
  40. package/dist/schemas/ai-config/index.d.ts +0 -1
  41. package/dist/schemas/ai-config/index.js +0 -17
  42. package/dist/schemas/bid/bid-result.js +0 -15
  43. package/dist/schemas/bid/bid-status.d.ts +0 -30
  44. package/dist/schemas/bid/bid-status.js +0 -15
  45. package/dist/schemas/bid/bid.js +0 -36
  46. package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
  47. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
  48. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
  49. package/dist/schemas/bid/index.js +0 -18
  50. package/dist/schemas/bidding/index.d.ts +0 -1
  51. package/dist/schemas/bidding/index.js +0 -17
  52. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  53. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  54. package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
  55. package/dist/schemas/bidding/proposal-dto.js +0 -18
  56. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  57. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  58. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  59. package/dist/schemas/campaign/campaign-insights.js +0 -31
  60. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -82
  61. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  62. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  63. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  64. package/dist/schemas/campaign/campaign.js +0 -44
  65. package/dist/schemas/campaign/index.js +0 -23
  66. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  67. package/dist/schemas/chat-message/chat-message.js +0 -13
  68. package/dist/schemas/chat-message/index.d.ts +0 -1
  69. package/dist/schemas/chat-message/index.js +0 -17
  70. package/dist/schemas/config/agency-config.d.ts +0 -17
  71. package/dist/schemas/config/agency-config.js +0 -10
  72. package/dist/schemas/config/index.d.ts +0 -1
  73. package/dist/schemas/config/index.js +0 -17
  74. package/dist/schemas/index.js +0 -32
  75. package/dist/schemas/job/index.js +0 -19
  76. package/dist/schemas/job/job-details.d.ts +0 -335
  77. package/dist/schemas/job/job-details.js +0 -29
  78. package/dist/schemas/job/job-note.d.ts +0 -83
  79. package/dist/schemas/job/job-note.js +0 -30
  80. package/dist/schemas/job/job-pipeline.d.ts +0 -74
  81. package/dist/schemas/job/job-pipeline.js +0 -29
  82. package/dist/schemas/job/job-status.d.ts +0 -3
  83. package/dist/schemas/job/job-status.js +0 -27
  84. package/dist/schemas/job/job-suitability.d.ts +0 -12
  85. package/dist/schemas/job/job-suitability.js +0 -13
  86. package/dist/schemas/job/job.d.ts +0 -1160
  87. package/dist/schemas/job/job.js +0 -90
  88. package/dist/schemas/job/pipeline-job.d.ts +0 -608
  89. package/dist/schemas/job/pipeline-job.js +0 -43
  90. package/dist/schemas/job/upwork-job.d.ts +0 -334
  91. package/dist/schemas/job/upwork-job.js +0 -60
  92. package/dist/schemas/job-filters/index.d.ts +0 -1
  93. package/dist/schemas/job-filters/index.js +0 -17
  94. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  95. package/dist/schemas/job-filters/job-filters.js +0 -87
  96. package/dist/schemas/knowledge-object/index.d.ts +0 -1
  97. package/dist/schemas/knowledge-object/index.js +0 -17
  98. package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
  99. package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
  100. package/dist/schemas/lead/index.js +0 -19
  101. package/dist/schemas/lead/lead-note.d.ts +0 -83
  102. package/dist/schemas/lead/lead-note.js +0 -30
  103. package/dist/schemas/lead/lead-status.js +0 -26
  104. package/dist/schemas/lead/lead.d.ts +0 -1897
  105. package/dist/schemas/lead/lead.js +0 -143
  106. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  107. package/dist/schemas/logger/index.js +0 -17
  108. package/dist/schemas/logger/log-event.js +0 -66
  109. package/dist/schemas/organization/index.js +0 -17
  110. package/dist/schemas/organization/organization.d.ts +0 -70
  111. package/dist/schemas/organization/organization.js +0 -19
  112. package/dist/schemas/proxy/index.js +0 -17
  113. package/dist/schemas/proxy/proxy.js +0 -23
  114. package/dist/schemas/saved-search/index.js +0 -12
  115. package/dist/schemas/scraper/index.js +0 -18
  116. package/dist/schemas/scraper/scrape-payload.js +0 -16
  117. package/dist/schemas/scraper/scrape-response.d.ts +0 -345
  118. package/dist/schemas/scraper/scrape-response.js +0 -9
  119. package/dist/schemas/scraper/scrape-result.js +0 -23
  120. package/dist/schemas/shared.js +0 -16
  121. package/dist/schemas/time-filter/index.js +0 -9
  122. package/dist/schemas/upwork-account/index.d.ts +0 -3
  123. package/dist/schemas/upwork-account/index.js +0 -19
  124. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  125. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  126. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  127. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  128. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
  129. package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
  130. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  131. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
  132. package/dist/schemas/user/index.js +0 -55
  133. package/dist/types/account/account-status.d.ts +0 -3
  134. package/dist/types/account/account-status.js +0 -2
  135. package/dist/types/account/bidder-account.d.ts +0 -7
  136. package/dist/types/account/bidder-account.js +0 -2
  137. package/dist/types/account/index.d.ts +0 -3
  138. package/dist/types/account/index.js +0 -19
  139. package/dist/types/account/manager-account.d.ts +0 -7
  140. package/dist/types/account/manager-account.js +0 -2
  141. package/dist/types/account/scraper-account.d.ts +0 -5
  142. package/dist/types/account/scraper-account.js +0 -2
  143. package/dist/types/ai/ai-config.d.ts +0 -6
  144. package/dist/types/ai/ai-config.js +0 -2
  145. package/dist/types/ai/index.d.ts +0 -3
  146. package/dist/types/ai/index.js +0 -19
  147. package/dist/types/ai/proposal.d.ts +0 -10
  148. package/dist/types/ai/proposal.js +0 -2
  149. package/dist/types/ai/suitability.d.ts +0 -6
  150. package/dist/types/ai/suitability.js +0 -2
  151. package/dist/types/ai-config/ai-config.d.ts +0 -6
  152. package/dist/types/ai-config/ai-config.js +0 -2
  153. package/dist/types/ai-config/index.d.ts +0 -1
  154. package/dist/types/ai-config/index.js +0 -17
  155. package/dist/types/bid/bid-result.d.ts +0 -5
  156. package/dist/types/bid/bid-result.js +0 -2
  157. package/dist/types/bid/bid-status.d.ts +0 -5
  158. package/dist/types/bid/bid-status.js +0 -2
  159. package/dist/types/bid/bid.d.ts +0 -9
  160. package/dist/types/bid/bid.js +0 -2
  161. package/dist/types/bid/index.d.ts +0 -2
  162. package/dist/types/bid/index.js +0 -18
  163. package/dist/types/bidding/index.d.ts +0 -1
  164. package/dist/types/bidding/index.js +0 -17
  165. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  166. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  167. package/dist/types/bidding/proposal-dto.d.ts +0 -3
  168. package/dist/types/bidding/proposal-dto.js +0 -2
  169. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  170. package/dist/types/campaign/campaign-analytics.js +0 -2
  171. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  172. package/dist/types/campaign/campaign-expenses.js +0 -2
  173. package/dist/types/campaign/campaign-insights.js +0 -2
  174. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  175. package/dist/types/campaign/campaign-integrations.js +0 -2
  176. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  177. package/dist/types/campaign/campaign-job-count.js +0 -2
  178. package/dist/types/campaign/campaign.js +0 -2
  179. package/dist/types/campaign/index.js +0 -22
  180. package/dist/types/chat-message/chat-message.d.ts +0 -4
  181. package/dist/types/chat-message/chat-message.js +0 -2
  182. package/dist/types/chat-message/index.d.ts +0 -1
  183. package/dist/types/chat-message/index.js +0 -17
  184. package/dist/types/config/agency-config.d.ts +0 -4
  185. package/dist/types/config/agency-config.js +0 -2
  186. package/dist/types/config/index.d.ts +0 -1
  187. package/dist/types/config/index.js +0 -17
  188. package/dist/types/index.d.ts +0 -15
  189. package/dist/types/index.js +0 -29
  190. package/dist/types/job/index.d.ts +0 -48
  191. package/dist/types/job/index.js +0 -19
  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-note.d.ts +0 -10
  195. package/dist/types/job/job-note.js +0 -2
  196. package/dist/types/job/job-pipeline.d.ts +0 -4
  197. package/dist/types/job/job-pipeline.js +0 -2
  198. package/dist/types/job/job-status.d.ts +0 -5
  199. package/dist/types/job/job-status.js +0 -12
  200. package/dist/types/job/job-suitability.d.ts +0 -3
  201. package/dist/types/job/job-suitability.js +0 -2
  202. package/dist/types/job/job.d.ts +0 -36
  203. package/dist/types/job/job.js +0 -2
  204. package/dist/types/job/nuxt.d.ts +0 -4
  205. package/dist/types/job-filters/index.d.ts +0 -1
  206. package/dist/types/job-filters/index.js +0 -17
  207. package/dist/types/job-filters/job-filters.d.ts +0 -4
  208. package/dist/types/job-filters/job-filters.js +0 -2
  209. package/dist/types/knowledge-object/index.d.ts +0 -1
  210. package/dist/types/knowledge-object/index.js +0 -17
  211. package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
  212. package/dist/types/knowledge-object/knowledge-object.js +0 -2
  213. package/dist/types/logger/index.d.ts +0 -1
  214. package/dist/types/logger/index.js +0 -17
  215. package/dist/types/logger/log-event.js +0 -2
  216. package/dist/types/saved-search/index.d.ts +0 -6
  217. package/dist/types/saved-search/index.js +0 -2
  218. package/dist/types/scraper/index.d.ts +0 -2
  219. package/dist/types/scraper/index.js +0 -18
  220. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  221. package/dist/types/scraper/scrape-payload.js +0 -2
  222. package/dist/types/scraper/scrape-response.d.ts +0 -4
  223. package/dist/types/scraper/scrape-response.js +0 -2
  224. package/dist/types/scraper/scrape-result.d.ts +0 -8
  225. package/dist/types/scraper/scrape-result.js +0 -2
  226. package/dist/types/shared.d.ts +0 -8
  227. package/dist/types/time-filter/index.d.ts +0 -3
  228. package/dist/types/time-filter/index.js +0 -2
  229. package/dist/types/transaction/index.d.ts +0 -4
  230. package/dist/types/upwork-account/index.d.ts +0 -3
  231. package/dist/types/upwork-account/index.js +0 -19
  232. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  233. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  234. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  235. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  236. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  237. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  238. package/dist/types/usage/index.d.ts +0 -6
  239. package/dist/types/user/index.d.ts +0 -15
  240. package/dist/types/user/index.js +0 -2
  241. package/dist/utils/index.js +0 -17
  242. package/dist/utils/try-catch.js +0 -25
@@ -12263,6 +12263,7 @@ const subscriptionStatusEnum = z.enum([
12263
12263
  "trialing",
12264
12264
  "cancelled",
12265
12265
  "paused",
12266
+ "payment_processing",
12266
12267
  "payment_pending",
12267
12268
  "payment_failed",
12268
12269
  ]);
@@ -12339,6 +12340,7 @@ const organizationSchema = objectType({
12339
12340
  lastBidTime: numberType().nullable(),
12340
12341
  createdAt: numberType(),
12341
12342
  updatedAt: numberType(),
12343
+ openRouterApiKey: stringType().nullable(),
12342
12344
  });
12343
12345
  const caseStudySchema = objectType({
12344
12346
  title: stringType(),
@@ -24,7 +24,7 @@ export declare const organizationSchema: z.ZodObject<{
24
24
  subscription: z.ZodNullable<z.ZodObject<{
25
25
  planId: z.ZodString;
26
26
  pendingPlanId: z.ZodNullable<z.ZodString>;
27
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
27
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
28
28
  startedAt: z.ZodNumber;
29
29
  currentPeriodEnd: z.ZodNumber;
30
30
  stripe: z.ZodObject<{
@@ -87,7 +87,7 @@ export declare const organizationSchema: z.ZodObject<{
87
87
  source: z.ZodEnum<["stripe", "manual"]>;
88
88
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
89
89
  }, "strip", z.ZodTypeAny, {
90
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
90
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
91
91
  planId: string;
92
92
  pendingPlanId: string | null;
93
93
  startedAt: number;
@@ -108,7 +108,7 @@ export declare const organizationSchema: z.ZodObject<{
108
108
  source: "stripe" | "manual";
109
109
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
110
110
  }, {
111
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
111
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
112
112
  planId: string;
113
113
  pendingPlanId: string | null;
114
114
  startedAt: number;
@@ -180,6 +180,7 @@ export declare const organizationSchema: z.ZodObject<{
180
180
  lastBidTime: z.ZodNullable<z.ZodNumber>;
181
181
  createdAt: z.ZodNumber;
182
182
  updatedAt: z.ZodNumber;
183
+ openRouterApiKey: z.ZodNullable<z.ZodString>;
183
184
  }, "strip", z.ZodTypeAny, {
184
185
  type: "agency" | "freelancer";
185
186
  id: string;
@@ -187,7 +188,7 @@ export declare const organizationSchema: z.ZodObject<{
187
188
  associatedBidders: string[] | null;
188
189
  active: boolean;
189
190
  subscription: {
190
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
191
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
191
192
  planId: string;
192
193
  pendingPlanId: string | null;
193
194
  startedAt: number;
@@ -224,6 +225,7 @@ export declare const organizationSchema: z.ZodObject<{
224
225
  lastBidTime: number | null;
225
226
  createdAt: number;
226
227
  updatedAt: number;
228
+ openRouterApiKey: string | null;
227
229
  }, {
228
230
  type: "agency" | "freelancer";
229
231
  id: string;
@@ -231,7 +233,7 @@ export declare const organizationSchema: z.ZodObject<{
231
233
  associatedBidders: string[] | null;
232
234
  active: boolean;
233
235
  subscription: {
234
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
236
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
235
237
  planId: string;
236
238
  pendingPlanId: string | null;
237
239
  startedAt: number;
@@ -268,6 +270,7 @@ export declare const organizationSchema: z.ZodObject<{
268
270
  lastBidTime: number | null;
269
271
  createdAt: number;
270
272
  updatedAt: number;
273
+ openRouterApiKey: string | null;
271
274
  }>;
272
275
  export declare const caseStudySchema: z.ZodObject<{
273
276
  title: z.ZodString;
@@ -361,7 +364,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
361
364
  subscription: z.ZodNullable<z.ZodObject<{
362
365
  planId: z.ZodString;
363
366
  pendingPlanId: z.ZodNullable<z.ZodString>;
364
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
367
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
365
368
  startedAt: z.ZodNumber;
366
369
  currentPeriodEnd: z.ZodNumber;
367
370
  stripe: z.ZodObject<{
@@ -424,7 +427,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
424
427
  source: z.ZodEnum<["stripe", "manual"]>;
425
428
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
426
429
  }, "strip", z.ZodTypeAny, {
427
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
430
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
428
431
  planId: string;
429
432
  pendingPlanId: string | null;
430
433
  startedAt: number;
@@ -445,7 +448,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
445
448
  source: "stripe" | "manual";
446
449
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
447
450
  }, {
448
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
451
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
449
452
  planId: string;
450
453
  pendingPlanId: string | null;
451
454
  startedAt: number;
@@ -517,6 +520,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
517
520
  lastBidTime: z.ZodNullable<z.ZodNumber>;
518
521
  createdAt: z.ZodNumber;
519
522
  updatedAt: z.ZodNumber;
523
+ openRouterApiKey: z.ZodNullable<z.ZodString>;
520
524
  }, "type" | "name">, "strip", z.ZodTypeAny, {
521
525
  type: "agency" | "freelancer";
522
526
  name: string;
@@ -1,5 +1,5 @@
1
1
  import { infer, z } from "zod";
2
- export declare const subscriptionStatusEnum: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
2
+ export declare const subscriptionStatusEnum: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3
3
  export declare const subscriptionSourceEnum: z.ZodEnum<["stripe", "manual"]>;
4
4
  export declare const subscriptionStripeMetadataItemSchema: z.ZodObject<{
5
5
  id: z.ZodString;
@@ -81,7 +81,7 @@ export declare const subscriptionStripeMetadataSchema: z.ZodObject<{
81
81
  export declare const subscriptionSchema: z.ZodObject<{
82
82
  planId: z.ZodString;
83
83
  pendingPlanId: z.ZodNullable<z.ZodString>;
84
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
84
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
85
85
  startedAt: z.ZodNumber;
86
86
  currentPeriodEnd: z.ZodNumber;
87
87
  stripe: z.ZodObject<{
@@ -157,7 +157,7 @@ export declare const subscriptionSchema: z.ZodObject<{
157
157
  hosted_invoice_url: string | null;
158
158
  };
159
159
  };
160
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
160
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
161
161
  planId: string;
162
162
  pendingPlanId: string | null;
163
163
  startedAt: number;
@@ -178,7 +178,7 @@ export declare const subscriptionSchema: z.ZodObject<{
178
178
  hosted_invoice_url: string | null;
179
179
  };
180
180
  };
181
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
181
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
182
182
  planId: string;
183
183
  pendingPlanId: string | null;
184
184
  startedAt: number;
@@ -576,7 +576,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
576
576
  subscription: import("zod").ZodNullable<import("zod").ZodObject<{
577
577
  planId: import("zod").ZodString;
578
578
  pendingPlanId: import("zod").ZodNullable<import("zod").ZodString>;
579
- status: import("zod").ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
579
+ status: import("zod").ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
580
580
  startedAt: import("zod").ZodNumber;
581
581
  currentPeriodEnd: import("zod").ZodNumber;
582
582
  stripe: import("zod").ZodObject<{
@@ -639,7 +639,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
639
639
  source: import("zod").ZodEnum<["stripe", "manual"]>;
640
640
  usage: import("zod").ZodRecord<import("zod").ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, import("zod").ZodNumber>;
641
641
  }, "strip", import("zod").ZodTypeAny, {
642
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
642
+ status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
643
643
  planId: string;
644
644
  pendingPlanId: string | null;
645
645
  startedAt: number;
@@ -660,7 +660,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
660
660
  source: "stripe" | "manual";
661
661
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
662
662
  }, {
663
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
663
+ status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
664
664
  planId: string;
665
665
  pendingPlanId: string | null;
666
666
  startedAt: number;
@@ -732,6 +732,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
732
732
  lastBidTime: import("zod").ZodNullable<import("zod").ZodNumber>;
733
733
  createdAt: import("zod").ZodNumber;
734
734
  updatedAt: import("zod").ZodNumber;
735
+ openRouterApiKey: import("zod").ZodNullable<import("zod").ZodString>;
735
736
  }, "strip", import("zod").ZodTypeAny, {
736
737
  type: "agency" | "freelancer";
737
738
  id: string;
@@ -741,7 +742,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
741
742
  active: boolean;
742
743
  associatedBidders: string[] | null;
743
744
  subscription: {
744
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
745
+ status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
745
746
  planId: string;
746
747
  pendingPlanId: string | null;
747
748
  startedAt: number;
@@ -776,6 +777,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
776
777
  savedCard: boolean;
777
778
  } | null;
778
779
  lastBidTime: number | null;
780
+ openRouterApiKey: string | null;
779
781
  }, {
780
782
  type: "agency" | "freelancer";
781
783
  id: string;
@@ -785,7 +787,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
785
787
  active: boolean;
786
788
  associatedBidders: string[] | null;
787
789
  subscription: {
788
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
790
+ status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
789
791
  planId: string;
790
792
  pendingPlanId: string | null;
791
793
  startedAt: number;
@@ -820,6 +822,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
820
822
  savedCard: boolean;
821
823
  } | null;
822
824
  lastBidTime: number | null;
825
+ openRouterApiKey: string | null;
823
826
  }>;
824
827
  lead: import("zod").ZodObject<Omit<import("zod").objectUtil.extendShape<{
825
828
  id: import("zod").ZodNullable<import("zod").ZodString>;
@@ -1571,7 +1574,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1571
1574
  active: boolean;
1572
1575
  associatedBidders: string[] | null;
1573
1576
  subscription: {
1574
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
1577
+ status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
1575
1578
  planId: string;
1576
1579
  pendingPlanId: string | null;
1577
1580
  startedAt: number;
@@ -1606,6 +1609,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1606
1609
  savedCard: boolean;
1607
1610
  } | null;
1608
1611
  lastBidTime: number | null;
1612
+ openRouterApiKey: string | null;
1609
1613
  };
1610
1614
  lead: {
1611
1615
  uid: string | null;
@@ -1855,7 +1859,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1855
1859
  active: boolean;
1856
1860
  associatedBidders: string[] | null;
1857
1861
  subscription: {
1858
- status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
1862
+ status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
1859
1863
  planId: string;
1860
1864
  pendingPlanId: string | null;
1861
1865
  startedAt: number;
@@ -1890,6 +1894,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1890
1894
  savedCard: boolean;
1891
1895
  } | null;
1892
1896
  lastBidTime: number | null;
1897
+ openRouterApiKey: string | null;
1893
1898
  };
1894
1899
  lead: {
1895
1900
  uid: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.65",
3
+ "version": "1.2.67",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",
@@ -1,3 +0,0 @@
1
- import { AccountStatus } from '../types/account/account-status';
2
- export declare const accountStatusOrder: AccountStatus[];
3
- export declare const accountStatusDisplayMap: Record<AccountStatus, string>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
4
- exports.accountStatusOrder = [
5
- 'verification_required',
6
- 'shadow_banned',
7
- 'healthy',
8
- 'banned',
9
- 'suspended',
10
- ];
11
- exports.accountStatusDisplayMap = {
12
- verification_required: 'Verification Required',
13
- shadow_banned: 'Shadow Banned',
14
- healthy: 'Healthy',
15
- banned: 'Banned',
16
- suspended: 'Suspended',
17
- };
@@ -1,13 +0,0 @@
1
- export declare const COLLECTIONS: {
2
- readonly USERS: "users";
3
- readonly SETTINGS: "settings";
4
- readonly CAMPAIGNS: "campaigns";
5
- readonly LEADS: "leads";
6
- readonly EVENTS: "events";
7
- readonly SCRAPER_ACCOUNTS: "scrapers";
8
- readonly BIDDER_ACCOUNTS: "bidders";
9
- readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
10
- readonly ORGANIZATIONS: "organizations";
11
- readonly PROXIES: "proxies";
12
- readonly TRANSACTIONS: "transactions";
13
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COLLECTIONS = void 0;
4
- // Base collection names
5
- exports.COLLECTIONS = {
6
- USERS: 'users',
7
- SETTINGS: 'settings',
8
- CAMPAIGNS: 'campaigns',
9
- LEADS: 'leads',
10
- EVENTS: 'events',
11
- SCRAPER_ACCOUNTS: 'scrapers',
12
- BIDDER_ACCOUNTS: 'bidders',
13
- CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
14
- ORGANIZATIONS: 'organizations',
15
- PROXIES: 'proxies',
16
- };
@@ -1,60 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.commonQuestions = void 0;
4
- exports.commonQuestions = [
5
- {
6
- id: 'similar_experience',
7
- question: 'Describe your recent experience with similar projects',
8
- placeholder: 'ex: [Answer the question based on case studies, if not certain ask to discuss in DMs]',
9
- },
10
- {
11
- id: 'profile_links',
12
- question: 'Include a link to your GitHub profile and/or website',
13
- placeholder: 'ex: [https://github.com/yourusername or https://yourwebsite.com]',
14
- },
15
- {
16
- id: 'frameworks',
17
- question: 'What frameworks have you worked with?',
18
- placeholder: 'ex: [NextJS, React, TailwindCSS, etc...]',
19
- },
20
- {
21
- id: 'testing_approach',
22
- question: 'Describe your approach to testing and improving QA',
23
- placeholder: 'ex: [We are using test-driven development, and we are using Jest for testing]',
24
- },
25
- {
26
- id: 'certifications',
27
- question: 'Please list any certifications related to this project',
28
- placeholder: 'ex: [Certification in React, Certification in NextJS, etc...]',
29
- },
30
- {
31
- id: 'similar_project',
32
- question: 'What past project or job have you had that is most like this one and why?',
33
- placeholder: "ex: [Describe a similar project and explain the key similarities... If you can't answer based on the case studies, ask to discuss in DMs]",
34
- },
35
- {
36
- id: 'project_fit',
37
- question: 'Why do you think you are a good fit for this particular project?',
38
- placeholder: 'ex: [Explain how your skills and experience match the project requirements...]',
39
- },
40
- {
41
- id: 'job_questions',
42
- question: 'Do you have any questions about the job description?',
43
- placeholder: 'ex: [Ask for any clarifications needed about the role or requirements...]',
44
- },
45
- {
46
- id: 'project_questions',
47
- question: 'What questions do you have about the project?',
48
- placeholder: 'ex: [Ask about project scope, timeline, team structure...]',
49
- },
50
- {
51
- id: 'project_suggestions',
52
- question: 'Do you have suggestions to make this project run successfully?',
53
- placeholder: 'ex: [Ask to discuss in DMs]',
54
- },
55
- {
56
- id: 'company_info',
57
- question: 'What is your company website URL? . . . Company size?',
58
- placeholder: 'ex: [https://company.com | Number of employees: ...]',
59
- },
60
- ];
@@ -1,40 +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
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.regionMapping = exports.countryMapping = exports.paths = void 0;
21
- exports.paths = {
22
- auth: {
23
- register: `auth/register`,
24
- },
25
- users: {
26
- root: 'users',
27
- details: (id) => `users/${id}`,
28
- },
29
- };
30
- __exportStar(require("./job-filter-options"), exports);
31
- var countryMapping_1 = require("./mappings/countryMapping");
32
- Object.defineProperty(exports, "countryMapping", { enumerable: true, get: function () { return __importDefault(countryMapping_1).default; } });
33
- var regionMapping_1 = require("./mappings/regionMapping");
34
- Object.defineProperty(exports, "regionMapping", { enumerable: true, get: function () { return __importDefault(regionMapping_1).default; } });
35
- __exportStar(require("./job-filter-options"), exports);
36
- __exportStar(require("./common-questions"), exports);
37
- __exportStar(require("./job-status"), exports);
38
- __exportStar(require("./routes"), exports);
39
- __exportStar(require("./collections"), exports);
40
- __exportStar(require("./upwork-accounts"), exports);