lancer-shared 1.2.81 → 1.2.83

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 (167) hide show
  1. package/dist/bundle.cjs.js +25 -36
  2. package/dist/constants/job-filter-options.d.ts +3 -1
  3. package/dist/constants/routes.d.ts +2 -0
  4. package/dist/schemas/agent/index.d.ts +10 -1059
  5. package/dist/schemas/campaign/campaign-analytics.d.ts +24 -24
  6. package/dist/schemas/job/job-filters.d.ts +4 -2
  7. package/dist/schemas/organization/index.d.ts +16 -0
  8. package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
  9. package/package.json +1 -1
  10. package/dist/constants/collections.d.ts +0 -13
  11. package/dist/constants/collections.js +0 -14
  12. package/dist/constants/common-questions.js +0 -57
  13. package/dist/constants/index.js +0 -18
  14. package/dist/constants/job-filter-options.js +0 -265
  15. package/dist/constants/job-status.js +0 -21
  16. package/dist/constants/mappings/countryMapping.js +0 -120
  17. package/dist/constants/mappings/regionMapping.js +0 -240
  18. package/dist/constants/organization.d.ts +0 -2
  19. package/dist/constants/routes.js +0 -116
  20. package/dist/constants/upwork-accounts.js +0 -18
  21. package/dist/index.js +0 -4
  22. package/dist/schemas/account/account-status.js +0 -8
  23. package/dist/schemas/account/bidder-account.js +0 -35
  24. package/dist/schemas/account/index.js +0 -3
  25. package/dist/schemas/account/scraper-account.js +0 -34
  26. package/dist/schemas/ai/ai-config.d.ts +0 -36
  27. package/dist/schemas/ai/ai-config.js +0 -9
  28. package/dist/schemas/ai/index.d.ts +0 -3
  29. package/dist/schemas/ai/index.js +0 -3
  30. package/dist/schemas/ai/proposal.d.ts +0 -82
  31. package/dist/schemas/ai/proposal.js +0 -13
  32. package/dist/schemas/ai/suitability.d.ts +0 -37
  33. package/dist/schemas/ai/suitability.js +0 -14
  34. package/dist/schemas/bid/bid-result.js +0 -11
  35. package/dist/schemas/bid/bid.js +0 -35
  36. package/dist/schemas/bid/index.js +0 -2
  37. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
  38. package/dist/schemas/campaign/campaign-analytics.js +0 -42
  39. package/dist/schemas/campaign/campaign-expenses.js +0 -6
  40. package/dist/schemas/campaign/campaign-insights.js +0 -31
  41. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
  42. package/dist/schemas/campaign/campaign-integrations.js +0 -13
  43. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  44. package/dist/schemas/campaign/campaign-job-count.js +0 -3
  45. package/dist/schemas/campaign/campaign.js +0 -41
  46. package/dist/schemas/campaign/index.js +0 -7
  47. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  48. package/dist/schemas/chat-message/chat-message.js +0 -10
  49. package/dist/schemas/chat-message/index.d.ts +0 -1
  50. package/dist/schemas/chat-message/index.js +0 -1
  51. package/dist/schemas/config/agency-config.d.ts +0 -17
  52. package/dist/schemas/config/agency-config.js +0 -7
  53. package/dist/schemas/config/index.d.ts +0 -1
  54. package/dist/schemas/config/index.js +0 -1
  55. package/dist/schemas/event/index.d.ts +0 -58
  56. package/dist/schemas/index.js +0 -17
  57. package/dist/schemas/job/haha.json +0 -581
  58. package/dist/schemas/job-filters/index.d.ts +0 -1
  59. package/dist/schemas/job-filters/index.js +0 -1
  60. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  61. package/dist/schemas/job-filters/job-filters.js +0 -84
  62. package/dist/schemas/lead/index.js +0 -173
  63. package/dist/schemas/lead/lead-note.d.ts +0 -83
  64. package/dist/schemas/lead/lead-note.js +0 -27
  65. package/dist/schemas/lead/lead-status.js +0 -23
  66. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  67. package/dist/schemas/lead/nuxt.js +0 -287
  68. package/dist/schemas/logger/index.js +0 -1
  69. package/dist/schemas/logger/log-event.js +0 -117
  70. package/dist/schemas/meter-event/index.d.ts +0 -12
  71. package/dist/schemas/organization/index.js +0 -70
  72. package/dist/schemas/organization/member.js +0 -7
  73. package/dist/schemas/organization/organization.d.ts +0 -240
  74. package/dist/schemas/organization/organization.js +0 -16
  75. package/dist/schemas/organization/subscription.js +0 -17
  76. package/dist/schemas/proxy/index.js +0 -3
  77. package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
  78. package/dist/schemas/proxy/proxy-country.js +0 -249
  79. package/dist/schemas/proxy/proxy.js +0 -29
  80. package/dist/schemas/saved-search/index.js +0 -9
  81. package/dist/schemas/scraper/index.js +0 -2
  82. package/dist/schemas/scraper/scrape-payload.js +0 -21
  83. package/dist/schemas/scraper/scrape-result.js +0 -23
  84. package/dist/schemas/shared.js +0 -19
  85. package/dist/schemas/tier/index.d.ts +0 -119
  86. package/dist/schemas/time-filter/index.js +0 -6
  87. package/dist/schemas/transaction/index.js +0 -17
  88. package/dist/schemas/usage/index.js +0 -18
  89. package/dist/schemas/user/index.js +0 -52
  90. package/dist/types/account/account-status.d.ts +0 -3
  91. package/dist/types/account/account-status.js +0 -1
  92. package/dist/types/account/bidder-account.d.ts +0 -7
  93. package/dist/types/account/bidder-account.js +0 -1
  94. package/dist/types/account/index.d.ts +0 -3
  95. package/dist/types/account/index.js +0 -3
  96. package/dist/types/account/scraper-account.d.ts +0 -5
  97. package/dist/types/account/scraper-account.js +0 -1
  98. package/dist/types/ai/ai-config.d.ts +0 -6
  99. package/dist/types/ai/ai-config.js +0 -1
  100. package/dist/types/ai/index.d.ts +0 -3
  101. package/dist/types/ai/index.js +0 -3
  102. package/dist/types/ai/proposal.d.ts +0 -10
  103. package/dist/types/ai/proposal.js +0 -1
  104. package/dist/types/ai/suitability.d.ts +0 -6
  105. package/dist/types/ai/suitability.js +0 -1
  106. package/dist/types/bid/bid-result.d.ts +0 -5
  107. package/dist/types/bid/bid-result.js +0 -1
  108. package/dist/types/bid/bid.d.ts +0 -9
  109. package/dist/types/bid/bid.js +0 -1
  110. package/dist/types/bid/index.d.ts +0 -2
  111. package/dist/types/bid/index.js +0 -2
  112. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  113. package/dist/types/campaign/campaign-analytics.js +0 -1
  114. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  115. package/dist/types/campaign/campaign-expenses.js +0 -1
  116. package/dist/types/campaign/campaign-insights.js +0 -1
  117. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  118. package/dist/types/campaign/campaign-integrations.js +0 -1
  119. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  120. package/dist/types/campaign/campaign-job-count.js +0 -1
  121. package/dist/types/campaign/campaign.js +0 -1
  122. package/dist/types/campaign/index.js +0 -6
  123. package/dist/types/chat-message/chat-message.d.ts +0 -4
  124. package/dist/types/chat-message/chat-message.js +0 -1
  125. package/dist/types/chat-message/index.d.ts +0 -1
  126. package/dist/types/chat-message/index.js +0 -1
  127. package/dist/types/config/agency-config.d.ts +0 -4
  128. package/dist/types/config/agency-config.js +0 -1
  129. package/dist/types/config/index.d.ts +0 -1
  130. package/dist/types/config/index.js +0 -1
  131. package/dist/types/index.d.ts +0 -15
  132. package/dist/types/index.js +0 -15
  133. package/dist/types/job/index.d.ts +0 -48
  134. package/dist/types/job/index.js +0 -3
  135. package/dist/types/job/job-note.d.ts +0 -10
  136. package/dist/types/job/job-note.js +0 -1
  137. package/dist/types/job/job-status.d.ts +0 -5
  138. package/dist/types/job/job-status.js +0 -9
  139. package/dist/types/job/nuxt.d.ts +0 -4
  140. package/dist/types/job/nuxt.js +0 -1
  141. package/dist/types/job-filters/index.d.ts +0 -1
  142. package/dist/types/job-filters/index.js +0 -1
  143. package/dist/types/job-filters/job-filters.d.ts +0 -4
  144. package/dist/types/job-filters/job-filters.js +0 -1
  145. package/dist/types/logger/index.d.ts +0 -1
  146. package/dist/types/logger/index.js +0 -1
  147. package/dist/types/logger/log-event.js +0 -1
  148. package/dist/types/saved-search/index.d.ts +0 -6
  149. package/dist/types/saved-search/index.js +0 -1
  150. package/dist/types/scraper/index.d.ts +0 -2
  151. package/dist/types/scraper/index.js +0 -2
  152. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  153. package/dist/types/scraper/scrape-payload.js +0 -1
  154. package/dist/types/scraper/scrape-result.d.ts +0 -8
  155. package/dist/types/scraper/scrape-result.js +0 -1
  156. package/dist/types/shared.d.ts +0 -8
  157. package/dist/types/shared.js +0 -1
  158. package/dist/types/time-filter/index.d.ts +0 -3
  159. package/dist/types/time-filter/index.js +0 -1
  160. package/dist/types/transaction/index.d.ts +0 -4
  161. package/dist/types/transaction/index.js +0 -1
  162. package/dist/types/usage/index.d.ts +0 -6
  163. package/dist/types/usage/index.js +0 -1
  164. package/dist/types/user/index.d.ts +0 -15
  165. package/dist/types/user/index.js +0 -1
  166. package/dist/utils/index.js +0 -1
  167. package/dist/utils/try-catch.js +0 -10
@@ -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;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { Region } from "../shared";
2
3
  export declare const projectDurationEnum: z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>;
3
4
  export declare const engagementTypeEnum: z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>;
4
5
  export declare const vendorTypeEnum: z.ZodEnum<["Independent", "Agency", "Unspecified"]>;
@@ -146,7 +147,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
146
147
  excludes: string | null;
147
148
  } | null;
148
149
  isFeatured: "all" | "true" | "false" | null;
149
- regions: ("Worldwide" | "UKOnly" | "USOnly" | "all")[] | null;
150
+ regions: ("Worldwide" | "USOnly" | "UKOnly" | "all")[] | null;
150
151
  categories: {
151
152
  includes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
152
153
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
@@ -196,7 +197,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
196
197
  excludes: string | null;
197
198
  } | null;
198
199
  isFeatured: "all" | "true" | "false" | null;
199
- regions: ("Worldwide" | "UKOnly" | "USOnly" | "all")[] | null;
200
+ regions: ("Worldwide" | "USOnly" | "UKOnly" | "all")[] | null;
200
201
  categories: {
201
202
  includes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
202
203
  excludes: ("Accounting & Bookkeeping" | "Financial Planning" | "Management Consulting & Analysis" | "Other - Accounting & Consulting" | "Personal & Professional Coaching" | "Recruiting & Human Resources" | "Data Entry & Transcription Services" | "Market Research & Product Reviews" | "Project Management" | "Virtual Assistance" | "Community Management & Tagging" | "Customer Service & Tech Support" | "AI & Machine Learning" | "Data Analysis & Testing" | "Data Extraction/ETL" | "Data Mining & Management" | "Art & Illustration" | "Audio & Music Production" | "Branding & Logo Design" | "Graphic, Editorial & Presentation Design" | "NFT, AR/VR & Game Art" | "Performing Arts" | "Photography" | "Product Design" | "Video & Animation" | "3D Modeling & CAD" | "Building & Landscape Architecture" | "Chemical Engineering" | "Civil & Structural Engineering" | "Contract Manufacturing" | "Electrical & Electronic Engineering" | "Energy & Mechanical Engineering" | "Database Management & Administration" | "DevOps & Solution Architecture" | "ERP/CRM Software" | "Information Security & Compliance" | "Network & System Administration" | "Corporate & Contract Law" | "Finance & Tax Law" | "International & Immigration Law" | "Public Law" | "Digital Marketing" | "Lead Generation & Telemarketing" | "Marketing, PR & Brand Strategy" | "Language Tutoring & Interpretation" | "Translation & Localization Services" | "AI Apps & Integration" | "Blockchain, NFT & Cryptocurrency" | "Desktop Application Development" | "Ecommerce Development" | "Game Design & Development" | "Mobile Development" | "Other - Software Development" | "Product Management & Scrum" | "QA Testing" | "Scripts & Utilities" | "Web & Mobile Design" | "Web Development" | "Content Writing" | "Editing & Proofreading Services" | "Professional & Business Writing" | "Sales & Marketing Copywriting")[] | null;
@@ -252,4 +253,5 @@ export interface Counts {
252
253
  paymentType: Record<PaymentType, number>;
253
254
  paymentVerified: Record<IsPaymentVerified, number>;
254
255
  phoneVerified: Record<IsPhoneVerified, number>;
256
+ region: Record<Region, number>;
255
257
  }
@@ -568,18 +568,24 @@ export declare const aiConfigSchema: z.ZodObject<{
568
568
  answer: string;
569
569
  category: string;
570
570
  }>, "many">>;
571
+ disqualifierRules: z.ZodNullable<z.ZodString>;
572
+ userInstructions: z.ZodNullable<z.ZodString>;
571
573
  }, "strip", z.ZodTypeAny, {
572
574
  questionRules: {
573
575
  question: string;
574
576
  answer: string;
575
577
  category: string;
576
578
  }[] | null;
579
+ disqualifierRules: string | null;
580
+ userInstructions: string | null;
577
581
  }, {
578
582
  questionRules: {
579
583
  question: string;
580
584
  answer: string;
581
585
  category: string;
582
586
  }[] | null;
587
+ disqualifierRules: string | null;
588
+ userInstructions: string | null;
583
589
  }>;
584
590
  export declare const notificationConfigSchema: z.ZodObject<{
585
591
  emailEnabled: z.ZodBoolean;
@@ -609,18 +615,24 @@ export declare const organizationSettingsSchema: z.ZodObject<{
609
615
  answer: string;
610
616
  category: string;
611
617
  }>, "many">>;
618
+ disqualifierRules: z.ZodNullable<z.ZodString>;
619
+ userInstructions: z.ZodNullable<z.ZodString>;
612
620
  }, "strip", z.ZodTypeAny, {
613
621
  questionRules: {
614
622
  question: string;
615
623
  answer: string;
616
624
  category: string;
617
625
  }[] | null;
626
+ disqualifierRules: string | null;
627
+ userInstructions: string | null;
618
628
  }, {
619
629
  questionRules: {
620
630
  question: string;
621
631
  answer: string;
622
632
  category: string;
623
633
  }[] | null;
634
+ disqualifierRules: string | null;
635
+ userInstructions: string | null;
624
636
  }>;
625
637
  }, "strip", z.ZodTypeAny, {
626
638
  aiConfig: {
@@ -629,6 +641,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
629
641
  answer: string;
630
642
  category: string;
631
643
  }[] | null;
644
+ disqualifierRules: string | null;
645
+ userInstructions: string | null;
632
646
  };
633
647
  }, {
634
648
  aiConfig: {
@@ -637,6 +651,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
637
651
  answer: string;
638
652
  category: string;
639
653
  }[] | null;
654
+ disqualifierRules: string | null;
655
+ userInstructions: string | null;
640
656
  };
641
657
  }>;
642
658
  export declare const subscribePayloadSchema: z.ZodObject<{
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.81",
3
+ "version": "1.2.83",
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';