lancer-shared 1.0.176 → 1.2.1

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 (179) hide show
  1. package/dist/bundle.cjs.js +6404 -266
  2. package/dist/constants/collections.d.ts +1 -0
  3. package/dist/constants/index.d.ts +9 -8
  4. package/dist/constants/organization.d.ts +2 -0
  5. package/dist/constants/routes.d.ts +54 -0
  6. package/dist/index.d.ts +4 -4
  7. package/dist/schemas/account/bidder-account.d.ts +8 -1
  8. package/dist/schemas/bid/bid-result.d.ts +0 -3
  9. package/dist/schemas/bid/bid.d.ts +1 -19
  10. package/dist/schemas/campaign/campaign-analytics.d.ts +328 -0
  11. package/dist/schemas/index.d.ts +2 -1
  12. package/dist/schemas/lead/index.d.ts +10 -0
  13. package/dist/schemas/logger/log-event.d.ts +45 -5
  14. package/dist/schemas/organization/index.d.ts +349 -1
  15. package/dist/schemas/organization/member.d.ts +18 -0
  16. package/dist/schemas/organization/organization.d.ts +87 -13
  17. package/dist/schemas/organization/subscription.d.ts +28 -0
  18. package/dist/schemas/proxy/proxy.d.ts +5 -5
  19. package/dist/schemas/transaction/index.d.ts +31 -0
  20. package/dist/schemas/usage/index.d.ts +72 -0
  21. package/dist/types/campaign/campaign-analytics.d.ts +3 -1
  22. package/dist/types/index.d.ts +2 -1
  23. package/dist/types/job/index.d.ts +3 -2
  24. package/dist/types/logger/log-event.d.ts +6 -2
  25. package/dist/types/shared.d.ts +5 -0
  26. package/dist/types/transaction/index.d.ts +4 -0
  27. package/dist/types/usage/index.d.ts +6 -0
  28. package/dist/types/user/index.d.ts +2 -1
  29. package/dist/utils/index.d.ts +2 -1
  30. package/dist/utils/shared.d.ts +3 -0
  31. package/package.json +9 -3
  32. package/dist/constants/account-status.d.ts +0 -3
  33. package/dist/constants/account-status.js +0 -17
  34. package/dist/constants/collections.js +0 -16
  35. package/dist/constants/common-questions.js +0 -60
  36. package/dist/constants/index.js +0 -40
  37. package/dist/constants/job-filter-options.js +0 -268
  38. package/dist/constants/job-status.js +0 -26
  39. package/dist/constants/mappings/countryMapping.js +0 -122
  40. package/dist/constants/mappings/regionMapping.js +0 -242
  41. package/dist/constants/routes.js +0 -108
  42. package/dist/constants/upwork-accounts.js +0 -21
  43. package/dist/index.js +0 -20
  44. package/dist/schemas/account/account-status.js +0 -11
  45. package/dist/schemas/account/bidder-account.js +0 -37
  46. package/dist/schemas/account/index.js +0 -19
  47. package/dist/schemas/account/manager-account.d.ts +0 -116
  48. package/dist/schemas/account/manager-account.js +0 -38
  49. package/dist/schemas/account/scraper-account.js +0 -37
  50. package/dist/schemas/ai/ai-config.d.ts +0 -36
  51. package/dist/schemas/ai/ai-config.js +0 -12
  52. package/dist/schemas/ai/index.d.ts +0 -3
  53. package/dist/schemas/ai/index.js +0 -19
  54. package/dist/schemas/ai/proposal.d.ts +0 -82
  55. package/dist/schemas/ai/proposal.js +0 -16
  56. package/dist/schemas/ai/suitability.d.ts +0 -37
  57. package/dist/schemas/ai/suitability.js +0 -17
  58. package/dist/schemas/bid/bid-result.js +0 -15
  59. package/dist/schemas/bid/bid.js +0 -36
  60. package/dist/schemas/bid/index.js +0 -18
  61. package/dist/schemas/bidding/index.d.ts +0 -1
  62. package/dist/schemas/bidding/index.js +0 -17
  63. package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
  64. package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
  65. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
  66. package/dist/schemas/campaign/campaign-analytics.js +0 -41
  67. package/dist/schemas/campaign/campaign-expenses.js +0 -9
  68. package/dist/schemas/campaign/campaign-insights.js +0 -31
  69. package/dist/schemas/campaign/campaign-integrations.js +0 -16
  70. package/dist/schemas/campaign/campaign-job-count.js +0 -6
  71. package/dist/schemas/campaign/campaign.js +0 -44
  72. package/dist/schemas/campaign/index.js +0 -23
  73. package/dist/schemas/chat-message/chat-message.js +0 -13
  74. package/dist/schemas/chat-message/index.js +0 -17
  75. package/dist/schemas/config/agency-config.js +0 -10
  76. package/dist/schemas/config/index.js +0 -17
  77. package/dist/schemas/index.js +0 -32
  78. package/dist/schemas/job/index.d.ts +0 -3
  79. package/dist/schemas/job/index.js +0 -19
  80. package/dist/schemas/job/job-details.d.ts +0 -335
  81. package/dist/schemas/job/job-details.js +0 -29
  82. package/dist/schemas/job/job-note.d.ts +0 -83
  83. package/dist/schemas/job/job-note.js +0 -30
  84. package/dist/schemas/job/job-status.d.ts +0 -3
  85. package/dist/schemas/job/job-status.js +0 -27
  86. package/dist/schemas/job/job.d.ts +0 -1160
  87. package/dist/schemas/job/job.js +0 -90
  88. package/dist/schemas/job/pipeline-job.d.ts +0 -602
  89. package/dist/schemas/job/pipeline-job.js +0 -42
  90. package/dist/schemas/job/upwork-job.d.ts +0 -334
  91. package/dist/schemas/job/upwork-job.js +0 -60
  92. package/dist/schemas/job-filters/index.js +0 -17
  93. package/dist/schemas/job-filters/job-filters.js +0 -87
  94. package/dist/schemas/lead/index.js +0 -19
  95. package/dist/schemas/lead/lead-note.js +0 -30
  96. package/dist/schemas/lead/lead-status.js +0 -26
  97. package/dist/schemas/lead/lead.d.ts +0 -1897
  98. package/dist/schemas/lead/lead.js +0 -143
  99. package/dist/schemas/logger/index.js +0 -17
  100. package/dist/schemas/logger/log-event.js +0 -66
  101. package/dist/schemas/organization/index.js +0 -17
  102. package/dist/schemas/organization/organization.js +0 -19
  103. package/dist/schemas/proxy/index.js +0 -17
  104. package/dist/schemas/proxy/proxy.js +0 -21
  105. package/dist/schemas/saved-search/index.js +0 -12
  106. package/dist/schemas/scraper/index.js +0 -18
  107. package/dist/schemas/scraper/scrape-payload.js +0 -16
  108. package/dist/schemas/scraper/scrape-result.js +0 -23
  109. package/dist/schemas/shared.js +0 -16
  110. package/dist/schemas/time-filter/index.js +0 -9
  111. package/dist/schemas/upwork-account/index.d.ts +0 -3
  112. package/dist/schemas/upwork-account/index.js +0 -19
  113. package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
  114. package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
  115. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
  116. package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
  117. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
  118. package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -29
  119. package/dist/schemas/user/index.js +0 -55
  120. package/dist/types/account/account-status.js +0 -2
  121. package/dist/types/account/bidder-account.js +0 -2
  122. package/dist/types/account/index.js +0 -19
  123. package/dist/types/account/manager-account.d.ts +0 -7
  124. package/dist/types/account/manager-account.js +0 -2
  125. package/dist/types/account/scraper-account.js +0 -2
  126. package/dist/types/ai/ai-config.d.ts +0 -6
  127. package/dist/types/ai/ai-config.js +0 -2
  128. package/dist/types/ai/index.d.ts +0 -3
  129. package/dist/types/ai/index.js +0 -19
  130. package/dist/types/ai/proposal.d.ts +0 -10
  131. package/dist/types/ai/proposal.js +0 -2
  132. package/dist/types/ai/suitability.d.ts +0 -6
  133. package/dist/types/ai/suitability.js +0 -2
  134. package/dist/types/bid/bid-result.js +0 -2
  135. package/dist/types/bid/bid.js +0 -2
  136. package/dist/types/bid/index.js +0 -18
  137. package/dist/types/bidding/index.d.ts +0 -1
  138. package/dist/types/bidding/index.js +0 -17
  139. package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
  140. package/dist/types/bidding/proposal-bidding-status.js +0 -2
  141. package/dist/types/campaign/campaign-analytics.js +0 -2
  142. package/dist/types/campaign/campaign-expenses.js +0 -2
  143. package/dist/types/campaign/campaign-insights.js +0 -2
  144. package/dist/types/campaign/campaign-integrations.js +0 -2
  145. package/dist/types/campaign/campaign-job-count.js +0 -2
  146. package/dist/types/campaign/campaign.js +0 -2
  147. package/dist/types/campaign/index.js +0 -22
  148. package/dist/types/chat-message/chat-message.js +0 -2
  149. package/dist/types/chat-message/index.js +0 -17
  150. package/dist/types/config/agency-config.js +0 -2
  151. package/dist/types/config/index.js +0 -17
  152. package/dist/types/index.js +0 -29
  153. package/dist/types/job/index.js +0 -19
  154. package/dist/types/job/job-details.d.ts +0 -36
  155. package/dist/types/job/job-details.js +0 -2
  156. package/dist/types/job/job-note.js +0 -2
  157. package/dist/types/job/job-status.js +0 -12
  158. package/dist/types/job/job.d.ts +0 -36
  159. package/dist/types/job/job.js +0 -2
  160. package/dist/types/job-filters/index.js +0 -17
  161. package/dist/types/job-filters/job-filters.js +0 -2
  162. package/dist/types/logger/index.js +0 -17
  163. package/dist/types/logger/log-event.js +0 -2
  164. package/dist/types/saved-search/index.js +0 -2
  165. package/dist/types/scraper/index.js +0 -18
  166. package/dist/types/scraper/scrape-payload.js +0 -2
  167. package/dist/types/scraper/scrape-result.js +0 -2
  168. package/dist/types/time-filter/index.js +0 -2
  169. package/dist/types/upwork-account/index.d.ts +0 -3
  170. package/dist/types/upwork-account/index.js +0 -19
  171. package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
  172. package/dist/types/upwork-account/upwork-account-status.js +0 -2
  173. package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
  174. package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
  175. package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
  176. package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
  177. package/dist/types/user/index.js +0 -2
  178. package/dist/utils/index.js +0 -17
  179. package/dist/utils/try-catch.js +0 -25
@@ -1,90 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const upworkScrapingAccountSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- email: z.ZodString;
5
- password: z.ZodString;
6
- cookies: z.ZodRecord<z.ZodString, z.ZodString>;
7
- proxy_credentials: z.ZodString;
8
- region: z.ZodString;
9
- is_active: z.ZodBoolean;
10
- last_used: z.ZodNumber;
11
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
12
- verified: z.ZodBoolean;
13
- }, "strip", z.ZodTypeAny, {
14
- id: string;
15
- email: string;
16
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
17
- region: string;
18
- cookies: Record<string, string>;
19
- password: string;
20
- verified: boolean;
21
- is_active: boolean;
22
- last_used: number;
23
- proxy_credentials: string;
24
- }, {
25
- id: string;
26
- email: string;
27
- status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
28
- region: string;
29
- cookies: Record<string, string>;
30
- password: string;
31
- verified: boolean;
32
- is_active: boolean;
33
- last_used: number;
34
- proxy_credentials: string;
35
- }>;
36
- export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
37
- id: z.ZodString;
38
- email: z.ZodString;
39
- password: z.ZodString;
40
- cookies: z.ZodRecord<z.ZodString, z.ZodString>;
41
- proxy_credentials: z.ZodString;
42
- region: z.ZodString;
43
- is_active: z.ZodBoolean;
44
- last_used: z.ZodNumber;
45
- status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
46
- verified: z.ZodBoolean;
47
- }, "email" | "region" | "password" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
48
- email: string;
49
- region: string;
50
- password: string;
51
- verified: boolean;
52
- proxy_credentials: string;
53
- }, {
54
- email: string;
55
- region: string;
56
- password: string;
57
- verified: boolean;
58
- proxy_credentials: string;
59
- }>;
60
- export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
61
- email: z.ZodOptional<z.ZodString>;
62
- status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
63
- region: z.ZodOptional<z.ZodString>;
64
- cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
- password: z.ZodOptional<z.ZodString>;
66
- verified: z.ZodOptional<z.ZodBoolean>;
67
- is_active: z.ZodOptional<z.ZodBoolean>;
68
- last_used: z.ZodOptional<z.ZodNumber>;
69
- proxy_credentials: z.ZodOptional<z.ZodString>;
70
- }, "strip", z.ZodTypeAny, {
71
- email?: string | undefined;
72
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
73
- region?: string | undefined;
74
- cookies?: Record<string, string> | undefined;
75
- password?: string | undefined;
76
- verified?: boolean | undefined;
77
- is_active?: boolean | undefined;
78
- last_used?: number | undefined;
79
- proxy_credentials?: string | undefined;
80
- }, {
81
- email?: string | undefined;
82
- status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
83
- region?: string | undefined;
84
- cookies?: Record<string, string> | undefined;
85
- password?: string | undefined;
86
- verified?: boolean | undefined;
87
- is_active?: boolean | undefined;
88
- last_used?: number | undefined;
89
- proxy_credentials?: string | undefined;
90
- }>;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
4
- const zod_1 = require("zod");
5
- const upwork_account_status_1 = require("./upwork-account-status");
6
- exports.upworkScrapingAccountSchema = zod_1.z.object({
7
- id: zod_1.z.string(),
8
- email: zod_1.z.string().email(),
9
- password: zod_1.z.string(),
10
- cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
11
- proxy_credentials: zod_1.z.string(),
12
- region: zod_1.z.string(),
13
- is_active: zod_1.z.boolean(),
14
- last_used: zod_1.z.number(),
15
- status: upwork_account_status_1.upworkAccountStatusSchema,
16
- verified: zod_1.z.boolean(),
17
- });
18
- exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema.pick({
19
- email: true,
20
- password: true,
21
- proxy_credentials: true,
22
- region: true,
23
- verified: true,
24
- });
25
- exports.updateUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema
26
- .omit({
27
- id: true,
28
- })
29
- .partial();
@@ -1,55 +0,0 @@
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
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
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);
@@ -1,7 +0,0 @@
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>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export * from './ai-config';
2
- export * from './proposal';
3
- export * from './suitability';
@@ -1,19 +0,0 @@
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);
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
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);
@@ -1 +0,0 @@
1
- export * from './proposal-bidding-status';
@@ -1,17 +0,0 @@
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);
@@ -1,3 +0,0 @@
1
- import { z } from 'zod';
2
- import { proposalBiddingStatusSchema } from '../../schemas';
3
- export type ProposalBiddingStatus = z.infer<typeof proposalBiddingStatusSchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
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);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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);
@@ -1,29 +0,0 @@
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);
@@ -1,19 +0,0 @@
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);
@@ -1,36 +0,0 @@
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>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
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
- };
@@ -1,36 +0,0 @@
1
- import { z } from "zod";
2
- import { SavedSearch } from "../saved-search";
3
- import { LeadNote } from "./job-note";
4
- import { LeadAgentStatus, LeadStatus } from "./job-status";
5
- import { QuestionAnswerPair } from "../ai";
6
- import { clientInfoSchema, jobListItemSchema, leadResponseSchema, leadSchema, jobSkillsSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema, clientReviewSchema, bidRangeSchema, jobActivitySchema } from "../../schemas/lead/lead";
7
- export interface Job extends z.infer<typeof upworkJobSchema> {
8
- clientInfo: ClientInfo | null;
9
- metadata: JobMetadata | null;
10
- skills: JobSkill[] | null;
11
- vendorQualifications: VendorQualifications | null;
12
- }
13
- export interface Lead extends z.infer<typeof leadSchema> {
14
- clientInfo: ClientInfo | null;
15
- metadata: JobMetadata | null;
16
- skills: JobSkill[] | null;
17
- vendorQualifications: VendorQualifications | null;
18
- notes: LeadNote[] | null;
19
- questionAnswerPairs: QuestionAnswerPair[] | null;
20
- agentStatus: LeadAgentStatus;
21
- leadStatus: LeadStatus;
22
- }
23
- export interface LeadResponse extends z.infer<typeof leadResponseSchema> {
24
- leads: Lead[];
25
- }
26
- export type JobWithSavedSearch = Lead & {
27
- savedSearch?: SavedSearch | null;
28
- };
29
- export type JobListItem = z.infer<typeof jobListItemSchema>;
30
- export type JobSkill = z.infer<typeof jobSkillsSchema>;
31
- export type VendorQualifications = z.infer<typeof vendorQualificationSchema>;
32
- export type ClientInfo = z.infer<typeof clientInfoSchema>;
33
- export type JobMetadata = z.infer<typeof metadataSchema>;
34
- export type ClientReview = z.infer<typeof clientReviewSchema>;
35
- export type JobBidRange = z.infer<typeof bidRangeSchema>;
36
- export type JobActivity = z.infer<typeof jobActivitySchema>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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-filters"), exports);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
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("./log-event"), exports);
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });