lancer-shared 1.2.66 → 1.2.68

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 (165) hide show
  1. package/dist/bundle.cjs.js +2 -0
  2. package/dist/constants/routes.d.ts +1 -0
  3. package/dist/schemas/account/bidder-account.d.ts +5 -5
  4. package/dist/schemas/campaign/campaign-analytics.d.ts +24 -24
  5. package/dist/schemas/organization/index.d.ts +4 -0
  6. package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
  7. package/dist/schemas/scraper/scrape-payload.d.ts +7 -2
  8. package/package.json +1 -1
  9. package/dist/constants/collections.d.ts +0 -13
  10. package/dist/constants/collections.js +0 -14
  11. package/dist/constants/common-questions.js +0 -57
  12. package/dist/constants/index.js +0 -18
  13. package/dist/constants/job-filter-options.js +0 -265
  14. package/dist/constants/job-status.js +0 -21
  15. package/dist/constants/mappings/countryMapping.js +0 -120
  16. package/dist/constants/mappings/regionMapping.js +0 -240
  17. package/dist/constants/organization.d.ts +0 -2
  18. package/dist/constants/routes.js +0 -116
  19. package/dist/constants/upwork-accounts.js +0 -18
  20. package/dist/index.js +0 -4
  21. package/dist/schemas/account/account-status.js +0 -8
  22. package/dist/schemas/account/bidder-account.js +0 -35
  23. package/dist/schemas/account/index.js +0 -3
  24. package/dist/schemas/account/scraper-account.js +0 -34
  25. package/dist/schemas/ai/ai-config.d.ts +0 -36
  26. package/dist/schemas/ai/ai-config.js +0 -9
  27. package/dist/schemas/ai/index.d.ts +0 -3
  28. package/dist/schemas/ai/index.js +0 -3
  29. package/dist/schemas/ai/proposal.d.ts +0 -82
  30. package/dist/schemas/ai/proposal.js +0 -13
  31. package/dist/schemas/ai/suitability.d.ts +0 -37
  32. package/dist/schemas/ai/suitability.js +0 -14
  33. package/dist/schemas/bid/bid-result.js +0 -11
  34. package/dist/schemas/bid/bid.js +0 -35
  35. package/dist/schemas/bid/index.js +0 -2
  36. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
  37. package/dist/schemas/campaign/campaign-analytics.js +0 -42
  38. package/dist/schemas/campaign/campaign-expenses.js +0 -6
  39. package/dist/schemas/campaign/campaign-insights.js +0 -31
  40. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
  41. package/dist/schemas/campaign/campaign-integrations.js +0 -13
  42. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  43. package/dist/schemas/campaign/campaign-job-count.js +0 -3
  44. package/dist/schemas/campaign/campaign.js +0 -41
  45. package/dist/schemas/campaign/index.js +0 -7
  46. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  47. package/dist/schemas/chat-message/chat-message.js +0 -10
  48. package/dist/schemas/chat-message/index.d.ts +0 -1
  49. package/dist/schemas/chat-message/index.js +0 -1
  50. package/dist/schemas/config/agency-config.d.ts +0 -17
  51. package/dist/schemas/config/agency-config.js +0 -7
  52. package/dist/schemas/config/index.d.ts +0 -1
  53. package/dist/schemas/config/index.js +0 -1
  54. package/dist/schemas/event/index.d.ts +0 -58
  55. package/dist/schemas/index.js +0 -17
  56. package/dist/schemas/job-filters/index.d.ts +0 -1
  57. package/dist/schemas/job-filters/index.js +0 -1
  58. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  59. package/dist/schemas/job-filters/job-filters.js +0 -84
  60. package/dist/schemas/lead/index.js +0 -173
  61. package/dist/schemas/lead/lead-note.d.ts +0 -83
  62. package/dist/schemas/lead/lead-note.js +0 -27
  63. package/dist/schemas/lead/lead-status.js +0 -23
  64. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  65. package/dist/schemas/lead/nuxt.js +0 -287
  66. package/dist/schemas/logger/index.js +0 -1
  67. package/dist/schemas/logger/log-event.js +0 -117
  68. package/dist/schemas/meter-event/index.d.ts +0 -12
  69. package/dist/schemas/organization/index.js +0 -70
  70. package/dist/schemas/organization/member.js +0 -7
  71. package/dist/schemas/organization/organization.d.ts +0 -240
  72. package/dist/schemas/organization/organization.js +0 -16
  73. package/dist/schemas/organization/subscription.js +0 -17
  74. package/dist/schemas/proxy/index.js +0 -3
  75. package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
  76. package/dist/schemas/proxy/proxy-country.js +0 -249
  77. package/dist/schemas/proxy/proxy.js +0 -29
  78. package/dist/schemas/saved-search/index.js +0 -9
  79. package/dist/schemas/scraper/index.js +0 -2
  80. package/dist/schemas/scraper/scrape-payload.js +0 -21
  81. package/dist/schemas/scraper/scrape-result.js +0 -23
  82. package/dist/schemas/shared.js +0 -19
  83. package/dist/schemas/tier/index.d.ts +0 -119
  84. package/dist/schemas/time-filter/index.js +0 -6
  85. package/dist/schemas/transaction/index.js +0 -17
  86. package/dist/schemas/usage/index.js +0 -18
  87. package/dist/schemas/user/index.js +0 -52
  88. package/dist/types/account/account-status.d.ts +0 -3
  89. package/dist/types/account/account-status.js +0 -1
  90. package/dist/types/account/bidder-account.d.ts +0 -7
  91. package/dist/types/account/bidder-account.js +0 -1
  92. package/dist/types/account/index.d.ts +0 -3
  93. package/dist/types/account/index.js +0 -3
  94. package/dist/types/account/scraper-account.d.ts +0 -5
  95. package/dist/types/account/scraper-account.js +0 -1
  96. package/dist/types/ai/ai-config.d.ts +0 -6
  97. package/dist/types/ai/ai-config.js +0 -1
  98. package/dist/types/ai/index.d.ts +0 -3
  99. package/dist/types/ai/index.js +0 -3
  100. package/dist/types/ai/proposal.d.ts +0 -10
  101. package/dist/types/ai/proposal.js +0 -1
  102. package/dist/types/ai/suitability.d.ts +0 -6
  103. package/dist/types/ai/suitability.js +0 -1
  104. package/dist/types/bid/bid-result.d.ts +0 -5
  105. package/dist/types/bid/bid-result.js +0 -1
  106. package/dist/types/bid/bid.d.ts +0 -9
  107. package/dist/types/bid/bid.js +0 -1
  108. package/dist/types/bid/index.d.ts +0 -2
  109. package/dist/types/bid/index.js +0 -2
  110. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  111. package/dist/types/campaign/campaign-analytics.js +0 -1
  112. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  113. package/dist/types/campaign/campaign-expenses.js +0 -1
  114. package/dist/types/campaign/campaign-insights.js +0 -1
  115. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  116. package/dist/types/campaign/campaign-integrations.js +0 -1
  117. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  118. package/dist/types/campaign/campaign-job-count.js +0 -1
  119. package/dist/types/campaign/campaign.js +0 -1
  120. package/dist/types/campaign/index.js +0 -6
  121. package/dist/types/chat-message/chat-message.d.ts +0 -4
  122. package/dist/types/chat-message/chat-message.js +0 -1
  123. package/dist/types/chat-message/index.d.ts +0 -1
  124. package/dist/types/chat-message/index.js +0 -1
  125. package/dist/types/config/agency-config.d.ts +0 -4
  126. package/dist/types/config/agency-config.js +0 -1
  127. package/dist/types/config/index.d.ts +0 -1
  128. package/dist/types/config/index.js +0 -1
  129. package/dist/types/index.d.ts +0 -15
  130. package/dist/types/index.js +0 -15
  131. package/dist/types/job/index.d.ts +0 -48
  132. package/dist/types/job/index.js +0 -3
  133. package/dist/types/job/job-note.d.ts +0 -10
  134. package/dist/types/job/job-note.js +0 -1
  135. package/dist/types/job/job-status.d.ts +0 -5
  136. package/dist/types/job/job-status.js +0 -9
  137. package/dist/types/job/nuxt.d.ts +0 -4
  138. package/dist/types/job/nuxt.js +0 -1
  139. package/dist/types/job-filters/index.d.ts +0 -1
  140. package/dist/types/job-filters/index.js +0 -1
  141. package/dist/types/job-filters/job-filters.d.ts +0 -4
  142. package/dist/types/job-filters/job-filters.js +0 -1
  143. package/dist/types/logger/index.d.ts +0 -1
  144. package/dist/types/logger/index.js +0 -1
  145. package/dist/types/logger/log-event.js +0 -1
  146. package/dist/types/saved-search/index.d.ts +0 -6
  147. package/dist/types/saved-search/index.js +0 -1
  148. package/dist/types/scraper/index.d.ts +0 -2
  149. package/dist/types/scraper/index.js +0 -2
  150. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  151. package/dist/types/scraper/scrape-payload.js +0 -1
  152. package/dist/types/scraper/scrape-result.d.ts +0 -8
  153. package/dist/types/scraper/scrape-result.js +0 -1
  154. package/dist/types/shared.d.ts +0 -8
  155. package/dist/types/shared.js +0 -1
  156. package/dist/types/time-filter/index.d.ts +0 -3
  157. package/dist/types/time-filter/index.js +0 -1
  158. package/dist/types/transaction/index.d.ts +0 -4
  159. package/dist/types/transaction/index.js +0 -1
  160. package/dist/types/usage/index.d.ts +0 -6
  161. package/dist/types/usage/index.js +0 -1
  162. package/dist/types/user/index.d.ts +0 -15
  163. package/dist/types/user/index.js +0 -1
  164. package/dist/utils/index.js +0 -1
  165. package/dist/utils/try-catch.js +0 -10
@@ -6435,6 +6435,7 @@ const ROUTES = {
6435
6435
  FILTER_OPTIONS: 'jobs/filter-options',
6436
6436
  TOTAL_JOBS: 'jobs/total-jobs',
6437
6437
  GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
6438
+ GET_JOBS_COUNT: "jobs/get-jobs-count",
6438
6439
  },
6439
6440
  USERS: {
6440
6441
  BASE: 'users',
@@ -12340,6 +12341,7 @@ const organizationSchema = objectType({
12340
12341
  lastBidTime: numberType().nullable(),
12341
12342
  createdAt: numberType(),
12342
12343
  updatedAt: numberType(),
12344
+ openRouterApiKey: stringType().nullable(),
12343
12345
  });
12344
12346
  const caseStudySchema = objectType({
12345
12347
  title: stringType(),
@@ -22,6 +22,7 @@ export declare const ROUTES: {
22
22
  readonly FILTER_OPTIONS: "jobs/filter-options";
23
23
  readonly TOTAL_JOBS: "jobs/total-jobs";
24
24
  readonly GET_JOB_TITLE: (jobId: string) => string;
25
+ readonly GET_JOBS_COUNT: "jobs/get-jobs-count";
25
26
  };
26
27
  readonly USERS: {
27
28
  readonly BASE: "users";
@@ -234,7 +234,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
234
234
  port: z.ZodNumber;
235
235
  username: z.ZodString;
236
236
  password: z.ZodString;
237
- provider: z.ZodEnum<["webshare", "decodo"]>;
237
+ provider: z.ZodEnum<["webshare"]>;
238
238
  fraudScore: z.ZodNullable<z.ZodNumber>;
239
239
  claimedCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
240
240
  status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
@@ -243,7 +243,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
243
243
  }, "strip", z.ZodTypeAny, {
244
244
  status: "valid" | "invalid" | "pending_validation" | null;
245
245
  id: string;
246
- provider: "webshare" | "decodo";
246
+ provider: "webshare";
247
247
  password: string;
248
248
  externalId: string;
249
249
  host: string;
@@ -256,7 +256,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
256
256
  }, {
257
257
  status: "valid" | "invalid" | "pending_validation" | null;
258
258
  id: string;
259
- provider: "webshare" | "decodo";
259
+ provider: "webshare";
260
260
  password: string;
261
261
  externalId: string;
262
262
  host: string;
@@ -275,7 +275,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
275
275
  proxy: {
276
276
  status: "valid" | "invalid" | "pending_validation" | null;
277
277
  id: string;
278
- provider: "webshare" | "decodo";
278
+ provider: "webshare";
279
279
  password: string;
280
280
  externalId: string;
281
281
  host: string;
@@ -294,7 +294,7 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
294
294
  proxy: {
295
295
  status: "valid" | "invalid" | "pending_validation" | null;
296
296
  id: string;
297
- provider: "webshare" | "decodo";
297
+ provider: "webshare";
298
298
  password: string;
299
299
  externalId: string;
300
300
  host: string;
@@ -163,7 +163,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
163
163
  subscription: z.ZodNullable<z.ZodObject<{
164
164
  planId: z.ZodString;
165
165
  pendingPlanId: z.ZodNullable<z.ZodString>;
166
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
166
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
167
167
  startedAt: z.ZodNumber;
168
168
  currentPeriodEnd: z.ZodNumber;
169
169
  stripe: z.ZodObject<{
@@ -226,7 +226,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
226
226
  source: z.ZodEnum<["stripe", "manual"]>;
227
227
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
228
228
  }, "strip", z.ZodTypeAny, {
229
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
229
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
230
230
  planId: string;
231
231
  pendingPlanId: string | null;
232
232
  startedAt: number;
@@ -247,7 +247,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
247
247
  source: "stripe" | "manual";
248
248
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
249
249
  }, {
250
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
250
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
251
251
  planId: string;
252
252
  pendingPlanId: string | null;
253
253
  startedAt: number;
@@ -671,7 +671,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
671
671
  subscription: z.ZodNullable<z.ZodObject<{
672
672
  planId: z.ZodString;
673
673
  pendingPlanId: z.ZodNullable<z.ZodString>;
674
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
674
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
675
675
  startedAt: z.ZodNumber;
676
676
  currentPeriodEnd: z.ZodNumber;
677
677
  stripe: z.ZodObject<{
@@ -734,7 +734,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
734
734
  source: z.ZodEnum<["stripe", "manual"]>;
735
735
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
736
736
  }, "strip", z.ZodTypeAny, {
737
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
737
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
738
738
  planId: string;
739
739
  pendingPlanId: string | null;
740
740
  startedAt: number;
@@ -755,7 +755,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
755
755
  source: "stripe" | "manual";
756
756
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
757
757
  }, {
758
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
758
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
759
759
  planId: string;
760
760
  pendingPlanId: string | null;
761
761
  startedAt: number;
@@ -1524,7 +1524,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1524
1524
  subscription: z.ZodNullable<z.ZodObject<{
1525
1525
  planId: z.ZodString;
1526
1526
  pendingPlanId: z.ZodNullable<z.ZodString>;
1527
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
1527
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
1528
1528
  startedAt: z.ZodNumber;
1529
1529
  currentPeriodEnd: z.ZodNumber;
1530
1530
  stripe: z.ZodObject<{
@@ -1587,7 +1587,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1587
1587
  source: z.ZodEnum<["stripe", "manual"]>;
1588
1588
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
1589
1589
  }, "strip", z.ZodTypeAny, {
1590
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
1590
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
1591
1591
  planId: string;
1592
1592
  pendingPlanId: string | null;
1593
1593
  startedAt: number;
@@ -1608,7 +1608,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1608
1608
  source: "stripe" | "manual";
1609
1609
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1610
1610
  }, {
1611
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
1611
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
1612
1612
  planId: string;
1613
1613
  pendingPlanId: string | null;
1614
1614
  startedAt: number;
@@ -2377,7 +2377,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2377
2377
  subscription: z.ZodNullable<z.ZodObject<{
2378
2378
  planId: z.ZodString;
2379
2379
  pendingPlanId: z.ZodNullable<z.ZodString>;
2380
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
2380
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
2381
2381
  startedAt: z.ZodNumber;
2382
2382
  currentPeriodEnd: z.ZodNumber;
2383
2383
  stripe: z.ZodObject<{
@@ -2440,7 +2440,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2440
2440
  source: z.ZodEnum<["stripe", "manual"]>;
2441
2441
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
2442
2442
  }, "strip", z.ZodTypeAny, {
2443
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
2443
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
2444
2444
  planId: string;
2445
2445
  pendingPlanId: string | null;
2446
2446
  startedAt: number;
@@ -2461,7 +2461,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2461
2461
  source: "stripe" | "manual";
2462
2462
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
2463
2463
  }, {
2464
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
2464
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
2465
2465
  planId: string;
2466
2466
  pendingPlanId: string | null;
2467
2467
  startedAt: number;
@@ -3227,7 +3227,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3227
3227
  subscription: z.ZodNullable<z.ZodObject<{
3228
3228
  planId: z.ZodString;
3229
3229
  pendingPlanId: z.ZodNullable<z.ZodString>;
3230
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3230
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
3231
3231
  startedAt: z.ZodNumber;
3232
3232
  currentPeriodEnd: z.ZodNumber;
3233
3233
  stripe: z.ZodObject<{
@@ -3290,7 +3290,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3290
3290
  source: z.ZodEnum<["stripe", "manual"]>;
3291
3291
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
3292
3292
  }, "strip", z.ZodTypeAny, {
3293
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3293
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3294
3294
  planId: string;
3295
3295
  pendingPlanId: string | null;
3296
3296
  startedAt: number;
@@ -3311,7 +3311,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3311
3311
  source: "stripe" | "manual";
3312
3312
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
3313
3313
  }, {
3314
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3314
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3315
3315
  planId: string;
3316
3316
  pendingPlanId: string | null;
3317
3317
  startedAt: number;
@@ -3734,7 +3734,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3734
3734
  subscription: z.ZodNullable<z.ZodObject<{
3735
3735
  planId: z.ZodString;
3736
3736
  pendingPlanId: z.ZodNullable<z.ZodString>;
3737
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3737
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
3738
3738
  startedAt: z.ZodNumber;
3739
3739
  currentPeriodEnd: z.ZodNumber;
3740
3740
  stripe: z.ZodObject<{
@@ -3797,7 +3797,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3797
3797
  source: z.ZodEnum<["stripe", "manual"]>;
3798
3798
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
3799
3799
  }, "strip", z.ZodTypeAny, {
3800
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3800
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3801
3801
  planId: string;
3802
3802
  pendingPlanId: string | null;
3803
3803
  startedAt: number;
@@ -3818,7 +3818,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3818
3818
  source: "stripe" | "manual";
3819
3819
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
3820
3820
  }, {
3821
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3821
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3822
3822
  planId: string;
3823
3823
  pendingPlanId: string | null;
3824
3824
  startedAt: number;
@@ -4586,7 +4586,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4586
4586
  subscription: z.ZodNullable<z.ZodObject<{
4587
4587
  planId: z.ZodString;
4588
4588
  pendingPlanId: z.ZodNullable<z.ZodString>;
4589
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
4589
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
4590
4590
  startedAt: z.ZodNumber;
4591
4591
  currentPeriodEnd: z.ZodNumber;
4592
4592
  stripe: z.ZodObject<{
@@ -4649,7 +4649,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4649
4649
  source: z.ZodEnum<["stripe", "manual"]>;
4650
4650
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
4651
4651
  }, "strip", z.ZodTypeAny, {
4652
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
4652
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
4653
4653
  planId: string;
4654
4654
  pendingPlanId: string | null;
4655
4655
  startedAt: number;
@@ -4670,7 +4670,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4670
4670
  source: "stripe" | "manual";
4671
4671
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
4672
4672
  }, {
4673
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
4673
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
4674
4674
  planId: string;
4675
4675
  pendingPlanId: string | null;
4676
4676
  startedAt: number;
@@ -5438,7 +5438,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5438
5438
  subscription: z.ZodNullable<z.ZodObject<{
5439
5439
  planId: z.ZodString;
5440
5440
  pendingPlanId: z.ZodNullable<z.ZodString>;
5441
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
5441
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
5442
5442
  startedAt: z.ZodNumber;
5443
5443
  currentPeriodEnd: z.ZodNumber;
5444
5444
  stripe: z.ZodObject<{
@@ -5501,7 +5501,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5501
5501
  source: z.ZodEnum<["stripe", "manual"]>;
5502
5502
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
5503
5503
  }, "strip", z.ZodTypeAny, {
5504
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
5504
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
5505
5505
  planId: string;
5506
5506
  pendingPlanId: string | null;
5507
5507
  startedAt: number;
@@ -5522,7 +5522,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5522
5522
  source: "stripe" | "manual";
5523
5523
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
5524
5524
  }, {
5525
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
5525
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
5526
5526
  planId: string;
5527
5527
  pendingPlanId: string | null;
5528
5528
  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;
@@ -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;
@@ -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;
@@ -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,4 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const proxyAvailableReplacementsSchema: z.ZodRecord<z.ZodEnum<["webshare", "decodo"]>, z.ZodNumber>;
2
+ export declare const proxyAvailableReplacementsSchema: z.ZodRecord<z.ZodEnum<["webshare"]>, z.ZodNumber>;
3
3
  export interface ProxyAvailableReplacements extends z.infer<typeof proxyAvailableReplacementsSchema> {
4
4
  }
@@ -1,5 +1,5 @@
1
- import { infer } from 'zod';
2
- import { BidderAccount } from '../account';
1
+ import { infer } from "zod";
2
+ import { BidderAccount } from "../account";
3
3
  export declare const scrapePayloadSchema: import("zod").ZodObject<{
4
4
  latestJobsUrls: import("zod").ZodArray<import("zod").ZodString, "many">;
5
5
  }, "strip", import("zod").ZodTypeAny, {
@@ -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;
@@ -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;
@@ -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>;
@@ -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;
@@ -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.66",
3
+ "version": "1.2.68",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",
@@ -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,14 +0,0 @@
1
- // Base collection names
2
- export const COLLECTIONS = {
3
- USERS: "users",
4
- SETTINGS: "settings",
5
- CAMPAIGNS: "campaigns",
6
- LEADS: "leads",
7
- EVENTS: "events",
8
- SCRAPER_ACCOUNTS: "scrapers",
9
- BIDDER_ACCOUNTS: "bidders",
10
- CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
11
- ORGANIZATIONS: "organizations",
12
- PROXIES: "proxies",
13
- TRANSACTIONS: "transactions",
14
- };
@@ -1,57 +0,0 @@
1
- export const commonQuestions = [
2
- {
3
- id: 'similar_experience',
4
- question: 'Describe your recent experience with similar projects',
5
- placeholder: 'ex: [Answer the question based on case studies, if not certain ask to discuss in DMs]',
6
- },
7
- {
8
- id: 'profile_links',
9
- question: 'Include a link to your GitHub profile and/or website',
10
- placeholder: 'ex: [https://github.com/yourusername or https://yourwebsite.com]',
11
- },
12
- {
13
- id: 'frameworks',
14
- question: 'What frameworks have you worked with?',
15
- placeholder: 'ex: [NextJS, React, TailwindCSS, etc...]',
16
- },
17
- {
18
- id: 'testing_approach',
19
- question: 'Describe your approach to testing and improving QA',
20
- placeholder: 'ex: [We are using test-driven development, and we are using Jest for testing]',
21
- },
22
- {
23
- id: 'certifications',
24
- question: 'Please list any certifications related to this project',
25
- placeholder: 'ex: [Certification in React, Certification in NextJS, etc...]',
26
- },
27
- {
28
- id: 'similar_project',
29
- question: 'What past project or job have you had that is most like this one and why?',
30
- 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]",
31
- },
32
- {
33
- id: 'project_fit',
34
- question: 'Why do you think you are a good fit for this particular project?',
35
- placeholder: 'ex: [Explain how your skills and experience match the project requirements...]',
36
- },
37
- {
38
- id: 'job_questions',
39
- question: 'Do you have any questions about the job description?',
40
- placeholder: 'ex: [Ask for any clarifications needed about the role or requirements...]',
41
- },
42
- {
43
- id: 'project_questions',
44
- question: 'What questions do you have about the project?',
45
- placeholder: 'ex: [Ask about project scope, timeline, team structure...]',
46
- },
47
- {
48
- id: 'project_suggestions',
49
- question: 'Do you have suggestions to make this project run successfully?',
50
- placeholder: 'ex: [Ask to discuss in DMs]',
51
- },
52
- {
53
- id: 'company_info',
54
- question: 'What is your company website URL? . . . Company size?',
55
- placeholder: 'ex: [https://company.com | Number of employees: ...]',
56
- },
57
- ];
@@ -1,18 +0,0 @@
1
- export const paths = {
2
- auth: {
3
- register: `auth/register`,
4
- },
5
- users: {
6
- root: 'users',
7
- details: (id) => `users/${id}`,
8
- },
9
- };
10
- export * from './job-filter-options';
11
- export { default as countryMapping } from './mappings/countryMapping';
12
- export { default as regionMapping } from './mappings/regionMapping';
13
- export * from './job-filter-options';
14
- export * from './common-questions';
15
- export * from './job-status';
16
- export * from './routes';
17
- export * from './collections';
18
- export * from './upwork-accounts';