lancer-shared 1.2.35 → 1.2.36

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 (203) hide show
  1. package/dist/bundle.cjs.js +16 -16
  2. package/dist/index.d.ts +3 -3
  3. package/dist/schemas/agent/index.d.ts +10 -20
  4. package/dist/schemas/campaign/campaign.d.ts +2 -2
  5. package/dist/schemas/index.d.ts +1 -0
  6. package/dist/schemas/logger/log-event.d.ts +5 -5
  7. package/dist/schemas/organization/cover-letter.d.ts +21 -17
  8. package/dist/schemas/organization/index.d.ts +4 -2
  9. package/dist/schemas/scraper/scrape-payload.d.ts +10 -15
  10. package/dist/schemas/shared.d.ts +0 -20
  11. package/package.json +1 -1
  12. package/dist/constants/account-status.d.ts +0 -3
  13. package/dist/constants/account-status.js +0 -17
  14. package/dist/constants/collections.d.ts +0 -13
  15. package/dist/constants/collections.js +0 -16
  16. package/dist/constants/common-questions.js +0 -60
  17. package/dist/constants/index.js +0 -40
  18. package/dist/constants/job-filter-options.js +0 -268
  19. package/dist/constants/job-status.js +0 -26
  20. package/dist/constants/mappings/countryMapping.js +0 -122
  21. package/dist/constants/mappings/regionMapping.js +0 -242
  22. package/dist/constants/organization.d.ts +0 -2
  23. package/dist/constants/routes.js +0 -108
  24. package/dist/constants/upwork-accounts.js +0 -21
  25. package/dist/index.js +0 -20
  26. package/dist/schemas/account/account-status.js +0 -11
  27. package/dist/schemas/account/bidder-account.js +0 -37
  28. package/dist/schemas/account/index.js +0 -19
  29. package/dist/schemas/account/manager-account.d.ts +0 -116
  30. package/dist/schemas/account/manager-account.js +0 -38
  31. package/dist/schemas/account/scraper-account.js +0 -37
  32. package/dist/schemas/ai/ai-config.d.ts +0 -36
  33. package/dist/schemas/ai/ai-config.js +0 -12
  34. package/dist/schemas/ai/index.d.ts +0 -3
  35. package/dist/schemas/ai/index.js +0 -19
  36. package/dist/schemas/ai/proposal.d.ts +0 -82
  37. package/dist/schemas/ai/proposal.js +0 -16
  38. package/dist/schemas/ai/suitability.d.ts +0 -37
  39. package/dist/schemas/ai/suitability.js +0 -17
  40. package/dist/schemas/bid/bid-result.js +0 -15
  41. package/dist/schemas/bid/bid.js +0 -36
  42. package/dist/schemas/bid/index.js +0 -18
  43. package/dist/schemas/bidding/index.d.ts +0 -1
  44. package/dist/schemas/bidding/index.js +0 -17
  45. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  46. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  47. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  48. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  49. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  50. package/dist/schemas/campaign/campaign-insights.js +0 -31
  51. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
  52. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  53. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  54. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  55. package/dist/schemas/campaign/campaign.js +0 -44
  56. package/dist/schemas/campaign/index.js +0 -23
  57. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  58. package/dist/schemas/chat-message/chat-message.js +0 -13
  59. package/dist/schemas/chat-message/index.d.ts +0 -1
  60. package/dist/schemas/chat-message/index.js +0 -17
  61. package/dist/schemas/config/agency-config.d.ts +0 -17
  62. package/dist/schemas/config/agency-config.js +0 -10
  63. package/dist/schemas/config/index.d.ts +0 -1
  64. package/dist/schemas/config/index.js +0 -17
  65. package/dist/schemas/index.js +0 -32
  66. package/dist/schemas/job/index.js +0 -19
  67. package/dist/schemas/job/job-details.d.ts +0 -335
  68. package/dist/schemas/job/job-details.js +0 -29
  69. package/dist/schemas/job/job-note.d.ts +0 -83
  70. package/dist/schemas/job/job-note.js +0 -30
  71. package/dist/schemas/job/job-status.d.ts +0 -3
  72. package/dist/schemas/job/job-status.js +0 -27
  73. package/dist/schemas/job/job.d.ts +0 -1160
  74. package/dist/schemas/job/job.js +0 -90
  75. package/dist/schemas/job/pipeline-job.d.ts +0 -602
  76. package/dist/schemas/job/pipeline-job.js +0 -42
  77. package/dist/schemas/job/upwork-job.d.ts +0 -334
  78. package/dist/schemas/job/upwork-job.js +0 -60
  79. package/dist/schemas/job-filters/index.d.ts +0 -1
  80. package/dist/schemas/job-filters/index.js +0 -17
  81. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  82. package/dist/schemas/job-filters/job-filters.js +0 -87
  83. package/dist/schemas/lead/index.js +0 -19
  84. package/dist/schemas/lead/lead-note.d.ts +0 -83
  85. package/dist/schemas/lead/lead-note.js +0 -30
  86. package/dist/schemas/lead/lead-status.js +0 -26
  87. package/dist/schemas/lead/lead.d.ts +0 -1897
  88. package/dist/schemas/lead/lead.js +0 -143
  89. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  90. package/dist/schemas/logger/index.js +0 -17
  91. package/dist/schemas/logger/log-event.js +0 -66
  92. package/dist/schemas/organization/index.js +0 -17
  93. package/dist/schemas/organization/organization.d.ts +0 -70
  94. package/dist/schemas/organization/organization.js +0 -19
  95. package/dist/schemas/proxy/index.js +0 -17
  96. package/dist/schemas/proxy/proxy.js +0 -21
  97. package/dist/schemas/saved-search/index.js +0 -12
  98. package/dist/schemas/scraper/index.js +0 -18
  99. package/dist/schemas/scraper/scrape-payload.js +0 -16
  100. package/dist/schemas/scraper/scrape-result.js +0 -23
  101. package/dist/schemas/shared.js +0 -16
  102. package/dist/schemas/time-filter/index.js +0 -9
  103. package/dist/schemas/upwork-account/index.d.ts +0 -3
  104. package/dist/schemas/upwork-account/index.js +0 -19
  105. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  106. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  107. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  108. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  109. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  110. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -29
  111. package/dist/schemas/user/index.js +0 -55
  112. package/dist/types/account/account-status.d.ts +0 -3
  113. package/dist/types/account/account-status.js +0 -2
  114. package/dist/types/account/bidder-account.d.ts +0 -7
  115. package/dist/types/account/bidder-account.js +0 -2
  116. package/dist/types/account/index.d.ts +0 -3
  117. package/dist/types/account/index.js +0 -19
  118. package/dist/types/account/manager-account.d.ts +0 -7
  119. package/dist/types/account/manager-account.js +0 -2
  120. package/dist/types/account/scraper-account.d.ts +0 -5
  121. package/dist/types/account/scraper-account.js +0 -2
  122. package/dist/types/ai/ai-config.d.ts +0 -6
  123. package/dist/types/ai/ai-config.js +0 -2
  124. package/dist/types/ai/index.d.ts +0 -3
  125. package/dist/types/ai/index.js +0 -19
  126. package/dist/types/ai/proposal.d.ts +0 -10
  127. package/dist/types/ai/proposal.js +0 -2
  128. package/dist/types/ai/suitability.d.ts +0 -6
  129. package/dist/types/ai/suitability.js +0 -2
  130. package/dist/types/bid/bid-result.d.ts +0 -5
  131. package/dist/types/bid/bid-result.js +0 -2
  132. package/dist/types/bid/bid.d.ts +0 -9
  133. package/dist/types/bid/bid.js +0 -2
  134. package/dist/types/bid/index.d.ts +0 -2
  135. package/dist/types/bid/index.js +0 -18
  136. package/dist/types/bidding/index.d.ts +0 -1
  137. package/dist/types/bidding/index.js +0 -17
  138. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  139. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  140. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  141. package/dist/types/campaign/campaign-analytics.js +0 -2
  142. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  143. package/dist/types/campaign/campaign-expenses.js +0 -2
  144. package/dist/types/campaign/campaign-insights.js +0 -2
  145. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  146. package/dist/types/campaign/campaign-integrations.js +0 -2
  147. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  148. package/dist/types/campaign/campaign-job-count.js +0 -2
  149. package/dist/types/campaign/campaign.js +0 -2
  150. package/dist/types/campaign/index.js +0 -22
  151. package/dist/types/chat-message/chat-message.d.ts +0 -4
  152. package/dist/types/chat-message/chat-message.js +0 -2
  153. package/dist/types/chat-message/index.d.ts +0 -1
  154. package/dist/types/chat-message/index.js +0 -17
  155. package/dist/types/config/agency-config.d.ts +0 -4
  156. package/dist/types/config/agency-config.js +0 -2
  157. package/dist/types/config/index.d.ts +0 -1
  158. package/dist/types/config/index.js +0 -17
  159. package/dist/types/index.d.ts +0 -15
  160. package/dist/types/index.js +0 -29
  161. package/dist/types/job/index.d.ts +0 -48
  162. package/dist/types/job/index.js +0 -19
  163. package/dist/types/job/job-details.d.ts +0 -36
  164. package/dist/types/job/job-details.js +0 -2
  165. package/dist/types/job/job-note.d.ts +0 -10
  166. package/dist/types/job/job-note.js +0 -2
  167. package/dist/types/job/job-status.d.ts +0 -5
  168. package/dist/types/job/job-status.js +0 -12
  169. package/dist/types/job/job.d.ts +0 -36
  170. package/dist/types/job/job.js +0 -2
  171. package/dist/types/job/nuxt.d.ts +0 -4
  172. package/dist/types/job-filters/index.d.ts +0 -1
  173. package/dist/types/job-filters/index.js +0 -17
  174. package/dist/types/job-filters/job-filters.d.ts +0 -4
  175. package/dist/types/job-filters/job-filters.js +0 -2
  176. package/dist/types/logger/index.d.ts +0 -1
  177. package/dist/types/logger/index.js +0 -17
  178. package/dist/types/logger/log-event.js +0 -2
  179. package/dist/types/saved-search/index.d.ts +0 -6
  180. package/dist/types/saved-search/index.js +0 -2
  181. package/dist/types/scraper/index.d.ts +0 -2
  182. package/dist/types/scraper/index.js +0 -18
  183. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  184. package/dist/types/scraper/scrape-payload.js +0 -2
  185. package/dist/types/scraper/scrape-result.d.ts +0 -8
  186. package/dist/types/scraper/scrape-result.js +0 -2
  187. package/dist/types/shared.d.ts +0 -8
  188. package/dist/types/time-filter/index.d.ts +0 -3
  189. package/dist/types/time-filter/index.js +0 -2
  190. package/dist/types/transaction/index.d.ts +0 -4
  191. package/dist/types/upwork-account/index.d.ts +0 -3
  192. package/dist/types/upwork-account/index.js +0 -19
  193. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  194. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  195. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  196. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  197. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  198. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  199. package/dist/types/usage/index.d.ts +0 -6
  200. package/dist/types/user/index.d.ts +0 -15
  201. package/dist/types/user/index.js +0 -2
  202. package/dist/utils/index.js +0 -17
  203. package/dist/utils/try-catch.js +0 -25
@@ -11447,6 +11447,9 @@ const noGoogleOAuthTokensFoundException = (message) => new NoGoogleOAuthTokensFo
11447
11447
  const booleanSchema = z
11448
11448
  .union([z.boolean(), z.literal("true"), z.literal("false")])
11449
11449
  .transform((value) => value === true || value === "true");
11450
+ const dateSchema = (params = {}) => coerce.date({
11451
+ ...params,
11452
+ });
11450
11453
  const passwordSchema = stringType()
11451
11454
  .min(8, "Password must be at least 8 characters long.")
11452
11455
  .max(255, "Password must be at most 255 characters long.")
@@ -11459,14 +11462,6 @@ const regionSchema = z.union([
11459
11462
  z.literal("UKOnly"),
11460
11463
  z.literal("Worldwide"),
11461
11464
  ]);
11462
- z.object({
11463
- id: z.string(),
11464
- name: z.string(),
11465
- });
11466
- z.object({
11467
- id: z.string(),
11468
- name: z.string(),
11469
- });
11470
11465
 
11471
11466
  const segmentationDataSchema = objectType({
11472
11467
  customValue: stringType().nullable(),
@@ -12292,16 +12287,17 @@ const onboardingProgressSchema = z.object({
12292
12287
  automationEnabled: z.boolean(),
12293
12288
  });
12294
12289
 
12295
- const coverLetterSchema = z.object({
12290
+ const coverLetterTemplateSchema = z.object({
12296
12291
  id: z.string(),
12297
12292
  name: z.string(),
12298
- coverLetterExample: z.string(),
12299
- coverLetterRules: z.string(),
12293
+ description: z.string().nullable(),
12294
+ template: z.string(),
12295
+ instructions: z.string(),
12300
12296
  });
12301
- const createCoverLetterSchema = coverLetterSchema.pick({
12297
+ const createCoverLetterTemplateSchema = coverLetterTemplateSchema.pick({
12302
12298
  name: true,
12303
- coverLetterExample: true,
12304
- coverLetterRules: true,
12299
+ template: true,
12300
+ instructions: true,
12305
12301
  });
12306
12302
 
12307
12303
  const organizationTypeSchema = z.enum(["agency", "freelancer"]);
@@ -13664,6 +13660,7 @@ exports.bidderAccountProviderDisplayMap = bidderAccountProviderDisplayMap;
13664
13660
  exports.bidderAccountSchema = bidderAccountSchema;
13665
13661
  exports.biddingCompletedEventMetadata = biddingCompletedEventMetadata;
13666
13662
  exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
13663
+ exports.booleanSchema = booleanSchema;
13667
13664
  exports.buildRoute = buildRoute;
13668
13665
  exports.campaignAIMetricsSchema = campaignAIMetricsSchema;
13669
13666
  exports.campaignActivityCreateSchema = campaignActivityCreateSchema;
@@ -13691,13 +13688,14 @@ exports.clientSizeEnum = clientSizeEnum;
13691
13688
  exports.cloudflareProtectionFailure = cloudflareProtectionFailure;
13692
13689
  exports.commonQuestions = commonQuestions;
13693
13690
  exports.countryMapping = countryMapping;
13694
- exports.coverLetterSchema = coverLetterSchema;
13691
+ exports.coverLetterTemplateSchema = coverLetterTemplateSchema;
13695
13692
  exports.createBidderAccountSchema = createBidderAccountSchema;
13696
13693
  exports.createCampaignSchema = createCampaignSchema;
13697
- exports.createCoverLetterSchema = createCoverLetterSchema;
13694
+ exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
13698
13695
  exports.createOrganizationSchema = createOrganizationSchema;
13699
13696
  exports.createScraperAccountSchema = createScraperAccountSchema;
13700
13697
  exports.dailyUsageSchema = dailyUsageSchema;
13698
+ exports.dateSchema = dateSchema;
13701
13699
  exports.deleteMultiloginProfileException = deleteMultiloginProfileException;
13702
13700
  exports.dropdownOptionNotPresentException = dropdownOptionNotPresentException;
13703
13701
  exports.elementNotClickableException = elementNotClickableException;
@@ -13779,6 +13777,7 @@ exports.organizationSettingsSchema = organizationSettingsSchema;
13779
13777
  exports.organizationTierEnum = organizationTierEnum;
13780
13778
  exports.organizationTypeSchema = organizationTypeSchema;
13781
13779
  exports.parseConnectsException = parseConnectsException;
13780
+ exports.passwordSchema = passwordSchema;
13782
13781
  exports.paymentTypeEnum = paymentTypeEnum;
13783
13782
  exports.periodUsageSchema = periodUsageSchema;
13784
13783
  exports.planFeatureSchema = planFeatureSchema;
@@ -13802,6 +13801,7 @@ exports.questionPairNotMatchingException = questionPairNotMatchingException;
13802
13801
  exports.questionRulesSchema = questionRulesSchema;
13803
13802
  exports.regionEnum = regionEnum;
13804
13803
  exports.regionMapping = regionMapping;
13804
+ exports.regionSchema = regionSchema;
13805
13805
  exports.registerSchema = registerSchema;
13806
13806
  exports.requiredEarningsEnum = requiredEarningsEnum;
13807
13807
  exports.requiredJSSEnum = requiredJSSEnum;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './schemas';
3
- export * from './utils';
1
+ export * from "./constants";
2
+ export * from "./schemas";
3
+ export * from "./utils";
@@ -318,13 +318,12 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
318
318
  answer: string;
319
319
  }>, "many">>;
320
320
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
321
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
321
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
322
322
  biddingAmount: z.ZodNullable<z.ZodNumber>;
323
323
  boosted: z.ZodNullable<z.ZodBoolean>;
324
324
  boostingAmount: z.ZodNullable<z.ZodNumber>;
325
325
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
326
326
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
327
- wonAmount: z.ZodOptional<z.ZodNumber>;
328
327
  }>, "processed">, "strip", z.ZodTypeAny, {
329
328
  id: string | null;
330
329
  uid: string | null;
@@ -425,7 +424,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
425
424
  answer: string;
426
425
  }[] | null;
427
426
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
428
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
427
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
429
428
  biddingAmount: number | null;
430
429
  boosted: boolean | null;
431
430
  boostingAmount: number | null;
@@ -452,7 +451,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
452
451
  unansweredInvites: number;
453
452
  } | null | undefined;
454
453
  proposalId?: string | undefined;
455
- wonAmount?: number | undefined;
456
454
  }, {
457
455
  id: string | null;
458
456
  uid: string | null;
@@ -553,7 +551,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
553
551
  answer: string;
554
552
  }[] | null;
555
553
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
556
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
554
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
557
555
  biddingAmount: number | null;
558
556
  boosted: boolean | null;
559
557
  boostingAmount: number | null;
@@ -580,7 +578,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
580
578
  unansweredInvites: number;
581
579
  } | null | undefined;
582
580
  proposalId?: string | undefined;
583
- wonAmount?: number | undefined;
584
581
  }>;
585
582
  }, "strip", z.ZodTypeAny, {
586
583
  userId: string;
@@ -686,7 +683,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
686
683
  answer: string;
687
684
  }[] | null;
688
685
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
689
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
686
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
690
687
  biddingAmount: number | null;
691
688
  boosted: boolean | null;
692
689
  boostingAmount: number | null;
@@ -713,7 +710,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
713
710
  unansweredInvites: number;
714
711
  } | null | undefined;
715
712
  proposalId?: string | undefined;
716
- wonAmount?: number | undefined;
717
713
  };
718
714
  }, {
719
715
  userId: string;
@@ -819,7 +815,7 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
819
815
  answer: string;
820
816
  }[] | null;
821
817
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
822
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
818
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
823
819
  biddingAmount: number | null;
824
820
  boosted: boolean | null;
825
821
  boostingAmount: number | null;
@@ -846,7 +842,6 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
846
842
  unansweredInvites: number;
847
843
  } | null | undefined;
848
844
  proposalId?: string | undefined;
849
- wonAmount?: number | undefined;
850
845
  };
851
846
  }>;
852
847
  export type AgentTaskRequest = z.infer<typeof agentTaskRequestSchema>;
@@ -1209,13 +1204,12 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1209
1204
  answer: string;
1210
1205
  }>, "many">>;
1211
1206
  agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1212
- leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
1207
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
1213
1208
  biddingAmount: z.ZodNullable<z.ZodNumber>;
1214
1209
  boosted: z.ZodNullable<z.ZodBoolean>;
1215
1210
  boostingAmount: z.ZodNullable<z.ZodNumber>;
1216
1211
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1217
1212
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1218
- wonAmount: z.ZodOptional<z.ZodNumber>;
1219
1213
  }>, "processed">, "strip", z.ZodTypeAny, {
1220
1214
  id: string | null;
1221
1215
  uid: string | null;
@@ -1316,7 +1310,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1316
1310
  answer: string;
1317
1311
  }[] | null;
1318
1312
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1319
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1313
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1320
1314
  biddingAmount: number | null;
1321
1315
  boosted: boolean | null;
1322
1316
  boostingAmount: number | null;
@@ -1343,7 +1337,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1343
1337
  unansweredInvites: number;
1344
1338
  } | null | undefined;
1345
1339
  proposalId?: string | undefined;
1346
- wonAmount?: number | undefined;
1347
1340
  }, {
1348
1341
  id: string | null;
1349
1342
  uid: string | null;
@@ -1444,7 +1437,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1444
1437
  answer: string;
1445
1438
  }[] | null;
1446
1439
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1447
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1440
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1448
1441
  biddingAmount: number | null;
1449
1442
  boosted: boolean | null;
1450
1443
  boostingAmount: number | null;
@@ -1471,7 +1464,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1471
1464
  unansweredInvites: number;
1472
1465
  } | null | undefined;
1473
1466
  proposalId?: string | undefined;
1474
- wonAmount?: number | undefined;
1475
1467
  }>;
1476
1468
  }, "strip", z.ZodTypeAny, {
1477
1469
  organizationId: string;
@@ -1575,7 +1567,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1575
1567
  answer: string;
1576
1568
  }[] | null;
1577
1569
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1578
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1570
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1579
1571
  biddingAmount: number | null;
1580
1572
  boosted: boolean | null;
1581
1573
  boostingAmount: number | null;
@@ -1602,7 +1594,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1602
1594
  unansweredInvites: number;
1603
1595
  } | null | undefined;
1604
1596
  proposalId?: string | undefined;
1605
- wonAmount?: number | undefined;
1606
1597
  };
1607
1598
  modelSuitability: string;
1608
1599
  modelProposal: string;
@@ -1720,7 +1711,7 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1720
1711
  answer: string;
1721
1712
  }[] | null;
1722
1713
  agentStatus: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1723
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1714
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1724
1715
  biddingAmount: number | null;
1725
1716
  boosted: boolean | null;
1726
1717
  boostingAmount: number | null;
@@ -1747,7 +1738,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1747
1738
  unansweredInvites: number;
1748
1739
  } | null | undefined;
1749
1740
  proposalId?: string | undefined;
1750
- wonAmount?: number | undefined;
1751
1741
  };
1752
1742
  modelSuitability: string;
1753
1743
  modelProposal: string;
@@ -2,7 +2,7 @@ import { infer, z } from "zod";
2
2
  import { JobFilters } from "../job";
3
3
  import { CampaignExpenses } from "./campaign-expenses";
4
4
  import { CampaignNotificationWebhooks } from "./campaign-notifications";
5
- import { CoverLetter } from "../organization";
5
+ import { CoverLetterTemplate } from "../organization";
6
6
  export declare const bidConfigSchema: z.ZodObject<{
7
7
  agencyName: z.ZodNullable<z.ZodString>;
8
8
  bidderId: z.ZodNullable<z.ZodString>;
@@ -1327,7 +1327,7 @@ export interface Campaign extends z.infer<typeof campaignSchema> {
1327
1327
  expenses: CampaignExpenses;
1328
1328
  notificationWebhooks: CampaignNotificationWebhooks;
1329
1329
  bidConfig: BidConfig | null;
1330
- coverLetterTemplate: CoverLetter | null;
1330
+ coverLetterTemplate: CoverLetterTemplate | null;
1331
1331
  }
1332
1332
  export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
1333
1333
  export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
@@ -19,3 +19,4 @@ export * from "./usage-event";
19
19
  export * from "./user";
20
20
  export * from "./dashboard";
21
21
  export * from "./notifications";
22
+ export * from "./shared";
@@ -290,13 +290,13 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
290
290
  leadId: z.ZodString;
291
291
  userId: z.ZodString;
292
292
  metadata: z.ZodOptional<z.ZodObject<{
293
- status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
293
+ status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>;
294
294
  proposalId: z.ZodNullable<z.ZodString>;
295
295
  }, "strip", z.ZodTypeAny, {
296
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
296
+ status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
297
297
  proposalId: string | null;
298
298
  }, {
299
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
299
+ status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
300
300
  proposalId: string | null;
301
301
  }>>;
302
302
  reason: z.ZodOptional<z.ZodString>;
@@ -307,7 +307,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
307
307
  leadId: string;
308
308
  reason?: string | undefined;
309
309
  metadata?: {
310
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
310
+ status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
311
311
  proposalId: string | null;
312
312
  } | undefined;
313
313
  }, {
@@ -317,7 +317,7 @@ export declare const leadStatusEventMetadata: z.ZodObject<{
317
317
  leadId: string;
318
318
  reason?: string | undefined;
319
319
  metadata?: {
320
- status: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost";
320
+ status: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost";
321
321
  proposalId: string | null;
322
322
  } | undefined;
323
323
  }>;
@@ -1,33 +1,37 @@
1
1
  import { z } from "zod";
2
- export declare const coverLetterSchema: z.ZodObject<{
2
+ export declare const coverLetterTemplateSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  name: z.ZodString;
5
- coverLetterExample: z.ZodString;
6
- coverLetterRules: z.ZodString;
5
+ description: z.ZodNullable<z.ZodString>;
6
+ template: z.ZodString;
7
+ instructions: z.ZodString;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  id: string;
9
10
  name: string;
10
- coverLetterExample: string;
11
- coverLetterRules: string;
11
+ description: string | null;
12
+ template: string;
13
+ instructions: string;
12
14
  }, {
13
15
  id: string;
14
16
  name: string;
15
- coverLetterExample: string;
16
- coverLetterRules: string;
17
+ description: string | null;
18
+ template: string;
19
+ instructions: string;
17
20
  }>;
18
- export declare const createCoverLetterSchema: z.ZodObject<Pick<{
21
+ export declare const createCoverLetterTemplateSchema: z.ZodObject<Pick<{
19
22
  id: z.ZodString;
20
23
  name: z.ZodString;
21
- coverLetterExample: z.ZodString;
22
- coverLetterRules: z.ZodString;
23
- }, "name" | "coverLetterExample" | "coverLetterRules">, "strip", z.ZodTypeAny, {
24
+ description: z.ZodNullable<z.ZodString>;
25
+ template: z.ZodString;
26
+ instructions: z.ZodString;
27
+ }, "name" | "template" | "instructions">, "strip", z.ZodTypeAny, {
24
28
  name: string;
25
- coverLetterExample: string;
26
- coverLetterRules: string;
29
+ template: string;
30
+ instructions: string;
27
31
  }, {
28
32
  name: string;
29
- coverLetterExample: string;
30
- coverLetterRules: string;
33
+ template: string;
34
+ instructions: string;
31
35
  }>;
32
- export type CoverLetter = z.infer<typeof coverLetterSchema>;
33
- export type CreateCoverLetter = z.infer<typeof createCoverLetterSchema>;
36
+ export type CoverLetterTemplate = z.infer<typeof coverLetterTemplateSchema>;
37
+ export type CreateCoverLetterTemplate = z.infer<typeof createCoverLetterTemplateSchema>;
@@ -1,5 +1,6 @@
1
1
  import { infer, z } from "zod";
2
- import { CoverLetter } from "./cover-letter";
2
+ import { OnboardingProgress } from "./onboarding";
3
+ import { CoverLetterTemplate } from "./cover-letter";
3
4
  export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
4
5
  export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
5
6
  export declare const limitsSchema: z.ZodObject<{
@@ -673,9 +674,10 @@ export declare const subscribePayloadSchema: z.ZodObject<{
673
674
  toltReferral?: string | undefined;
674
675
  }>;
675
676
  export interface Organization extends infer<typeof organizationSchema> {
676
- coverLetterTemplates: CoverLetter[] | null;
677
+ coverLetterTemplates: CoverLetterTemplate[] | null;
677
678
  settings: OrganizationSettings | null;
678
679
  profile: OrganizationProfile | null;
680
+ onboarding: OnboardingProgress | null;
679
681
  }
680
682
  export interface TrackUsagePayloadSchema extends infer<typeof trackUsagePayloadSchema> {
681
683
  }
@@ -346,7 +346,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
346
346
  monthlyBudget: import("zod").ZodNullable<import("zod").ZodNumber>;
347
347
  suitabilityThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
348
348
  boostingThreshold: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
349
- leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, import("zod").ZodNumber>>;
349
+ leadCounts: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>, import("zod").ZodNumber>>;
350
350
  expenses: import("zod").ZodObject<{
351
351
  biddingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
352
352
  boostingAmount: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -445,7 +445,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
445
445
  monthlyBudget: number | null;
446
446
  suitabilityThreshold: number | null;
447
447
  boostingThreshold: number | null;
448
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
448
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
449
449
  expenses: {
450
450
  biddingAmount: number;
451
451
  boostingAmount: number;
@@ -521,7 +521,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
521
521
  automatedBidding: boolean | null;
522
522
  webhookUrl: string | null;
523
523
  monthlyBudget: number | null;
524
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
524
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
525
525
  expenses: {
526
526
  biddingAmount?: number | undefined;
527
527
  boostingAmount?: number | undefined;
@@ -1110,13 +1110,12 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1110
1110
  answer: string;
1111
1111
  }>, "many">>;
1112
1112
  agentStatus: import("zod").ZodNullable<import("zod").ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
1113
- leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>>;
1113
+ leadStatus: import("zod").ZodNullable<import("zod").ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
1114
1114
  biddingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
1115
1115
  boosted: import("zod").ZodNullable<import("zod").ZodBoolean>;
1116
1116
  boostingAmount: import("zod").ZodNullable<import("zod").ZodNumber>;
1117
1117
  biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
1118
1118
  scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
1119
- wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
1120
1119
  }>, "processed">, "strip", import("zod").ZodTypeAny, {
1121
1120
  uid: string | null;
1122
1121
  title: string | null;
@@ -1220,7 +1219,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1220
1219
  answer: string;
1221
1220
  }[] | null;
1222
1221
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1223
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1222
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1224
1223
  biddingTaskScheduled: boolean | null;
1225
1224
  scheduledBiddingTime: number | null;
1226
1225
  activity?: Partial<Record<"4h" | "24h", {
@@ -1244,7 +1243,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1244
1243
  unansweredInvites: number;
1245
1244
  } | null | undefined;
1246
1245
  proposalId?: string | undefined;
1247
- wonAmount?: number | undefined;
1248
1246
  }, {
1249
1247
  uid: string | null;
1250
1248
  title: string | null;
@@ -1348,7 +1346,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1348
1346
  answer: string;
1349
1347
  }[] | null;
1350
1348
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1351
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1349
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1352
1350
  biddingTaskScheduled: boolean | null;
1353
1351
  scheduledBiddingTime: number | null;
1354
1352
  activity?: Partial<Record<"4h" | "24h", {
@@ -1372,7 +1370,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1372
1370
  unansweredInvites: number;
1373
1371
  } | null | undefined;
1374
1372
  proposalId?: string | undefined;
1375
- wonAmount?: number | undefined;
1376
1373
  }>;
1377
1374
  bidder: import("zod").ZodObject<{
1378
1375
  id: import("zod").ZodString;
@@ -1518,7 +1515,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1518
1515
  monthlyBudget: number | null;
1519
1516
  suitabilityThreshold: number | null;
1520
1517
  boostingThreshold: number | null;
1521
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
1518
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
1522
1519
  expenses: {
1523
1520
  biddingAmount: number;
1524
1521
  boostingAmount: number;
@@ -1682,7 +1679,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1682
1679
  answer: string;
1683
1680
  }[] | null;
1684
1681
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1685
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1682
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1686
1683
  biddingTaskScheduled: boolean | null;
1687
1684
  scheduledBiddingTime: number | null;
1688
1685
  activity?: Partial<Record<"4h" | "24h", {
@@ -1706,7 +1703,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1706
1703
  unansweredInvites: number;
1707
1704
  } | null | undefined;
1708
1705
  proposalId?: string | undefined;
1709
- wonAmount?: number | undefined;
1710
1706
  };
1711
1707
  bidder: {
1712
1708
  id: string;
@@ -1795,7 +1791,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1795
1791
  automatedBidding: boolean | null;
1796
1792
  webhookUrl: string | null;
1797
1793
  monthlyBudget: number | null;
1798
- leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
1794
+ leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost", number>> | null;
1799
1795
  expenses: {
1800
1796
  biddingAmount?: number | undefined;
1801
1797
  boostingAmount?: number | undefined;
@@ -1964,7 +1960,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1964
1960
  answer: string;
1965
1961
  }[] | null;
1966
1962
  agentStatus: "proposalFailed" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "jobArchived" | null;
1967
- leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | "lost" | null;
1963
+ leadStatus: "leads" | "contacted" | "viewed" | "replied" | "interview" | "won" | "lost" | null;
1968
1964
  biddingTaskScheduled: boolean | null;
1969
1965
  scheduledBiddingTime: number | null;
1970
1966
  activity?: Partial<Record<"4h" | "24h", {
@@ -1988,7 +1984,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1988
1984
  unansweredInvites: number;
1989
1985
  } | null | undefined;
1990
1986
  proposalId?: string | undefined;
1991
- wonAmount?: number | undefined;
1992
1987
  };
1993
1988
  bidder: {
1994
1989
  id: string;
@@ -12,23 +12,3 @@ export type RequiredKeys<T, K extends keyof T> = Partial<Omit<T, K>> & Required<
12
12
  export type DeepPartial<T> = T extends object ? {
13
13
  [P in keyof T]?: DeepPartial<T[P]>;
14
14
  } : T;
15
- export declare const organizationSchema: z.ZodObject<{
16
- id: z.ZodString;
17
- name: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- id: string;
20
- name: string;
21
- }, {
22
- id: string;
23
- name: string;
24
- }>;
25
- export declare const campaignSchema: z.ZodObject<{
26
- id: z.ZodString;
27
- name: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
29
- id: string;
30
- name: string;
31
- }, {
32
- id: string;
33
- name: string;
34
- }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.35",
3
+ "version": "1.2.36",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",
@@ -1,3 +0,0 @@
1
- import { AccountStatus } from '../types/account/account-status';
2
- export declare const accountStatusOrder: AccountStatus[];
3
- export declare const accountStatusDisplayMap: Record<AccountStatus, string>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
4
- exports.accountStatusOrder = [
5
- 'verification_required',
6
- 'shadow_banned',
7
- 'healthy',
8
- 'banned',
9
- 'suspended',
10
- ];
11
- exports.accountStatusDisplayMap = {
12
- verification_required: 'Verification Required',
13
- shadow_banned: 'Shadow Banned',
14
- healthy: 'Healthy',
15
- banned: 'Banned',
16
- suspended: 'Suspended',
17
- };
@@ -1,13 +0,0 @@
1
- export declare const COLLECTIONS: {
2
- readonly USERS: "users";
3
- readonly SETTINGS: "settings";
4
- readonly CAMPAIGNS: "campaigns";
5
- readonly LEADS: "leads";
6
- readonly EVENTS: "events";
7
- readonly SCRAPER_ACCOUNTS: "scrapers";
8
- readonly BIDDER_ACCOUNTS: "bidders";
9
- readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
10
- readonly ORGANIZATIONS: "organizations";
11
- readonly PROXIES: "proxies";
12
- readonly TRANSACTIONS: "transactions";
13
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COLLECTIONS = void 0;
4
- // Base collection names
5
- exports.COLLECTIONS = {
6
- USERS: 'users',
7
- SETTINGS: 'settings',
8
- CAMPAIGNS: 'campaigns',
9
- LEADS: 'leads',
10
- EVENTS: 'events',
11
- SCRAPER_ACCOUNTS: 'scrapers',
12
- BIDDER_ACCOUNTS: 'bidders',
13
- CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
14
- ORGANIZATIONS: 'organizations',
15
- PROXIES: 'proxies',
16
- };