lancer-shared 1.2.52 → 1.2.53

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 (160) hide show
  1. package/dist/bundle.cjs.js +14 -13
  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.js +42 -0
  31. package/dist/schemas/campaign/campaign-expenses.js +6 -0
  32. package/dist/schemas/campaign/campaign-insights.js +31 -0
  33. package/dist/schemas/campaign/campaign-integrations.d.ts +87 -0
  34. package/dist/schemas/campaign/campaign-integrations.js +13 -0
  35. package/dist/schemas/campaign/campaign-job-count.d.ts +2 -0
  36. package/dist/schemas/campaign/campaign-job-count.js +3 -0
  37. package/dist/schemas/campaign/campaign.js +41 -0
  38. package/dist/schemas/campaign/index.js +7 -0
  39. package/dist/schemas/chat-message/chat-message.d.ts +31 -0
  40. package/dist/schemas/chat-message/chat-message.js +10 -0
  41. package/dist/schemas/chat-message/index.d.ts +1 -0
  42. package/dist/schemas/chat-message/index.js +1 -0
  43. package/dist/schemas/config/agency-config.d.ts +17 -0
  44. package/dist/schemas/config/agency-config.js +7 -0
  45. package/dist/schemas/config/index.d.ts +1 -0
  46. package/dist/schemas/config/index.js +1 -0
  47. package/dist/schemas/event/index.d.ts +58 -0
  48. package/dist/schemas/index.js +17 -0
  49. package/dist/schemas/job-filters/index.d.ts +1 -0
  50. package/dist/schemas/job-filters/index.js +1 -0
  51. package/dist/schemas/job-filters/job-filters.d.ts +241 -0
  52. package/dist/schemas/job-filters/job-filters.js +84 -0
  53. package/dist/schemas/lead/index.js +173 -0
  54. package/dist/schemas/lead/lead-note.d.ts +83 -0
  55. package/dist/schemas/lead/lead-note.js +27 -0
  56. package/dist/schemas/lead/lead-status.js +23 -0
  57. package/dist/schemas/lead/nuxt.d.ts +1664 -0
  58. package/dist/schemas/lead/nuxt.js +287 -0
  59. package/dist/schemas/logger/index.js +1 -0
  60. package/dist/schemas/logger/log-event.js +117 -0
  61. package/dist/schemas/meter-event/index.d.ts +12 -0
  62. package/dist/schemas/organization/index.d.ts +5 -2
  63. package/dist/schemas/organization/index.js +70 -0
  64. package/dist/schemas/organization/member.js +7 -0
  65. package/dist/schemas/organization/organization.d.ts +240 -0
  66. package/dist/schemas/organization/organization.js +16 -0
  67. package/dist/schemas/organization/subscription.js +17 -0
  68. package/dist/schemas/proxy/index.js +3 -0
  69. package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
  70. package/dist/schemas/proxy/proxy-country.js +249 -0
  71. package/dist/schemas/proxy/proxy.js +29 -0
  72. package/dist/schemas/saved-search/index.js +9 -0
  73. package/dist/schemas/scraper/index.js +2 -0
  74. package/dist/schemas/scraper/scrape-payload.js +21 -0
  75. package/dist/schemas/scraper/scrape-result.js +23 -0
  76. package/dist/schemas/shared.js +19 -0
  77. package/dist/schemas/tier/index.d.ts +119 -0
  78. package/dist/schemas/time-filter/index.js +6 -0
  79. package/dist/schemas/transaction/index.js +17 -0
  80. package/dist/schemas/usage/index.js +18 -0
  81. package/dist/schemas/user/index.js +52 -0
  82. package/dist/types/account/account-status.d.ts +3 -0
  83. package/dist/types/account/account-status.js +1 -0
  84. package/dist/types/account/bidder-account.d.ts +7 -0
  85. package/dist/types/account/bidder-account.js +1 -0
  86. package/dist/types/account/index.d.ts +3 -0
  87. package/dist/types/account/index.js +3 -0
  88. package/dist/types/account/scraper-account.d.ts +5 -0
  89. package/dist/types/account/scraper-account.js +1 -0
  90. package/dist/types/ai/ai-config.d.ts +6 -0
  91. package/dist/types/ai/ai-config.js +1 -0
  92. package/dist/types/ai/index.d.ts +3 -0
  93. package/dist/types/ai/index.js +3 -0
  94. package/dist/types/ai/proposal.d.ts +10 -0
  95. package/dist/types/ai/proposal.js +1 -0
  96. package/dist/types/ai/suitability.d.ts +6 -0
  97. package/dist/types/ai/suitability.js +1 -0
  98. package/dist/types/bid/bid-result.d.ts +5 -0
  99. package/dist/types/bid/bid-result.js +1 -0
  100. package/dist/types/bid/bid.d.ts +9 -0
  101. package/dist/types/bid/bid.js +1 -0
  102. package/dist/types/bid/index.d.ts +2 -0
  103. package/dist/types/bid/index.js +2 -0
  104. package/dist/types/campaign/campaign-analytics.d.ts +7 -0
  105. package/dist/types/campaign/campaign-analytics.js +1 -0
  106. package/dist/types/campaign/campaign-expenses.d.ts +3 -0
  107. package/dist/types/campaign/campaign-expenses.js +1 -0
  108. package/dist/types/campaign/campaign-insights.js +1 -0
  109. package/dist/types/campaign/campaign-integrations.d.ts +6 -0
  110. package/dist/types/campaign/campaign-integrations.js +1 -0
  111. package/dist/types/campaign/campaign-job-count.d.ts +4 -0
  112. package/dist/types/campaign/campaign-job-count.js +1 -0
  113. package/dist/types/campaign/campaign.js +1 -0
  114. package/dist/types/campaign/index.js +6 -0
  115. package/dist/types/chat-message/chat-message.d.ts +4 -0
  116. package/dist/types/chat-message/chat-message.js +1 -0
  117. package/dist/types/chat-message/index.d.ts +1 -0
  118. package/dist/types/chat-message/index.js +1 -0
  119. package/dist/types/config/agency-config.d.ts +4 -0
  120. package/dist/types/config/agency-config.js +1 -0
  121. package/dist/types/config/index.d.ts +1 -0
  122. package/dist/types/config/index.js +1 -0
  123. package/dist/types/index.d.ts +15 -0
  124. package/dist/types/index.js +15 -0
  125. package/dist/types/job/index.d.ts +48 -0
  126. package/dist/types/job/index.js +3 -0
  127. package/dist/types/job/job-note.d.ts +10 -0
  128. package/dist/types/job/job-note.js +1 -0
  129. package/dist/types/job/job-status.d.ts +5 -0
  130. package/dist/types/job/job-status.js +9 -0
  131. package/dist/types/job/nuxt.d.ts +4 -0
  132. package/dist/types/job/nuxt.js +1 -0
  133. package/dist/types/job-filters/index.d.ts +1 -0
  134. package/dist/types/job-filters/index.js +1 -0
  135. package/dist/types/job-filters/job-filters.d.ts +4 -0
  136. package/dist/types/job-filters/job-filters.js +1 -0
  137. package/dist/types/logger/index.d.ts +1 -0
  138. package/dist/types/logger/index.js +1 -0
  139. package/dist/types/logger/log-event.js +1 -0
  140. package/dist/types/saved-search/index.d.ts +6 -0
  141. package/dist/types/saved-search/index.js +1 -0
  142. package/dist/types/scraper/index.d.ts +2 -0
  143. package/dist/types/scraper/index.js +2 -0
  144. package/dist/types/scraper/scrape-payload.d.ts +10 -0
  145. package/dist/types/scraper/scrape-payload.js +1 -0
  146. package/dist/types/scraper/scrape-result.d.ts +8 -0
  147. package/dist/types/scraper/scrape-result.js +1 -0
  148. package/dist/types/shared.d.ts +8 -0
  149. package/dist/types/shared.js +1 -0
  150. package/dist/types/time-filter/index.d.ts +3 -0
  151. package/dist/types/time-filter/index.js +1 -0
  152. package/dist/types/transaction/index.d.ts +4 -0
  153. package/dist/types/transaction/index.js +1 -0
  154. package/dist/types/usage/index.d.ts +6 -0
  155. package/dist/types/usage/index.js +1 -0
  156. package/dist/types/user/index.d.ts +15 -0
  157. package/dist/types/user/index.js +1 -0
  158. package/dist/utils/index.js +1 -0
  159. package/dist/utils/try-catch.js +10 -0
  160. package/package.json +1 -1
@@ -0,0 +1,119 @@
1
+ import { infer, z } from "zod";
2
+ export declare const planSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ slug: z.ZodString;
6
+ items: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodString;
8
+ billingScheme: z.ZodEnum<["per_unit", "tiered"]>;
9
+ usageType: z.ZodNullable<z.ZodEnum<["metered", "licensed"]>>;
10
+ unitAmount: z.ZodNullable<z.ZodNumber>;
11
+ tiers: z.ZodArray<z.ZodObject<{
12
+ flatAmount: z.ZodNullable<z.ZodNumber>;
13
+ flatAmountDecimal: z.ZodNullable<z.ZodString>;
14
+ unitAmount: z.ZodNullable<z.ZodNumber>;
15
+ unitAmountDecimal: z.ZodString;
16
+ upTo: z.ZodNullable<z.ZodNumber>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ flatAmount: number | null;
19
+ flatAmountDecimal: string | null;
20
+ unitAmount: number | null;
21
+ unitAmountDecimal: string;
22
+ upTo: number | null;
23
+ }, {
24
+ flatAmount: number | null;
25
+ flatAmountDecimal: string | null;
26
+ unitAmount: number | null;
27
+ unitAmountDecimal: string;
28
+ upTo: number | null;
29
+ }>, "many">;
30
+ currency: z.ZodString;
31
+ interval: z.ZodEnum<["day", "week", "month", "year"]>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ unitAmount: number | null;
35
+ billingScheme: "per_unit" | "tiered";
36
+ usageType: "metered" | "licensed" | null;
37
+ tiers: {
38
+ flatAmount: number | null;
39
+ flatAmountDecimal: string | null;
40
+ unitAmount: number | null;
41
+ unitAmountDecimal: string;
42
+ upTo: number | null;
43
+ }[];
44
+ currency: string;
45
+ interval: "day" | "week" | "month" | "year";
46
+ }, {
47
+ id: string;
48
+ unitAmount: number | null;
49
+ billingScheme: "per_unit" | "tiered";
50
+ usageType: "metered" | "licensed" | null;
51
+ tiers: {
52
+ flatAmount: number | null;
53
+ flatAmountDecimal: string | null;
54
+ unitAmount: number | null;
55
+ unitAmountDecimal: string;
56
+ upTo: number | null;
57
+ }[];
58
+ currency: string;
59
+ interval: "day" | "week" | "month" | "year";
60
+ }>, "many">;
61
+ version: z.ZodNumber;
62
+ features: z.ZodArray<z.ZodString, "many">;
63
+ sortOrder: z.ZodNumber;
64
+ isActive: z.ZodBoolean;
65
+ createdAt: z.ZodDate;
66
+ archivedAt: z.ZodNullable<z.ZodDate>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ id: string;
69
+ createdAt: Date;
70
+ name: string;
71
+ isActive: boolean;
72
+ sortOrder: number;
73
+ slug: string;
74
+ items: {
75
+ id: string;
76
+ unitAmount: number | null;
77
+ billingScheme: "per_unit" | "tiered";
78
+ usageType: "metered" | "licensed" | null;
79
+ tiers: {
80
+ flatAmount: number | null;
81
+ flatAmountDecimal: string | null;
82
+ unitAmount: number | null;
83
+ unitAmountDecimal: string;
84
+ upTo: number | null;
85
+ }[];
86
+ currency: string;
87
+ interval: "day" | "week" | "month" | "year";
88
+ }[];
89
+ version: number;
90
+ features: string[];
91
+ archivedAt: Date | null;
92
+ }, {
93
+ id: string;
94
+ createdAt: Date;
95
+ name: string;
96
+ isActive: boolean;
97
+ sortOrder: number;
98
+ slug: string;
99
+ items: {
100
+ id: string;
101
+ unitAmount: number | null;
102
+ billingScheme: "per_unit" | "tiered";
103
+ usageType: "metered" | "licensed" | null;
104
+ tiers: {
105
+ flatAmount: number | null;
106
+ flatAmountDecimal: string | null;
107
+ unitAmount: number | null;
108
+ unitAmountDecimal: string;
109
+ upTo: number | null;
110
+ }[];
111
+ currency: string;
112
+ interval: "day" | "week" | "month" | "year";
113
+ }[];
114
+ version: number;
115
+ features: string[];
116
+ archivedAt: Date | null;
117
+ }>;
118
+ export interface Plan extends infer<typeof planSchema> {
119
+ }
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export const timeFilterSchema = z.union([
3
+ z.literal("last_7_days"),
4
+ z.literal("last_30_days"),
5
+ z.literal("all_time"),
6
+ ]);
@@ -0,0 +1,17 @@
1
+ import { number, object, string, z } from "zod";
2
+ export const transactionTypeEnum = z.enum(["subscription", "add-on", "refund"]);
3
+ export const transactionStatusEnum = z.enum([
4
+ "succeeded",
5
+ "failed",
6
+ "refunded",
7
+ ]);
8
+ export const transactionSchema = object({
9
+ orgId: string(),
10
+ type: transactionTypeEnum,
11
+ creditsPurchased: number(),
12
+ creditsGranted: number().nullable(),
13
+ amountUsd: number(),
14
+ stripeInvoiceId: string(),
15
+ status: transactionStatusEnum,
16
+ timestamp: number(),
17
+ });
@@ -0,0 +1,18 @@
1
+ import { number, object, string } from "zod";
2
+ const breakdownSchema = object({
3
+ suitability: number(),
4
+ proposal: number(),
5
+ bidding: number(),
6
+ });
7
+ export const dailyUsageSchema = object({
8
+ breakdown: breakdownSchema,
9
+ tokensUsed: number().optional(),
10
+ campaignId: string().optional(),
11
+ model: string(),
12
+ timestamp: number(),
13
+ });
14
+ export const periodUsageSchema = object({
15
+ usedCredits: number(),
16
+ breakdown: breakdownSchema,
17
+ lastUpdated: number(),
18
+ });
@@ -0,0 +1,52 @@
1
+ import { number, object, string, z } from "zod";
2
+ import { passwordSchema } from "../shared";
3
+ export const userSchema = object({
4
+ id: string(),
5
+ firstName: string(),
6
+ lastName: string(),
7
+ displayName: string(),
8
+ email: string(),
9
+ organizationIds: z.array(string()),
10
+ createdAt: number(),
11
+ updatedAt: number(),
12
+ });
13
+ export const loginSchema = object({
14
+ email: string().email(),
15
+ password: passwordSchema,
16
+ });
17
+ export const registerSchema = object({
18
+ firstName: string().min(1, "First name is required").max(255),
19
+ lastName: string().min(1, "Last name is required").max(255),
20
+ email: string()
21
+ .email("Must be a valid email address")
22
+ .max(255)
23
+ .min(1, "Email address is required"),
24
+ password: passwordSchema,
25
+ confirmPassword: passwordSchema,
26
+ }).refine(({ password, confirmPassword }) => password === confirmPassword, {
27
+ message: `Passwords don't match.`,
28
+ path: ["confirmPassword"],
29
+ });
30
+ export const upworkProfileSchema = object({
31
+ name: string().nullable(),
32
+ country: string().nullable(),
33
+ bio: string().nullable(),
34
+ skills: z.array(string()).nullable(),
35
+ certifications: z.array(string()).nullable(),
36
+ employmentHistory: z
37
+ .array(z.object({
38
+ jobTitle: string(),
39
+ period: string(),
40
+ description: string(),
41
+ }))
42
+ .nullable(),
43
+ languages: z.record(string(), string()).nullable(),
44
+ portfolio: z
45
+ .array(z.object({
46
+ title: string(),
47
+ description: string(),
48
+ skills: z.array(string()),
49
+ publishedDate: string(),
50
+ }))
51
+ .nullable(),
52
+ });
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { accountStatusSchema } from '../../schemas';
3
+ export type AccountStatus = z.infer<typeof accountStatusSchema>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { createBidderAccountSchema, updateBidderAccountSchema, bidderAccountProvider, bidderAccountSchema } from '../../schemas';
3
+ export interface BidderAccount extends z.infer<typeof bidderAccountSchema> {
4
+ }
5
+ export type BidderAccountProvider = z.infer<typeof bidderAccountProvider>;
6
+ export type CreateBidderAccount = z.infer<typeof createBidderAccountSchema>;
7
+ export type UpdateBidderAccount = z.infer<typeof updateBidderAccountSchema>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './account-status';
2
+ export * from './bidder-account';
3
+ export * from './scraper-account';
@@ -0,0 +1,3 @@
1
+ export * from './account-status';
2
+ export * from './bidder-account';
3
+ export * from './scraper-account';
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ import { createScraperAccountSchema, updateScraperAccountSchema, scraperAccountSchema } from '../../schemas';
3
+ export type ScraperAccount = z.infer<typeof scraperAccountSchema>;
4
+ export type CreateScraperAccount = z.infer<typeof createScraperAccountSchema>;
5
+ export type UpdateScraperAccount = z.infer<typeof updateScraperAccountSchema>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { aiConfigSchema, updateAiConfigSchema } from '../../schemas';
3
+ export interface AiConfig extends z.infer<typeof aiConfigSchema> {
4
+ }
5
+ export interface UpdateAiConfig extends z.infer<typeof updateAiConfigSchema> {
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './ai-config';
2
+ export * from './proposal';
3
+ export * from './suitability';
@@ -0,0 +1,3 @@
1
+ export * from './ai-config';
2
+ export * from './proposal';
3
+ export * from './suitability';
@@ -0,0 +1,10 @@
1
+ import { proposalResponseSchema } from '../../schemas/ai/proposal';
2
+ import { proposalSchema } from '../../schemas/ai/proposal';
3
+ import { z } from 'zod';
4
+ import { questionAnswerPairSchema } from '../../schemas/ai/proposal';
5
+ export interface QuestionAnswerPair extends z.infer<typeof questionAnswerPairSchema> {
6
+ }
7
+ export interface Proposal extends z.infer<typeof proposalSchema> {
8
+ }
9
+ export interface ProposalResponse extends z.infer<typeof proposalResponseSchema> {
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { suitabilitySchema, suitabilityResponseSchema } from '../../schemas';
3
+ export interface Suitability extends z.infer<typeof suitabilitySchema> {
4
+ }
5
+ export interface SuitabilityResponse extends z.infer<typeof suitabilityResponseSchema> {
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { z } from 'zod';
2
+ import { bidSuccessSchema, bidFailedSchema } from '../../schemas/bid/bid-result';
3
+ export type BidSuccess = z.infer<typeof bidSuccessSchema>;
4
+ export type BidFailed = z.infer<typeof bidFailedSchema>;
5
+ export type BidResult = BidSuccess | BidFailed;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ import { agencyBidPayloadSchema, agencyBidProposalDataSchema, bidDtoSchema, bidPayloadProposalDataSchema, bidPayloadSchema, freelancerBidPayloadSchema, freelancerBidProposalDataSchema } from '../../schemas/bid';
3
+ export type BidPayload = z.infer<typeof bidPayloadSchema>;
4
+ export type BidProposalData = z.infer<typeof bidPayloadProposalDataSchema>;
5
+ export type AgencyBidPayload = z.infer<typeof agencyBidPayloadSchema>;
6
+ export type FreelancerBidPayload = z.infer<typeof freelancerBidPayloadSchema>;
7
+ export type AgencyBidProposalData = z.infer<typeof agencyBidProposalDataSchema>;
8
+ export type FreelancerBidProposalData = z.infer<typeof freelancerBidProposalDataSchema>;
9
+ export type BidDto = z.infer<typeof bidDtoSchema>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './bid';
2
+ export * from './bid-result';
@@ -0,0 +1,2 @@
1
+ export * from './bid';
2
+ export * from './bid-result';
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ import { campaignActivityCreateSchema, campaignActivitySchema, campaignAnalyticsResponseSchema, campaignAnalyticsStatsSchema } from "../../schemas";
3
+ export type CampaignAnalyticsStats = z.infer<typeof campaignAnalyticsStatsSchema>;
4
+ export type CampaignAnalyticsResponse = z.infer<typeof campaignAnalyticsResponseSchema>;
5
+ export type CampaignActivity = z.infer<typeof campaignActivitySchema>;
6
+ export interface CampaignActivityCreateSchema extends z.infer<typeof campaignActivityCreateSchema> {
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { campaignExpensesSchema } from '../../schemas';
3
+ export type CampaignExpenses = z.infer<typeof campaignExpensesSchema>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import { campaignIntegrationsSchema, updateCampaignIntegrationsSchema } from '../../schemas';
3
+ export interface CampaignIntegrations extends z.infer<typeof campaignIntegrationsSchema> {
4
+ }
5
+ export interface UpdateCampaignIntegrations extends z.infer<typeof updateCampaignIntegrationsSchema> {
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ import { campaignJobCountSchema } from '../../schemas';
3
+ export interface CampaignJobCount extends z.infer<typeof campaignJobCountSchema> {
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
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";
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ import { chatMessageSchema } from '../../schemas/chat-message';
3
+ export interface ChatMessage extends z.infer<typeof chatMessageSchema> {
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './chat-message';
@@ -0,0 +1 @@
1
+ export * from './chat-message';
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ import { agencyConfigSchema } from '../../schemas';
3
+ export interface AgencyConfig extends z.infer<typeof agencyConfigSchema> {
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './agency-config';
@@ -0,0 +1 @@
1
+ export * from './agency-config';
@@ -0,0 +1,15 @@
1
+ export * from "./chat-message";
2
+ export * from "./job";
3
+ export * from "./saved-search";
4
+ export * from "./user";
5
+ export * from "./job-filters";
6
+ export * from "./campaign";
7
+ export * from "./scraper";
8
+ export * from "./config";
9
+ export * from "./logger";
10
+ export * from "./account";
11
+ export * from "./bid";
12
+ export * from "./time-filter";
13
+ export * from "./shared";
14
+ export * from "./usage";
15
+ export * from "./transaction";
@@ -0,0 +1,15 @@
1
+ export * from "./chat-message";
2
+ export * from "./job";
3
+ export * from "./saved-search";
4
+ export * from "./user";
5
+ export * from "./job-filters";
6
+ export * from "./campaign";
7
+ export * from "./scraper";
8
+ export * from "./config";
9
+ export * from "./logger";
10
+ export * from "./account";
11
+ export * from "./bid";
12
+ export * from "./time-filter";
13
+ export * from "./shared";
14
+ export * from "./usage";
15
+ export * from "./transaction";
@@ -0,0 +1,48 @@
1
+ import { z } from "zod";
2
+ import { bidRangeSchema, clientInfoSchema, clientReviewSchema, jobActivityDeltaSchema, jobActivityOffsetEnum, jobActivityOffsetHours, jobActivitySchema, jobActivitySnapshotSchema, jobActivityUpdateSchema, jobListingSchema, jobSkillsSchema, leadResponseSchema, leadSchema, metadataSchema, questionAnswerPairSchema, upworkJobSchema, vendorQualificationSchema } from "../../schemas";
3
+ import { SavedSearch } from "../saved-search";
4
+ import { LeadNote } from "./job-note";
5
+ import { LeadAgentStatus, LeadStatus } from "./job-status";
6
+ export interface Job extends z.infer<typeof upworkJobSchema> {
7
+ clientInfo: ClientInfo | null;
8
+ metadata: JobMetadata | null;
9
+ skills: JobSkill[] | null;
10
+ vendorQualifications: VendorQualifications | null;
11
+ }
12
+ export interface QuestionAnswerPair extends z.infer<typeof questionAnswerPairSchema> {
13
+ }
14
+ export interface Lead extends z.infer<typeof leadSchema> {
15
+ clientInfo: ClientInfo | null;
16
+ metadata: JobMetadata | null;
17
+ skills: JobSkill[] | null;
18
+ vendorQualifications: VendorQualifications | null;
19
+ notes: LeadNote[] | null;
20
+ questionAnswerPairs: QuestionAnswerPair[] | null;
21
+ agentStatus: LeadAgentStatus;
22
+ leadStatus: LeadStatus;
23
+ }
24
+ export interface LeadResponse extends z.infer<typeof leadResponseSchema> {
25
+ leads: Lead[];
26
+ }
27
+ export type JobWithSavedSearch = Lead & {
28
+ savedSearch?: SavedSearch | null;
29
+ };
30
+ export type JobListing = z.infer<typeof jobListingSchema>;
31
+ export type JobSkill = z.infer<typeof jobSkillsSchema>;
32
+ export type VendorQualifications = z.infer<typeof vendorQualificationSchema>;
33
+ export type ClientInfo = z.infer<typeof clientInfoSchema>;
34
+ export type JobMetadata = z.infer<typeof metadataSchema>;
35
+ export type ClientReview = z.infer<typeof clientReviewSchema>;
36
+ export type JobBidRange = z.infer<typeof bidRangeSchema>;
37
+ export type JobActivity = z.infer<typeof jobActivitySchema>;
38
+ export type JobActivityOffset = z.infer<typeof jobActivityOffsetEnum>;
39
+ export type JobActivityOffsetHour = (typeof jobActivityOffsetHours)[number];
40
+ export interface JobActivityUpdateSchema extends z.infer<typeof jobActivityUpdateSchema> {
41
+ }
42
+ export interface JobActivityDelta extends z.infer<typeof jobActivityDeltaSchema> {
43
+ }
44
+ export interface JobActivitySnapshot extends z.infer<typeof jobActivitySnapshotSchema> {
45
+ }
46
+ export * from "./job-note";
47
+ export * from "./job-status";
48
+ export * from "./nuxt";
@@ -0,0 +1,3 @@
1
+ export * from "./job-note";
2
+ export * from "./job-status";
3
+ export * from "./nuxt";
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ import { createLeadNoteSchema, leadNoteSchema, updateLeadNoteSchema, updateLeadNotesOrderSchema } from "../../schemas/lead";
3
+ export interface LeadNote extends z.infer<typeof leadNoteSchema> {
4
+ }
5
+ export interface CreateLeadNote extends z.infer<typeof createLeadNoteSchema> {
6
+ }
7
+ export interface UpdateLeadNote extends z.infer<typeof updateLeadNoteSchema> {
8
+ }
9
+ export interface UpdateLeadNotesOrder extends z.infer<typeof updateLeadNotesOrderSchema> {
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ import { leadStatusSchema, agentStatusSchema } from "../../schemas/lead/lead-status";
3
+ export type LeadStatus = z.infer<typeof leadStatusSchema>;
4
+ export declare const leadStatusDisplayMap: Record<LeadStatus, string>;
5
+ export type LeadAgentStatus = z.infer<typeof agentStatusSchema>;
@@ -0,0 +1,9 @@
1
+ export const leadStatusDisplayMap = {
2
+ leads: "Leads",
3
+ contacted: "Contacted",
4
+ viewed: "Viewed",
5
+ replied: "Replied",
6
+ negotiations: "Negotiations",
7
+ won: "Won",
8
+ lost: "Lost",
9
+ };
@@ -0,0 +1,4 @@
1
+ import { infer } from "zod";
2
+ import { nuxtStateJobSchema } from "../../schemas";
3
+ export interface NuxtStateJobSchema extends infer<typeof nuxtStateJobSchema> {
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './job-filters';
@@ -0,0 +1 @@
1
+ export * from './job-filters';
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ import { jobFiltersSchema } from '../../schemas';
3
+ export interface JobFilters extends z.infer<typeof jobFiltersSchema> {
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./log-event";
@@ -0,0 +1 @@
1
+ export * from "./log-event";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ import { savedSearchSchema } from "../../schemas";
3
+ import { Lead } from "../job";
4
+ export interface SavedSearch extends z.infer<typeof savedSearchSchema> {
5
+ jobs: Lead[];
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './scrape-payload';
2
+ export * from './scrape-result';
@@ -0,0 +1,2 @@
1
+ export * from './scrape-payload';
2
+ export * from './scrape-result';
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ import { scrapeJobActivityPayloadSchema, scrapeJobPayloadSchema, scrapePayloadSchema, scrapeUserProfilePayloadSchema } from "../../schemas";
3
+ export interface ScrapePayload extends z.infer<typeof scrapePayloadSchema> {
4
+ }
5
+ export interface ScrapeUserProfilePayload extends z.infer<typeof scrapeUserProfilePayloadSchema> {
6
+ }
7
+ export interface ScrapeJobPayload extends z.infer<typeof scrapeJobPayloadSchema> {
8
+ }
9
+ export interface ScrapeJobActivityPayload extends z.infer<typeof scrapeJobActivityPayloadSchema> {
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ import { scrapeFeedResultSchema, scrapeResultSchema, scrapeUserProfileResultSchema } from "../../schemas";
3
+ export interface ScrapeResult extends z.infer<typeof scrapeResultSchema> {
4
+ }
5
+ export interface ScrapeFeedResult extends z.infer<typeof scrapeFeedResultSchema> {
6
+ }
7
+ export interface ScrapeUserProfileResult extends z.infer<typeof scrapeUserProfileResultSchema> {
8
+ }
@@ -0,0 +1 @@
1
+ export {};