lancer-shared 1.2.74 → 1.2.76

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 (163) hide show
  1. package/dist/bundle.cjs.js +6 -0
  2. package/dist/constants/routes.d.ts +1 -0
  3. package/dist/schemas/campaign/campaign-analytics.d.ts +24 -24
  4. package/dist/schemas/logger/log-event.d.ts +11 -0
  5. package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
  6. package/package.json +1 -1
  7. package/dist/constants/collections.d.ts +0 -13
  8. package/dist/constants/collections.js +0 -14
  9. package/dist/constants/common-questions.js +0 -57
  10. package/dist/constants/index.js +0 -18
  11. package/dist/constants/job-filter-options.js +0 -265
  12. package/dist/constants/job-status.js +0 -21
  13. package/dist/constants/mappings/countryMapping.js +0 -120
  14. package/dist/constants/mappings/regionMapping.js +0 -240
  15. package/dist/constants/organization.d.ts +0 -2
  16. package/dist/constants/routes.js +0 -116
  17. package/dist/constants/upwork-accounts.js +0 -18
  18. package/dist/index.js +0 -4
  19. package/dist/schemas/account/account-status.js +0 -8
  20. package/dist/schemas/account/bidder-account.js +0 -35
  21. package/dist/schemas/account/index.js +0 -3
  22. package/dist/schemas/account/scraper-account.js +0 -34
  23. package/dist/schemas/ai/ai-config.d.ts +0 -36
  24. package/dist/schemas/ai/ai-config.js +0 -9
  25. package/dist/schemas/ai/index.d.ts +0 -3
  26. package/dist/schemas/ai/index.js +0 -3
  27. package/dist/schemas/ai/proposal.d.ts +0 -82
  28. package/dist/schemas/ai/proposal.js +0 -13
  29. package/dist/schemas/ai/suitability.d.ts +0 -37
  30. package/dist/schemas/ai/suitability.js +0 -14
  31. package/dist/schemas/bid/bid-result.js +0 -11
  32. package/dist/schemas/bid/bid.js +0 -35
  33. package/dist/schemas/bid/index.js +0 -2
  34. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
  35. package/dist/schemas/campaign/campaign-analytics.js +0 -42
  36. package/dist/schemas/campaign/campaign-expenses.js +0 -6
  37. package/dist/schemas/campaign/campaign-insights.js +0 -31
  38. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
  39. package/dist/schemas/campaign/campaign-integrations.js +0 -13
  40. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  41. package/dist/schemas/campaign/campaign-job-count.js +0 -3
  42. package/dist/schemas/campaign/campaign.js +0 -41
  43. package/dist/schemas/campaign/index.js +0 -7
  44. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  45. package/dist/schemas/chat-message/chat-message.js +0 -10
  46. package/dist/schemas/chat-message/index.d.ts +0 -1
  47. package/dist/schemas/chat-message/index.js +0 -1
  48. package/dist/schemas/config/agency-config.d.ts +0 -17
  49. package/dist/schemas/config/agency-config.js +0 -7
  50. package/dist/schemas/config/index.d.ts +0 -1
  51. package/dist/schemas/config/index.js +0 -1
  52. package/dist/schemas/event/index.d.ts +0 -58
  53. package/dist/schemas/index.js +0 -17
  54. package/dist/schemas/job-filters/index.d.ts +0 -1
  55. package/dist/schemas/job-filters/index.js +0 -1
  56. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  57. package/dist/schemas/job-filters/job-filters.js +0 -84
  58. package/dist/schemas/lead/index.js +0 -173
  59. package/dist/schemas/lead/lead-note.d.ts +0 -83
  60. package/dist/schemas/lead/lead-note.js +0 -27
  61. package/dist/schemas/lead/lead-status.js +0 -23
  62. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  63. package/dist/schemas/lead/nuxt.js +0 -287
  64. package/dist/schemas/logger/index.js +0 -1
  65. package/dist/schemas/logger/log-event.js +0 -117
  66. package/dist/schemas/meter-event/index.d.ts +0 -12
  67. package/dist/schemas/organization/index.js +0 -70
  68. package/dist/schemas/organization/member.js +0 -7
  69. package/dist/schemas/organization/organization.d.ts +0 -240
  70. package/dist/schemas/organization/organization.js +0 -16
  71. package/dist/schemas/organization/subscription.js +0 -17
  72. package/dist/schemas/proxy/index.js +0 -3
  73. package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
  74. package/dist/schemas/proxy/proxy-country.js +0 -249
  75. package/dist/schemas/proxy/proxy.js +0 -29
  76. package/dist/schemas/saved-search/index.js +0 -9
  77. package/dist/schemas/scraper/index.js +0 -2
  78. package/dist/schemas/scraper/scrape-payload.js +0 -21
  79. package/dist/schemas/scraper/scrape-result.js +0 -23
  80. package/dist/schemas/shared.js +0 -19
  81. package/dist/schemas/tier/index.d.ts +0 -119
  82. package/dist/schemas/time-filter/index.js +0 -6
  83. package/dist/schemas/transaction/index.js +0 -17
  84. package/dist/schemas/usage/index.js +0 -18
  85. package/dist/schemas/user/index.js +0 -52
  86. package/dist/types/account/account-status.d.ts +0 -3
  87. package/dist/types/account/account-status.js +0 -1
  88. package/dist/types/account/bidder-account.d.ts +0 -7
  89. package/dist/types/account/bidder-account.js +0 -1
  90. package/dist/types/account/index.d.ts +0 -3
  91. package/dist/types/account/index.js +0 -3
  92. package/dist/types/account/scraper-account.d.ts +0 -5
  93. package/dist/types/account/scraper-account.js +0 -1
  94. package/dist/types/ai/ai-config.d.ts +0 -6
  95. package/dist/types/ai/ai-config.js +0 -1
  96. package/dist/types/ai/index.d.ts +0 -3
  97. package/dist/types/ai/index.js +0 -3
  98. package/dist/types/ai/proposal.d.ts +0 -10
  99. package/dist/types/ai/proposal.js +0 -1
  100. package/dist/types/ai/suitability.d.ts +0 -6
  101. package/dist/types/ai/suitability.js +0 -1
  102. package/dist/types/bid/bid-result.d.ts +0 -5
  103. package/dist/types/bid/bid-result.js +0 -1
  104. package/dist/types/bid/bid.d.ts +0 -9
  105. package/dist/types/bid/bid.js +0 -1
  106. package/dist/types/bid/index.d.ts +0 -2
  107. package/dist/types/bid/index.js +0 -2
  108. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  109. package/dist/types/campaign/campaign-analytics.js +0 -1
  110. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  111. package/dist/types/campaign/campaign-expenses.js +0 -1
  112. package/dist/types/campaign/campaign-insights.js +0 -1
  113. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  114. package/dist/types/campaign/campaign-integrations.js +0 -1
  115. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  116. package/dist/types/campaign/campaign-job-count.js +0 -1
  117. package/dist/types/campaign/campaign.js +0 -1
  118. package/dist/types/campaign/index.js +0 -6
  119. package/dist/types/chat-message/chat-message.d.ts +0 -4
  120. package/dist/types/chat-message/chat-message.js +0 -1
  121. package/dist/types/chat-message/index.d.ts +0 -1
  122. package/dist/types/chat-message/index.js +0 -1
  123. package/dist/types/config/agency-config.d.ts +0 -4
  124. package/dist/types/config/agency-config.js +0 -1
  125. package/dist/types/config/index.d.ts +0 -1
  126. package/dist/types/config/index.js +0 -1
  127. package/dist/types/index.d.ts +0 -15
  128. package/dist/types/index.js +0 -15
  129. package/dist/types/job/index.d.ts +0 -48
  130. package/dist/types/job/index.js +0 -3
  131. package/dist/types/job/job-note.d.ts +0 -10
  132. package/dist/types/job/job-note.js +0 -1
  133. package/dist/types/job/job-status.d.ts +0 -5
  134. package/dist/types/job/job-status.js +0 -9
  135. package/dist/types/job/nuxt.d.ts +0 -4
  136. package/dist/types/job/nuxt.js +0 -1
  137. package/dist/types/job-filters/index.d.ts +0 -1
  138. package/dist/types/job-filters/index.js +0 -1
  139. package/dist/types/job-filters/job-filters.d.ts +0 -4
  140. package/dist/types/job-filters/job-filters.js +0 -1
  141. package/dist/types/logger/index.d.ts +0 -1
  142. package/dist/types/logger/index.js +0 -1
  143. package/dist/types/logger/log-event.js +0 -1
  144. package/dist/types/saved-search/index.d.ts +0 -6
  145. package/dist/types/saved-search/index.js +0 -1
  146. package/dist/types/scraper/index.d.ts +0 -2
  147. package/dist/types/scraper/index.js +0 -2
  148. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  149. package/dist/types/scraper/scrape-payload.js +0 -1
  150. package/dist/types/scraper/scrape-result.d.ts +0 -8
  151. package/dist/types/scraper/scrape-result.js +0 -1
  152. package/dist/types/shared.d.ts +0 -8
  153. package/dist/types/shared.js +0 -1
  154. package/dist/types/time-filter/index.d.ts +0 -3
  155. package/dist/types/time-filter/index.js +0 -1
  156. package/dist/types/transaction/index.d.ts +0 -4
  157. package/dist/types/transaction/index.js +0 -1
  158. package/dist/types/usage/index.d.ts +0 -6
  159. package/dist/types/usage/index.js +0 -1
  160. package/dist/types/user/index.d.ts +0 -15
  161. package/dist/types/user/index.js +0 -1
  162. package/dist/utils/index.js +0 -1
  163. package/dist/utils/try-catch.js +0 -10
@@ -6556,6 +6556,7 @@ const ROUTES = {
6556
6556
  BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/activities`,
6557
6557
  BY_ID: (organizationId, campaignId, activityId) => `organizations/${organizationId}/campaigns/${campaignId}/activities/${activityId}`,
6558
6558
  },
6559
+ CHECK_LEAD_STATUS: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/check-lead-status`,
6559
6560
  },
6560
6561
  USAGE_SUMMARIES: {
6561
6562
  DAILY: {
@@ -12240,6 +12241,10 @@ const suitabilityCompleteEventMetadataSchema = objectType({
12240
12241
  content: z.string(),
12241
12242
  })),
12242
12243
  });
12244
+ const suitabilityFailedEventMetadataSchema = objectType({
12245
+ agentStatus: z.string(),
12246
+ reason: z.string(),
12247
+ });
12243
12248
  const proposalCompleteEventMetadataSchema = objectType({
12244
12249
  agentStatus: z.string(),
12245
12250
  proposal: proposalSchema,
@@ -13877,6 +13882,7 @@ exports.subscriptionStatusEnum = subscriptionStatusEnum;
13877
13882
  exports.subscriptionStripeMetadataItemSchema = subscriptionStripeMetadataItemSchema;
13878
13883
  exports.subscriptionStripeMetadataSchema = subscriptionStripeMetadataSchema;
13879
13884
  exports.suitabilityCompleteEventMetadataSchema = suitabilityCompleteEventMetadataSchema;
13885
+ exports.suitabilityFailedEventMetadataSchema = suitabilityFailedEventMetadataSchema;
13880
13886
  exports.suitabilityRatingSchema = suitabilityRatingSchema;
13881
13887
  exports.systemPromptSchema = systemPromptSchema;
13882
13888
  exports.systemSchema = systemSchema;
@@ -143,6 +143,7 @@ export declare const ROUTES: {
143
143
  readonly BASE: (organizationId: string, campaignId: string) => string;
144
144
  readonly BY_ID: (organizationId: string, campaignId: string, activityId: string) => string;
145
145
  };
146
+ readonly CHECK_LEAD_STATUS: (organizationId: string, campaignId: string) => string;
146
147
  };
147
148
  readonly USAGE_SUMMARIES: {
148
149
  readonly DAILY: {
@@ -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;
@@ -413,6 +413,17 @@ export declare const suitabilityCompleteEventMetadataSchema: z.ZodObject<{
413
413
  }[];
414
414
  }>;
415
415
  export type SuitabilityCompleteEventMetadata = z.infer<typeof suitabilityCompleteEventMetadataSchema>;
416
+ export declare const suitabilityFailedEventMetadataSchema: z.ZodObject<{
417
+ agentStatus: z.ZodString;
418
+ reason: z.ZodString;
419
+ }, "strip", z.ZodTypeAny, {
420
+ reason: string;
421
+ agentStatus: string;
422
+ }, {
423
+ reason: string;
424
+ agentStatus: string;
425
+ }>;
426
+ export type SuitabilityFailedEventMetadata = z.infer<typeof suitabilityFailedEventMetadataSchema>;
416
427
  export declare const proposalCompleteEventMetadataSchema: z.ZodObject<{
417
428
  agentStatus: z.ZodString;
418
429
  proposal: 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.74",
3
+ "version": "1.2.76",
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';
@@ -1,265 +0,0 @@
1
- export const JOB_FILTER_OPTIONS = {
2
- REGIONS: ["Worldwide", "UKOnly", "USOnly"],
3
- PROJECT_DURATION: [
4
- "Less than 1 month",
5
- "1 to 3 months",
6
- "3 to 6 months",
7
- "More than 6 months",
8
- "Unspecified",
9
- ],
10
- ENGAGEMENT_TYPE: [
11
- "Less than 30 hrs/week",
12
- "More than 30 hrs/week",
13
- "Unspecified",
14
- ],
15
- VENDOR_TYPE: ["Independent", "Agency", "Unspecified"],
16
- PAYMENT_TYPE: ["Fixed-price", "Hourly", "Unspecified"],
17
- TALENT_TYPE: ["Agency", "Independent", "Unspecified"],
18
- ENGLISH_LEVELS: [
19
- "Fluent",
20
- "Conversational",
21
- "Native or Bilingual",
22
- "Unspecified",
23
- ],
24
- EXPERIENCE_LEVELS: ["Entry level", "Intermediate", "Expert"],
25
- REQUIRED_EARNINGS: [100, 1000, 10000],
26
- REQUIRED_JSS: [">80%", ">90%", "100%", "RT"],
27
- HIERARCHICAL_CATEGORIES: [
28
- {
29
- label: "Accounting & Consulting",
30
- value: "accounting-consulting",
31
- children: [
32
- "Accounting & Bookkeeping",
33
- "Financial Planning",
34
- "Management Consulting & Analysis",
35
- "Other - Accounting & Consulting",
36
- "Personal & Professional Coaching",
37
- "Recruiting & Human Resources",
38
- ],
39
- },
40
- {
41
- label: "Admin Support",
42
- value: "admin-support",
43
- children: [
44
- "Data Entry & Transcription Services",
45
- "Market Research & Product Reviews",
46
- "Project Management",
47
- "Virtual Assistance",
48
- ],
49
- },
50
- {
51
- label: "Customer Service",
52
- value: "customer-service",
53
- children: [
54
- "Community Management & Tagging",
55
- "Customer Service & Tech Support",
56
- ],
57
- },
58
- {
59
- label: "Data Science & Analytics",
60
- value: "data-science-analytics",
61
- children: [
62
- "AI & Machine Learning",
63
- "Data Analysis & Testing",
64
- "Data Extraction/ETL",
65
- "Data Mining & Management",
66
- ],
67
- },
68
- {
69
- label: "Design & Creative",
70
- value: "design-creative",
71
- children: [
72
- "Art & Illustration",
73
- "Audio & Music Production",
74
- "Branding & Logo Design",
75
- "Graphic, Editorial & Presentation Design",
76
- "NFT, AR/VR & Game Art",
77
- "Performing Arts",
78
- "Photography",
79
- "Product Design",
80
- "Video & Animation",
81
- ],
82
- },
83
- {
84
- label: "Engineering & Architecture",
85
- value: "engineering-architecture",
86
- children: [
87
- "3D Modeling & CAD",
88
- "Building & Landscape Architecture",
89
- "Chemical Engineering",
90
- "Civil & Structural Engineering",
91
- "Contract Manufacturing",
92
- "Electrical & Electronic Engineering",
93
- "Energy & Mechanical Engineering",
94
- ],
95
- },
96
- {
97
- label: "IT & Networking",
98
- value: "it-networking",
99
- children: [
100
- "Database Management & Administration",
101
- "DevOps & Solution Architecture",
102
- "ERP/CRM Software",
103
- "Information Security & Compliance",
104
- "Network & System Administration",
105
- ],
106
- },
107
- {
108
- label: "Legal",
109
- value: "legal",
110
- children: [
111
- "Corporate & Contract Law",
112
- "Finance & Tax Law",
113
- "International & Immigration Law",
114
- "Public Law",
115
- ],
116
- },
117
- {
118
- label: "Sales & Marketing",
119
- value: "sales-marketing",
120
- children: [
121
- "Digital Marketing",
122
- "Lead Generation & Telemarketing",
123
- "Marketing, PR & Brand Strategy",
124
- ],
125
- },
126
- {
127
- label: "Translation",
128
- value: "translation",
129
- children: [
130
- "Language Tutoring & Interpretation",
131
- "Translation & Localization Services",
132
- ],
133
- },
134
- {
135
- label: "Software Development",
136
- value: "software-development",
137
- children: [
138
- "AI Apps & Integration",
139
- "Blockchain, NFT & Cryptocurrency",
140
- "Desktop Application Development",
141
- "Ecommerce Development",
142
- "Game Design & Development",
143
- "Mobile Development",
144
- "Other - Software Development",
145
- "Product Management & Scrum",
146
- "QA Testing",
147
- "Scripts & Utilities",
148
- "Web & Mobile Design",
149
- "Web Development",
150
- ],
151
- },
152
- {
153
- label: "Writing",
154
- value: "writing",
155
- children: [
156
- "Content Writing",
157
- "Editing & Proofreading Services",
158
- "Professional & Business Writing",
159
- "Sales & Marketing Copywriting",
160
- ],
161
- },
162
- ],
163
- CATEGORIES: [
164
- "Personal & Professional Coaching",
165
- "Accounting & Bookkeeping",
166
- "Financial Planning",
167
- "Recruiting & Human Resources",
168
- "Management Consulting & Analysis",
169
- "Other - Accounting & Consulting",
170
- "Data Entry & Transcription Services",
171
- "Virtual Assistance",
172
- "Project Management",
173
- "Market Research & Product Reviews",
174
- "Community Management & Tagging",
175
- "Customer Service & Tech Support",
176
- "Data Analysis & Testing",
177
- "Data Extraction/ETL",
178
- "Data Mining & Management",
179
- "AI & Machine Learning",
180
- "Art & Illustration",
181
- "Audio & Music Production",
182
- "Branding & Logo Design",
183
- "NFT, AR/VR & Game Art",
184
- "Graphic, Editorial & Presentation Design",
185
- "Performing Arts",
186
- "Photography",
187
- "Product Design",
188
- "Video & Animation",
189
- "Building & Landscape Architecture",
190
- "Chemical Engineering",
191
- "Civil & Structural Engineering",
192
- "Contract Manufacturing",
193
- "Electrical & Electronic Engineering",
194
- "Energy & Mechanical Engineering",
195
- "3D Modeling & CAD",
196
- "Database Management & Administration",
197
- "ERP/CRM Software",
198
- "Information Security & Compliance",
199
- "Network & System Administration",
200
- "DevOps & Solution Architecture",
201
- "Corporate & Contract Law",
202
- "International & Immigration Law",
203
- "Finance & Tax Law",
204
- "Public Law",
205
- "Digital Marketing",
206
- "Lead Generation & Telemarketing",
207
- "Marketing, PR & Brand Strategy",
208
- "Language Tutoring & Interpretation",
209
- "Translation & Localization Services",
210
- "Blockchain, NFT & Cryptocurrency",
211
- "AI Apps & Integration",
212
- "Desktop Application Development",
213
- "Ecommerce Development",
214
- "Game Design & Development",
215
- "Mobile Development",
216
- "Other - Software Development",
217
- "Product Management & Scrum",
218
- "QA Testing",
219
- "Scripts & Utilities",
220
- "Web & Mobile Design",
221
- "Web Development",
222
- "Sales & Marketing Copywriting",
223
- "Content Writing",
224
- "Editing & Proofreading Services",
225
- "Professional & Business Writing",
226
- ],
227
- CLIENT_INDUSTRY: [
228
- "Aerospace",
229
- "Agriculture & Forestry",
230
- "Art & Design",
231
- "Automotive",
232
- "Aviation",
233
- "Education",
234
- "Energy & Utilities",
235
- "Engineering & Architecture",
236
- "Fashion & Beauty",
237
- "Finance & Accounting",
238
- "Food & Beverage",
239
- "Government & Public Sector",
240
- "Health & Fitness",
241
- "HR & Business Services",
242
- "Legal",
243
- "Manufacturing & Construction",
244
- "Media & Entertainment",
245
- "Military & Defense",
246
- "Mining",
247
- "Real Estate",
248
- "Retail & Consumer Goods",
249
- "Sales & Marketing",
250
- "Science & Medicine",
251
- "Sports & Recreation",
252
- "Supply Chain & Logistics",
253
- "Tech & IT",
254
- "Transportation & Warehousing",
255
- "Travel & Hospitality",
256
- ],
257
- CLIENT_SIZE: [
258
- "Individual client",
259
- "Small company (2-9 people)",
260
- "Mid-sized company (10-99 people)",
261
- "Large company (100-1,000 people)",
262
- "Large company (1,000+ people)",
263
- "Unspecified",
264
- ],
265
- };