lancer-shared 1.2.90 → 1.2.91

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 (164) hide show
  1. package/dist/bundle.cjs.js +3 -1
  2. package/dist/constants/collections.d.ts +13 -0
  3. package/dist/constants/collections.js +14 -0
  4. package/dist/constants/common-questions.js +57 -0
  5. package/dist/constants/index.js +18 -0
  6. package/dist/constants/job-filter-options.js +265 -0
  7. package/dist/constants/job-status.js +21 -0
  8. package/dist/constants/mappings/countryMapping.js +120 -0
  9. package/dist/constants/mappings/regionMapping.js +240 -0
  10. package/dist/constants/organization.d.ts +2 -0
  11. package/dist/constants/routes.js +116 -0
  12. package/dist/constants/upwork-accounts.js +18 -0
  13. package/dist/index.js +4 -0
  14. package/dist/schemas/account/account-status.js +8 -0
  15. package/dist/schemas/account/bidder-account.js +35 -0
  16. package/dist/schemas/account/index.js +3 -0
  17. package/dist/schemas/account/scraper-account.js +34 -0
  18. package/dist/schemas/ai/ai-config.d.ts +36 -0
  19. package/dist/schemas/ai/ai-config.js +9 -0
  20. package/dist/schemas/ai/index.d.ts +3 -0
  21. package/dist/schemas/ai/index.js +3 -0
  22. package/dist/schemas/ai/proposal.d.ts +82 -0
  23. package/dist/schemas/ai/proposal.js +13 -0
  24. package/dist/schemas/ai/suitability.d.ts +37 -0
  25. package/dist/schemas/ai/suitability.js +14 -0
  26. package/dist/schemas/bid/bid-result.js +11 -0
  27. package/dist/schemas/bid/bid.js +35 -0
  28. package/dist/schemas/bid/index.js +2 -0
  29. package/dist/schemas/campaign/campaign-ai-metrics.js +6 -0
  30. package/dist/schemas/campaign/campaign-analytics.d.ts +40 -40
  31. package/dist/schemas/campaign/campaign-analytics.js +42 -0
  32. package/dist/schemas/campaign/campaign-expenses.js +6 -0
  33. package/dist/schemas/campaign/campaign-insights.js +31 -0
  34. package/dist/schemas/campaign/campaign-integrations.d.ts +87 -0
  35. package/dist/schemas/campaign/campaign-integrations.js +13 -0
  36. package/dist/schemas/campaign/campaign-job-count.d.ts +2 -0
  37. package/dist/schemas/campaign/campaign-job-count.js +3 -0
  38. package/dist/schemas/campaign/campaign.d.ts +21 -21
  39. package/dist/schemas/campaign/campaign.js +41 -0
  40. package/dist/schemas/campaign/index.js +7 -0
  41. package/dist/schemas/chat-message/chat-message.d.ts +31 -0
  42. package/dist/schemas/chat-message/chat-message.js +10 -0
  43. package/dist/schemas/chat-message/index.d.ts +1 -0
  44. package/dist/schemas/chat-message/index.js +1 -0
  45. package/dist/schemas/config/agency-config.d.ts +17 -0
  46. package/dist/schemas/config/agency-config.js +7 -0
  47. package/dist/schemas/config/index.d.ts +1 -0
  48. package/dist/schemas/config/index.js +1 -0
  49. package/dist/schemas/event/index.d.ts +58 -0
  50. package/dist/schemas/index.js +17 -0
  51. package/dist/schemas/job/haha.json +581 -0
  52. package/dist/schemas/job/job-filters.d.ts +8 -5
  53. package/dist/schemas/job-filters/index.d.ts +1 -0
  54. package/dist/schemas/job-filters/index.js +1 -0
  55. package/dist/schemas/job-filters/job-filters.d.ts +241 -0
  56. package/dist/schemas/job-filters/job-filters.js +84 -0
  57. package/dist/schemas/lead/index.js +173 -0
  58. package/dist/schemas/lead/lead-note.d.ts +83 -0
  59. package/dist/schemas/lead/lead-note.js +27 -0
  60. package/dist/schemas/lead/lead-status.js +23 -0
  61. package/dist/schemas/lead/nuxt.d.ts +1664 -0
  62. package/dist/schemas/lead/nuxt.js +287 -0
  63. package/dist/schemas/logger/index.js +1 -0
  64. package/dist/schemas/logger/log-event.js +117 -0
  65. package/dist/schemas/meter-event/index.d.ts +12 -0
  66. package/dist/schemas/organization/index.js +70 -0
  67. package/dist/schemas/organization/member.js +7 -0
  68. package/dist/schemas/organization/organization.d.ts +240 -0
  69. package/dist/schemas/organization/organization.js +16 -0
  70. package/dist/schemas/organization/subscription.js +17 -0
  71. package/dist/schemas/proxy/index.js +3 -0
  72. package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
  73. package/dist/schemas/proxy/proxy-country.js +249 -0
  74. package/dist/schemas/proxy/proxy.js +29 -0
  75. package/dist/schemas/saved-search/index.js +9 -0
  76. package/dist/schemas/scraper/index.js +2 -0
  77. package/dist/schemas/scraper/scrape-payload.d.ts +9 -9
  78. package/dist/schemas/scraper/scrape-payload.js +21 -0
  79. package/dist/schemas/scraper/scrape-result.js +23 -0
  80. package/dist/schemas/shared.js +19 -0
  81. package/dist/schemas/tier/index.d.ts +119 -0
  82. package/dist/schemas/time-filter/index.js +6 -0
  83. package/dist/schemas/transaction/index.js +17 -0
  84. package/dist/schemas/usage/index.js +18 -0
  85. package/dist/schemas/user/index.js +52 -0
  86. package/dist/types/account/account-status.d.ts +3 -0
  87. package/dist/types/account/account-status.js +1 -0
  88. package/dist/types/account/bidder-account.d.ts +7 -0
  89. package/dist/types/account/bidder-account.js +1 -0
  90. package/dist/types/account/index.d.ts +3 -0
  91. package/dist/types/account/index.js +3 -0
  92. package/dist/types/account/scraper-account.d.ts +5 -0
  93. package/dist/types/account/scraper-account.js +1 -0
  94. package/dist/types/ai/ai-config.d.ts +6 -0
  95. package/dist/types/ai/ai-config.js +1 -0
  96. package/dist/types/ai/index.d.ts +3 -0
  97. package/dist/types/ai/index.js +3 -0
  98. package/dist/types/ai/proposal.d.ts +10 -0
  99. package/dist/types/ai/proposal.js +1 -0
  100. package/dist/types/ai/suitability.d.ts +6 -0
  101. package/dist/types/ai/suitability.js +1 -0
  102. package/dist/types/bid/bid-result.d.ts +5 -0
  103. package/dist/types/bid/bid-result.js +1 -0
  104. package/dist/types/bid/bid.d.ts +9 -0
  105. package/dist/types/bid/bid.js +1 -0
  106. package/dist/types/bid/index.d.ts +2 -0
  107. package/dist/types/bid/index.js +2 -0
  108. package/dist/types/campaign/campaign-analytics.d.ts +7 -0
  109. package/dist/types/campaign/campaign-analytics.js +1 -0
  110. package/dist/types/campaign/campaign-expenses.d.ts +3 -0
  111. package/dist/types/campaign/campaign-expenses.js +1 -0
  112. package/dist/types/campaign/campaign-insights.js +1 -0
  113. package/dist/types/campaign/campaign-integrations.d.ts +6 -0
  114. package/dist/types/campaign/campaign-integrations.js +1 -0
  115. package/dist/types/campaign/campaign-job-count.d.ts +4 -0
  116. package/dist/types/campaign/campaign-job-count.js +1 -0
  117. package/dist/types/campaign/campaign.js +1 -0
  118. package/dist/types/campaign/index.js +6 -0
  119. package/dist/types/chat-message/chat-message.d.ts +4 -0
  120. package/dist/types/chat-message/chat-message.js +1 -0
  121. package/dist/types/chat-message/index.d.ts +1 -0
  122. package/dist/types/chat-message/index.js +1 -0
  123. package/dist/types/config/agency-config.d.ts +4 -0
  124. package/dist/types/config/agency-config.js +1 -0
  125. package/dist/types/config/index.d.ts +1 -0
  126. package/dist/types/config/index.js +1 -0
  127. package/dist/types/index.d.ts +15 -0
  128. package/dist/types/index.js +15 -0
  129. package/dist/types/job/index.d.ts +48 -0
  130. package/dist/types/job/index.js +3 -0
  131. package/dist/types/job/job-note.d.ts +10 -0
  132. package/dist/types/job/job-note.js +1 -0
  133. package/dist/types/job/job-status.d.ts +5 -0
  134. package/dist/types/job/job-status.js +9 -0
  135. package/dist/types/job/nuxt.d.ts +4 -0
  136. package/dist/types/job/nuxt.js +1 -0
  137. package/dist/types/job-filters/index.d.ts +1 -0
  138. package/dist/types/job-filters/index.js +1 -0
  139. package/dist/types/job-filters/job-filters.d.ts +4 -0
  140. package/dist/types/job-filters/job-filters.js +1 -0
  141. package/dist/types/logger/index.d.ts +1 -0
  142. package/dist/types/logger/index.js +1 -0
  143. package/dist/types/logger/log-event.js +1 -0
  144. package/dist/types/saved-search/index.d.ts +6 -0
  145. package/dist/types/saved-search/index.js +1 -0
  146. package/dist/types/scraper/index.d.ts +2 -0
  147. package/dist/types/scraper/index.js +2 -0
  148. package/dist/types/scraper/scrape-payload.d.ts +10 -0
  149. package/dist/types/scraper/scrape-payload.js +1 -0
  150. package/dist/types/scraper/scrape-result.d.ts +8 -0
  151. package/dist/types/scraper/scrape-result.js +1 -0
  152. package/dist/types/shared.d.ts +8 -0
  153. package/dist/types/shared.js +1 -0
  154. package/dist/types/time-filter/index.d.ts +3 -0
  155. package/dist/types/time-filter/index.js +1 -0
  156. package/dist/types/transaction/index.d.ts +4 -0
  157. package/dist/types/transaction/index.js +1 -0
  158. package/dist/types/usage/index.d.ts +6 -0
  159. package/dist/types/usage/index.js +1 -0
  160. package/dist/types/user/index.d.ts +15 -0
  161. package/dist/types/user/index.js +1 -0
  162. package/dist/utils/index.js +1 -0
  163. package/dist/utils/try-catch.js +10 -0
  164. package/package.json +1 -1
@@ -67,11 +67,11 @@ export declare const campaignSchema: z.ZodObject<{
67
67
  projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
68
68
  experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
69
69
  questions: z.ZodNullable<z.ZodObject<{
70
- hasQuestions: z.ZodDefault<z.ZodEnum<["all", "yes", "no"]>>;
70
+ hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
71
71
  }, "strip", z.ZodTypeAny, {
72
- hasQuestions: "all" | "yes" | "no";
72
+ hasQuestions: ("all" | "yes" | "no")[];
73
73
  }, {
74
- hasQuestions?: "all" | "yes" | "no" | undefined;
74
+ hasQuestions: ("all" | "yes" | "no")[];
75
75
  }>>;
76
76
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
77
77
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -169,7 +169,7 @@ export declare const campaignSchema: z.ZodObject<{
169
169
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
170
170
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
171
171
  questions: {
172
- hasQuestions: "all" | "yes" | "no";
172
+ hasQuestions: ("all" | "yes" | "no")[];
173
173
  } | null;
174
174
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
175
175
  clientInfo: {
@@ -219,7 +219,7 @@ export declare const campaignSchema: z.ZodObject<{
219
219
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
220
220
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
221
221
  questions: {
222
- hasQuestions?: "all" | "yes" | "no" | undefined;
222
+ hasQuestions: ("all" | "yes" | "no")[];
223
223
  } | null;
224
224
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
225
225
  clientInfo: {
@@ -314,7 +314,7 @@ export declare const campaignSchema: z.ZodObject<{
314
314
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
315
315
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
316
316
  questions: {
317
- hasQuestions: "all" | "yes" | "no";
317
+ hasQuestions: ("all" | "yes" | "no")[];
318
318
  } | null;
319
319
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
320
320
  clientInfo: {
@@ -391,7 +391,7 @@ export declare const campaignSchema: z.ZodObject<{
391
391
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
392
392
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
393
393
  questions: {
394
- hasQuestions?: "all" | "yes" | "no" | undefined;
394
+ hasQuestions: ("all" | "yes" | "no")[];
395
395
  } | null;
396
396
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
397
397
  clientInfo: {
@@ -506,11 +506,11 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
506
506
  projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
507
507
  experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
508
508
  questions: z.ZodNullable<z.ZodObject<{
509
- hasQuestions: z.ZodDefault<z.ZodEnum<["all", "yes", "no"]>>;
509
+ hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
510
510
  }, "strip", z.ZodTypeAny, {
511
- hasQuestions: "all" | "yes" | "no";
511
+ hasQuestions: ("all" | "yes" | "no")[];
512
512
  }, {
513
- hasQuestions?: "all" | "yes" | "no" | undefined;
513
+ hasQuestions: ("all" | "yes" | "no")[];
514
514
  }>>;
515
515
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
516
516
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -608,7 +608,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
608
608
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
609
609
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
610
610
  questions: {
611
- hasQuestions: "all" | "yes" | "no";
611
+ hasQuestions: ("all" | "yes" | "no")[];
612
612
  } | null;
613
613
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
614
614
  clientInfo: {
@@ -658,7 +658,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
658
658
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
659
659
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
660
660
  questions: {
661
- hasQuestions?: "all" | "yes" | "no" | undefined;
661
+ hasQuestions: ("all" | "yes" | "no")[];
662
662
  } | null;
663
663
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
664
664
  clientInfo: {
@@ -752,7 +752,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
752
752
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
753
753
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
754
754
  questions: {
755
- hasQuestions: "all" | "yes" | "no";
755
+ hasQuestions: ("all" | "yes" | "no")[];
756
756
  } | null;
757
757
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
758
758
  clientInfo: {
@@ -820,7 +820,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
820
820
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
821
821
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
822
822
  questions: {
823
- hasQuestions?: "all" | "yes" | "no" | undefined;
823
+ hasQuestions: ("all" | "yes" | "no")[];
824
824
  } | null;
825
825
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
826
826
  clientInfo: {
@@ -915,11 +915,11 @@ export declare const updateCampaignSchema: z.ZodObject<{
915
915
  projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
916
916
  experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
917
917
  questions: z.ZodNullable<z.ZodObject<{
918
- hasQuestions: z.ZodDefault<z.ZodEnum<["all", "yes", "no"]>>;
918
+ hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
919
919
  }, "strip", z.ZodTypeAny, {
920
- hasQuestions: "all" | "yes" | "no";
920
+ hasQuestions: ("all" | "yes" | "no")[];
921
921
  }, {
922
- hasQuestions?: "all" | "yes" | "no" | undefined;
922
+ hasQuestions: ("all" | "yes" | "no")[];
923
923
  }>>;
924
924
  engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
925
925
  clientInfo: z.ZodNullable<z.ZodObject<{
@@ -1017,7 +1017,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1017
1017
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1018
1018
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1019
1019
  questions: {
1020
- hasQuestions: "all" | "yes" | "no";
1020
+ hasQuestions: ("all" | "yes" | "no")[];
1021
1021
  } | null;
1022
1022
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1023
1023
  clientInfo: {
@@ -1067,7 +1067,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1067
1067
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1068
1068
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1069
1069
  questions: {
1070
- hasQuestions?: "all" | "yes" | "no" | undefined;
1070
+ hasQuestions: ("all" | "yes" | "no")[];
1071
1071
  } | null;
1072
1072
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1073
1073
  clientInfo: {
@@ -1160,7 +1160,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1160
1160
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1161
1161
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1162
1162
  questions: {
1163
- hasQuestions: "all" | "yes" | "no";
1163
+ hasQuestions: ("all" | "yes" | "no")[];
1164
1164
  } | null;
1165
1165
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1166
1166
  clientInfo: {
@@ -1235,7 +1235,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1235
1235
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1236
1236
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1237
1237
  questions: {
1238
- hasQuestions?: "all" | "yes" | "no" | undefined;
1238
+ hasQuestions: ("all" | "yes" | "no")[];
1239
1239
  } | null;
1240
1240
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1241
1241
  clientInfo: {
@@ -0,0 +1,41 @@
1
+ import { number, z } from "zod";
2
+ import { jobFiltersSchema } from "../job-filters";
3
+ import { leadStatusSchema } from "../lead";
4
+ import { campaignExpensesSchema } from "./campaign-expenses";
5
+ import { campaignIntegrationsSchema } from "./campaign-integrations";
6
+ export const campaignStatusSchema = z.union([
7
+ z.literal("active"),
8
+ z.literal("draft"),
9
+ z.literal("paused"),
10
+ z.literal("error"),
11
+ ]);
12
+ export const campaignSchema = z.object({
13
+ id: z.string(),
14
+ name: z.string(),
15
+ filters: jobFiltersSchema,
16
+ createdAt: number(),
17
+ updatedAt: number(),
18
+ confirmedBillingAt: number().nullable(),
19
+ automatedSuitability: z.boolean().nullable(),
20
+ automatedBidding: z.boolean().nullable(),
21
+ boostingEnabled: z.boolean().nullable().default(false),
22
+ maximumBoost: z.number().nullable().default(30),
23
+ minimumBoost: z.number().nullable().default(0),
24
+ webhookUrl: z.string().nullable(),
25
+ monthlyBudget: z.number().nullable(),
26
+ suitabilityThreshold: z.number().min(0).max(100).nullable().default(0),
27
+ boostingThreshold: z.number().min(0).max(100).nullable().default(0),
28
+ leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
29
+ expenses: campaignExpensesSchema,
30
+ integrations: campaignIntegrationsSchema,
31
+ status: campaignStatusSchema.optional(),
32
+ });
33
+ export const createCampaignSchema = campaignSchema.omit({
34
+ id: true,
35
+ createdAt: true,
36
+ updatedAt: true,
37
+ });
38
+ export const updateCampaignSchema = campaignSchema.omit({
39
+ createdAt: true,
40
+ updatedAt: true,
41
+ });
@@ -0,0 +1,7 @@
1
+ export * from './campaign';
2
+ export * from './campaign-insights';
3
+ export * from './campaign-job-count';
4
+ export * from './campaign-expenses';
5
+ export * from './campaign-integrations';
6
+ export * from './campaign-analytics';
7
+ export * from './campaign-ai-metrics';
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare const chatMessageSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ content: z.ZodString;
5
+ role: z.ZodEnum<["user", "assistant"]>;
6
+ timestamp: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ content: string;
10
+ role: "user" | "assistant";
11
+ timestamp: string;
12
+ }, {
13
+ id: string;
14
+ content: string;
15
+ role: "user" | "assistant";
16
+ timestamp: string;
17
+ }>;
18
+ export declare const newChatMessageSchema: z.ZodObject<Omit<{
19
+ id: z.ZodString;
20
+ content: z.ZodString;
21
+ role: z.ZodEnum<["user", "assistant"]>;
22
+ timestamp: z.ZodString;
23
+ }, "id">, "strip", z.ZodTypeAny, {
24
+ content: string;
25
+ role: "user" | "assistant";
26
+ timestamp: string;
27
+ }, {
28
+ content: string;
29
+ role: "user" | "assistant";
30
+ timestamp: string;
31
+ }>;
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ export const chatMessageSchema = z.object({
3
+ id: z.string(),
4
+ content: z.string(),
5
+ role: z.enum(['user', 'assistant']),
6
+ timestamp: z.string(),
7
+ });
8
+ export const newChatMessageSchema = chatMessageSchema.omit({
9
+ id: true,
10
+ });
@@ -0,0 +1 @@
1
+ export * from './chat-message';
@@ -0,0 +1 @@
1
+ export * from './chat-message';
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ export declare const agencyConfigSchema: z.ZodObject<{
3
+ agencyName: z.ZodString;
4
+ contractorName: z.ZodString;
5
+ specializedProfile: z.ZodNullable<z.ZodString>;
6
+ accountId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ agencyName: string;
9
+ contractorName: string;
10
+ specializedProfile: string | null;
11
+ accountId: string;
12
+ }, {
13
+ agencyName: string;
14
+ contractorName: string;
15
+ specializedProfile: string | null;
16
+ accountId: string;
17
+ }>;
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ export const agencyConfigSchema = z.object({
3
+ agencyName: z.string(),
4
+ contractorName: z.string(),
5
+ specializedProfile: z.string().nullable(),
6
+ accountId: z.string(),
7
+ });
@@ -0,0 +1 @@
1
+ export * from './agency-config';
@@ -0,0 +1 @@
1
+ export * from './agency-config';
@@ -0,0 +1,58 @@
1
+ export declare const logEventSchemaWithMetadata: import("zod").ZodIntersection<import("zod").ZodIntersection<import("zod").ZodObject<{
2
+ type: import("zod").ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
3
+ source: import("zod").ZodString;
4
+ resourceType: import("zod").ZodDefault<import("zod").ZodString>;
5
+ resourceId: import("zod").ZodNullable<import("zod").ZodString>;
6
+ leadId: import("zod").ZodNullable<import("zod").ZodString>;
7
+ campaignId: import("zod").ZodNullable<import("zod").ZodString>;
8
+ userId: import("zod").ZodNullable<import("zod").ZodString>;
9
+ reason: import("zod").ZodNullable<import("zod").ZodString>;
10
+ timestamp: import("zod").ZodNumber;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
13
+ source: string;
14
+ resourceType: string;
15
+ resourceId: string | null;
16
+ leadId: string | null;
17
+ campaignId: string | null;
18
+ userId: string | null;
19
+ reason: string | null;
20
+ timestamp: number;
21
+ }, {
22
+ type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
23
+ source: string;
24
+ resourceId: string | null;
25
+ leadId: string | null;
26
+ campaignId: string | null;
27
+ userId: string | null;
28
+ reason: string | null;
29
+ timestamp: number;
30
+ resourceType?: string | undefined;
31
+ }>, import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
32
+ type: import("zod").ZodEnum<["jobActivityScraped"]>;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ type: "jobActivityScraped";
35
+ }, {
36
+ type: "jobActivityScraped";
37
+ }>, import("zod").ZodObject<{
38
+ type: import("zod").ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScrapeFailed", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged"]>;
39
+ metadata: import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScrapeFailed" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
42
+ metadata: Record<string, unknown> | null;
43
+ }, {
44
+ type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScrapeFailed" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
45
+ metadata: Record<string, unknown> | null;
46
+ }>]>>, import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
47
+ type: import("zod").ZodEnum<["jobActivityScraped"]>;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ type: "jobActivityScraped";
50
+ }, {
51
+ type: "jobActivityScraped";
52
+ }>, import("zod").ZodObject<{
53
+ type: import("zod").ZodEnum<["jobActivityScraped"]>;
54
+ }, "strip", import("zod").ZodTypeAny, {
55
+ type: "jobActivityScraped";
56
+ }, {
57
+ type: "jobActivityScraped";
58
+ }>]>>;
@@ -0,0 +1,17 @@
1
+ export * from "./account";
2
+ export * from "./bid";
3
+ export * from "./campaign";
4
+ export * from "./chat-message";
5
+ export * from "./config";
6
+ export * from "./job-filters";
7
+ export * from "./lead";
8
+ export * from "./logger";
9
+ export * from "./organization";
10
+ export * from "./proxy";
11
+ export * from "./saved-search";
12
+ export * from "./scraper";
13
+ export * from "./shared";
14
+ export * from "./time-filter";
15
+ export * from "./user";
16
+ export * from "./usage";
17
+ export * from "./transaction";