lancer-shared 1.2.78 → 1.2.80

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 (196) hide show
  1. package/dist/bundle.cjs.js +7 -1
  2. package/dist/constants/account-status.d.ts +3 -0
  3. package/dist/constants/account-status.js +17 -0
  4. package/dist/constants/collections.d.ts +13 -0
  5. package/dist/constants/collections.js +16 -0
  6. package/dist/constants/common-questions.js +60 -0
  7. package/dist/constants/index.js +40 -0
  8. package/dist/constants/job-filter-options.js +268 -0
  9. package/dist/constants/job-status.js +26 -0
  10. package/dist/constants/mappings/countryMapping.js +122 -0
  11. package/dist/constants/mappings/regionMapping.js +242 -0
  12. package/dist/constants/organization.d.ts +2 -0
  13. package/dist/constants/routes.d.ts +6 -1
  14. package/dist/constants/routes.js +108 -0
  15. package/dist/constants/upwork-accounts.js +21 -0
  16. package/dist/index.js +20 -0
  17. package/dist/schemas/account/account-status.js +11 -0
  18. package/dist/schemas/account/bidder-account.js +37 -0
  19. package/dist/schemas/account/index.js +19 -0
  20. package/dist/schemas/account/manager-account.d.ts +116 -0
  21. package/dist/schemas/account/manager-account.js +38 -0
  22. package/dist/schemas/account/scraper-account.js +37 -0
  23. package/dist/schemas/ai/ai-config.d.ts +36 -0
  24. package/dist/schemas/ai/ai-config.js +12 -0
  25. package/dist/schemas/ai/index.d.ts +3 -0
  26. package/dist/schemas/ai/index.js +19 -0
  27. package/dist/schemas/ai/proposal.d.ts +82 -0
  28. package/dist/schemas/ai/proposal.js +16 -0
  29. package/dist/schemas/ai/suitability.d.ts +37 -0
  30. package/dist/schemas/ai/suitability.js +17 -0
  31. package/dist/schemas/bid/bid-result.js +15 -0
  32. package/dist/schemas/bid/bid.js +36 -0
  33. package/dist/schemas/bid/index.js +18 -0
  34. package/dist/schemas/bidding/index.d.ts +1 -0
  35. package/dist/schemas/bidding/index.js +17 -0
  36. package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
  37. package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
  38. package/dist/schemas/campaign/campaign-ai-metrics.js +9 -0
  39. package/dist/schemas/campaign/campaign-analytics.js +41 -0
  40. package/dist/schemas/campaign/campaign-expenses.js +9 -0
  41. package/dist/schemas/campaign/campaign-insights.js +31 -0
  42. package/dist/schemas/campaign/campaign-integrations.d.ts +87 -0
  43. package/dist/schemas/campaign/campaign-integrations.js +16 -0
  44. package/dist/schemas/campaign/campaign-job-count.d.ts +2 -0
  45. package/dist/schemas/campaign/campaign-job-count.js +6 -0
  46. package/dist/schemas/campaign/campaign.d.ts +9 -0
  47. package/dist/schemas/campaign/campaign.js +44 -0
  48. package/dist/schemas/campaign/index.js +23 -0
  49. package/dist/schemas/chat-message/chat-message.d.ts +31 -0
  50. package/dist/schemas/chat-message/chat-message.js +13 -0
  51. package/dist/schemas/chat-message/index.d.ts +1 -0
  52. package/dist/schemas/chat-message/index.js +17 -0
  53. package/dist/schemas/config/agency-config.d.ts +17 -0
  54. package/dist/schemas/config/agency-config.js +10 -0
  55. package/dist/schemas/config/index.d.ts +1 -0
  56. package/dist/schemas/config/index.js +17 -0
  57. package/dist/schemas/index.js +32 -0
  58. package/dist/schemas/job/index.js +19 -0
  59. package/dist/schemas/job/job-details.d.ts +335 -0
  60. package/dist/schemas/job/job-details.js +29 -0
  61. package/dist/schemas/job/job-note.d.ts +83 -0
  62. package/dist/schemas/job/job-note.js +30 -0
  63. package/dist/schemas/job/job-status.d.ts +3 -0
  64. package/dist/schemas/job/job-status.js +27 -0
  65. package/dist/schemas/job/job.d.ts +1160 -0
  66. package/dist/schemas/job/job.js +90 -0
  67. package/dist/schemas/job/pipeline-job.d.ts +602 -0
  68. package/dist/schemas/job/pipeline-job.js +42 -0
  69. package/dist/schemas/job/upwork-job.d.ts +334 -0
  70. package/dist/schemas/job/upwork-job.js +60 -0
  71. package/dist/schemas/job-filters/index.d.ts +1 -0
  72. package/dist/schemas/job-filters/index.js +17 -0
  73. package/dist/schemas/job-filters/job-filters.d.ts +241 -0
  74. package/dist/schemas/job-filters/job-filters.js +87 -0
  75. package/dist/schemas/lead/index.js +19 -0
  76. package/dist/schemas/lead/lead-note.d.ts +83 -0
  77. package/dist/schemas/lead/lead-note.js +30 -0
  78. package/dist/schemas/lead/lead-status.js +26 -0
  79. package/dist/schemas/lead/lead.d.ts +1897 -0
  80. package/dist/schemas/lead/lead.js +143 -0
  81. package/dist/schemas/lead/nuxt.d.ts +1664 -0
  82. package/dist/schemas/logger/index.js +17 -0
  83. package/dist/schemas/logger/log-event.js +66 -0
  84. package/dist/schemas/organization/index.js +17 -0
  85. package/dist/schemas/organization/organization.d.ts +70 -0
  86. package/dist/schemas/organization/organization.js +19 -0
  87. package/dist/schemas/proxy/index.js +17 -0
  88. package/dist/schemas/proxy/proxy.js +21 -0
  89. package/dist/schemas/saved-search/index.js +12 -0
  90. package/dist/schemas/scraper/index.js +18 -0
  91. package/dist/schemas/scraper/scrape-payload.js +16 -0
  92. package/dist/schemas/scraper/scrape-result.js +23 -0
  93. package/dist/schemas/shared.js +16 -0
  94. package/dist/schemas/time-filter/index.js +9 -0
  95. package/dist/schemas/upwork-account/index.d.ts +3 -0
  96. package/dist/schemas/upwork-account/index.js +19 -0
  97. package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
  98. package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
  99. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
  100. package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
  101. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
  102. package/dist/schemas/upwork-account/upwork-scraping-account.js +29 -0
  103. package/dist/schemas/user/index.js +55 -0
  104. package/dist/types/account/account-status.d.ts +3 -0
  105. package/dist/types/account/account-status.js +2 -0
  106. package/dist/types/account/bidder-account.d.ts +7 -0
  107. package/dist/types/account/bidder-account.js +2 -0
  108. package/dist/types/account/index.d.ts +3 -0
  109. package/dist/types/account/index.js +19 -0
  110. package/dist/types/account/manager-account.d.ts +7 -0
  111. package/dist/types/account/manager-account.js +2 -0
  112. package/dist/types/account/scraper-account.d.ts +5 -0
  113. package/dist/types/account/scraper-account.js +2 -0
  114. package/dist/types/ai/ai-config.d.ts +6 -0
  115. package/dist/types/ai/ai-config.js +2 -0
  116. package/dist/types/ai/index.d.ts +3 -0
  117. package/dist/types/ai/index.js +19 -0
  118. package/dist/types/ai/proposal.d.ts +10 -0
  119. package/dist/types/ai/proposal.js +2 -0
  120. package/dist/types/ai/suitability.d.ts +6 -0
  121. package/dist/types/ai/suitability.js +2 -0
  122. package/dist/types/bid/bid-result.d.ts +5 -0
  123. package/dist/types/bid/bid-result.js +2 -0
  124. package/dist/types/bid/bid.d.ts +9 -0
  125. package/dist/types/bid/bid.js +2 -0
  126. package/dist/types/bid/index.d.ts +2 -0
  127. package/dist/types/bid/index.js +18 -0
  128. package/dist/types/bidding/index.d.ts +1 -0
  129. package/dist/types/bidding/index.js +17 -0
  130. package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
  131. package/dist/types/bidding/proposal-bidding-status.js +2 -0
  132. package/dist/types/campaign/campaign-analytics.d.ts +7 -0
  133. package/dist/types/campaign/campaign-analytics.js +2 -0
  134. package/dist/types/campaign/campaign-expenses.d.ts +3 -0
  135. package/dist/types/campaign/campaign-expenses.js +2 -0
  136. package/dist/types/campaign/campaign-insights.js +2 -0
  137. package/dist/types/campaign/campaign-integrations.d.ts +6 -0
  138. package/dist/types/campaign/campaign-integrations.js +2 -0
  139. package/dist/types/campaign/campaign-job-count.d.ts +4 -0
  140. package/dist/types/campaign/campaign-job-count.js +2 -0
  141. package/dist/types/campaign/campaign.js +2 -0
  142. package/dist/types/campaign/index.js +22 -0
  143. package/dist/types/chat-message/chat-message.d.ts +4 -0
  144. package/dist/types/chat-message/chat-message.js +2 -0
  145. package/dist/types/chat-message/index.d.ts +1 -0
  146. package/dist/types/chat-message/index.js +17 -0
  147. package/dist/types/config/agency-config.d.ts +4 -0
  148. package/dist/types/config/agency-config.js +2 -0
  149. package/dist/types/config/index.d.ts +1 -0
  150. package/dist/types/config/index.js +17 -0
  151. package/dist/types/index.d.ts +15 -0
  152. package/dist/types/index.js +29 -0
  153. package/dist/types/job/index.d.ts +48 -0
  154. package/dist/types/job/index.js +19 -0
  155. package/dist/types/job/job-details.d.ts +36 -0
  156. package/dist/types/job/job-details.js +2 -0
  157. package/dist/types/job/job-note.d.ts +10 -0
  158. package/dist/types/job/job-note.js +2 -0
  159. package/dist/types/job/job-status.d.ts +5 -0
  160. package/dist/types/job/job-status.js +12 -0
  161. package/dist/types/job/job.d.ts +36 -0
  162. package/dist/types/job/job.js +2 -0
  163. package/dist/types/job/nuxt.d.ts +4 -0
  164. package/dist/types/job-filters/index.d.ts +1 -0
  165. package/dist/types/job-filters/index.js +17 -0
  166. package/dist/types/job-filters/job-filters.d.ts +4 -0
  167. package/dist/types/job-filters/job-filters.js +2 -0
  168. package/dist/types/logger/index.d.ts +1 -0
  169. package/dist/types/logger/index.js +17 -0
  170. package/dist/types/logger/log-event.js +2 -0
  171. package/dist/types/saved-search/index.d.ts +6 -0
  172. package/dist/types/saved-search/index.js +2 -0
  173. package/dist/types/scraper/index.d.ts +2 -0
  174. package/dist/types/scraper/index.js +18 -0
  175. package/dist/types/scraper/scrape-payload.d.ts +10 -0
  176. package/dist/types/scraper/scrape-payload.js +2 -0
  177. package/dist/types/scraper/scrape-result.d.ts +8 -0
  178. package/dist/types/scraper/scrape-result.js +2 -0
  179. package/dist/types/shared.d.ts +8 -0
  180. package/dist/types/time-filter/index.d.ts +3 -0
  181. package/dist/types/time-filter/index.js +2 -0
  182. package/dist/types/transaction/index.d.ts +4 -0
  183. package/dist/types/upwork-account/index.d.ts +3 -0
  184. package/dist/types/upwork-account/index.js +19 -0
  185. package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
  186. package/dist/types/upwork-account/upwork-account-status.js +2 -0
  187. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
  188. package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
  189. package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
  190. package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
  191. package/dist/types/usage/index.d.ts +6 -0
  192. package/dist/types/user/index.d.ts +15 -0
  193. package/dist/types/user/index.js +2 -0
  194. package/dist/utils/index.js +17 -0
  195. package/dist/utils/try-catch.js +25 -0
  196. package/package.json +1 -1
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.upworkProfileSchema = exports.registerSchema = exports.loginSchema = exports.userSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const shared_1 = require("../shared");
6
+ exports.userSchema = (0, zod_1.object)({
7
+ id: (0, zod_1.string)(),
8
+ firstName: (0, zod_1.string)(),
9
+ lastName: (0, zod_1.string)(),
10
+ displayName: (0, zod_1.string)(),
11
+ email: (0, zod_1.string)(),
12
+ organizationIds: zod_1.z.array((0, zod_1.string)()),
13
+ createdAt: (0, zod_1.number)(),
14
+ updatedAt: (0, zod_1.number)(),
15
+ });
16
+ exports.loginSchema = (0, zod_1.object)({
17
+ email: (0, zod_1.string)().email(),
18
+ password: shared_1.passwordSchema,
19
+ });
20
+ exports.registerSchema = (0, zod_1.object)({
21
+ firstName: (0, zod_1.string)().min(1, "First name is required").max(255),
22
+ lastName: (0, zod_1.string)().min(1, "Last name is required").max(255),
23
+ email: (0, zod_1.string)()
24
+ .email("Must be a valid email address")
25
+ .max(255)
26
+ .min(1, "Email address is required"),
27
+ password: shared_1.passwordSchema,
28
+ confirmPassword: shared_1.passwordSchema,
29
+ }).refine(({ password, confirmPassword }) => password === confirmPassword, {
30
+ message: `Passwords don't match.`,
31
+ path: ["confirmPassword"],
32
+ });
33
+ exports.upworkProfileSchema = (0, zod_1.object)({
34
+ name: (0, zod_1.string)().nullable(),
35
+ country: (0, zod_1.string)().nullable(),
36
+ bio: (0, zod_1.string)().nullable(),
37
+ skills: zod_1.z.array((0, zod_1.string)()).nullable(),
38
+ certifications: zod_1.z.array((0, zod_1.string)()).nullable(),
39
+ employmentHistory: zod_1.z
40
+ .array(zod_1.z.object({
41
+ jobTitle: (0, zod_1.string)(),
42
+ period: (0, zod_1.string)(),
43
+ description: (0, zod_1.string)(),
44
+ }))
45
+ .nullable(),
46
+ languages: zod_1.z.record((0, zod_1.string)(), (0, zod_1.string)()).nullable(),
47
+ portfolio: zod_1.z
48
+ .array(zod_1.z.object({
49
+ title: (0, zod_1.string)(),
50
+ description: (0, zod_1.string)(),
51
+ skills: zod_1.z.array((0, zod_1.string)()),
52
+ publishedDate: (0, zod_1.string)(),
53
+ }))
54
+ .nullable(),
55
+ });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './account-status';
2
+ export * from './bidder-account';
3
+ export * from './scraper-account';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account-status"), exports);
18
+ __exportStar(require("./bidder-account"), exports);
19
+ __exportStar(require("./scraper-account"), exports);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { createManagerAccountSchema, updateManagerAccountSchema, managerAccountProvider, managerAccountSchema } from '../../schemas';
3
+ export interface ManagerAccount extends z.infer<typeof managerAccountSchema> {
4
+ }
5
+ export type ManagerAccountProvider = z.infer<typeof managerAccountProvider>;
6
+ export type CreateManagerAccount = z.infer<typeof createManagerAccountSchema>;
7
+ export type UpdateManagerAccount = z.infer<typeof updateManagerAccountSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from './ai-config';
2
+ export * from './proposal';
3
+ export * from './suitability';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ai-config"), exports);
18
+ __exportStar(require("./proposal"), exports);
19
+ __exportStar(require("./suitability"), exports);
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from './bid';
2
+ export * from './bid-result';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./bid"), exports);
18
+ __exportStar(require("./bid-result"), exports);
@@ -0,0 +1 @@
1
+ export * from './proposal-bidding-status';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./proposal-bidding-status"), exports);
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ import { proposalBiddingStatusSchema } from '../../schemas';
3
+ export type ProposalBiddingStatus = z.infer<typeof proposalBiddingStatusSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./campaign"), exports);
18
+ __exportStar(require("./campaign-insights"), exports);
19
+ __exportStar(require("./campaign-job-count"), exports);
20
+ __exportStar(require("./campaign-expenses"), exports);
21
+ __exportStar(require("./campaign-integrations"), exports);
22
+ __exportStar(require("./campaign-analytics"), exports);
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './chat-message';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./chat-message"), exports);
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './agency-config';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./agency-config"), exports);
@@ -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,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./chat-message"), exports);
18
+ __exportStar(require("./job"), exports);
19
+ __exportStar(require("./saved-search"), exports);
20
+ __exportStar(require("./user"), exports);
21
+ __exportStar(require("./job-filters"), exports);
22
+ __exportStar(require("./campaign"), exports);
23
+ __exportStar(require("./ai"), exports);
24
+ __exportStar(require("./scraper"), exports);
25
+ __exportStar(require("./config"), exports);
26
+ __exportStar(require("./logger"), exports);
27
+ __exportStar(require("./account"), exports);
28
+ __exportStar(require("./bid"), exports);
29
+ __exportStar(require("./time-filter"), exports);
@@ -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,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./job"), exports);
18
+ __exportStar(require("./job-note"), exports);
19
+ __exportStar(require("./job-status"), exports);
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { SavedSearch } from '../saved-search';
3
+ import { ClientInfoSchema, jobDetailsSchema, JobListItemSchema, JobMetadataSchema, jobPipelineDetailsSchema, jobPipelineResponseSchema, JobSkillsSchema, upworkJobDetailsSchema, VendorQualificationsSchema } from '../../schemas';
4
+ import { JobNote } from './job-note';
5
+ import { JobStatus } from './job-status';
6
+ import { QuestionAnswerPair } from '../ai';
7
+ export interface UpworkJob extends z.infer<typeof upworkJobDetailsSchema> {
8
+ clientInfo: ClientInfo | null;
9
+ metadata: JobMetadata | null;
10
+ skills: JobSkill[] | null;
11
+ vendorQualifications: VendorQualifications | null;
12
+ }
13
+ export interface Job extends z.infer<typeof jobDetailsSchema> {
14
+ clientInfo: ClientInfo | null;
15
+ metadata: JobMetadata | null;
16
+ skills: JobSkill[] | null;
17
+ vendorQualifications: VendorQualifications | null;
18
+ notes?: JobNote[];
19
+ suitabilityQuestionAnswerPairs?: QuestionAnswerPair[];
20
+ status?: JobStatus;
21
+ }
22
+ export interface JobPipeline extends z.infer<typeof jobPipelineDetailsSchema> {
23
+ clientInfo: Pick<ClientInfo, 'country'>;
24
+ metadata: Pick<JobMetadata, 'hourlyRate' | 'fixedPrice'>;
25
+ }
26
+ export interface JobPipelineResponse extends z.infer<typeof jobPipelineResponseSchema> {
27
+ jobs: JobPipeline[];
28
+ }
29
+ export type JobWithSavedSearch = Job & {
30
+ savedSearch?: SavedSearch | null;
31
+ };
32
+ export type JobListItem = z.infer<typeof JobListItemSchema>;
33
+ export type JobSkill = z.infer<typeof JobSkillsSchema>;
34
+ export type VendorQualifications = z.infer<typeof VendorQualificationsSchema>;
35
+ export type ClientInfo = z.infer<typeof ClientInfoSchema>;
36
+ export type JobMetadata = z.infer<typeof JobMetadataSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.leadStatusDisplayMap = void 0;
4
+ exports.leadStatusDisplayMap = {
5
+ leads: "Leads",
6
+ contacted: "Contacted",
7
+ viewed: "Viewed",
8
+ replied: "Replied",
9
+ negotiations: "Negotiations",
10
+ won: "Won",
11
+ lost: "Lost",
12
+ };