lancer-shared 1.0.167 → 1.0.168
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.
- package/dist/bundle.cjs.js +6251 -0
- package/dist/constants/collections.js +1 -4
- package/dist/constants/common-questions.js +1 -4
- package/dist/constants/index.js +10 -32
- package/dist/constants/job-filter-options.js +1 -4
- package/dist/constants/job-status.js +7 -12
- package/dist/constants/mappings/countryMapping.js +1 -3
- package/dist/constants/mappings/regionMapping.js +1 -3
- package/dist/constants/routes.d.ts +8 -2
- package/dist/constants/routes.js +39 -37
- package/dist/constants/upwork-accounts.js +3 -6
- package/dist/index.js +4 -20
- package/dist/schemas/account/account-status.js +2 -5
- package/dist/schemas/account/bidder-account.d.ts +15 -15
- package/dist/schemas/account/bidder-account.js +19 -22
- package/dist/schemas/account/index.js +3 -19
- package/dist/schemas/account/scraper-account.d.ts +27 -27
- package/dist/schemas/account/scraper-account.js +21 -24
- package/dist/schemas/ai/ai-config.js +8 -11
- package/dist/schemas/ai/index.js +3 -19
- package/dist/schemas/ai/proposal.d.ts +12 -12
- package/dist/schemas/ai/proposal.js +10 -13
- package/dist/schemas/ai/suitability.d.ts +6 -6
- package/dist/schemas/ai/suitability.js +8 -11
- package/dist/schemas/bid/bid-result.d.ts +2 -2
- package/dist/schemas/bid/bid-result.js +10 -13
- package/dist/schemas/bid/bid.d.ts +42 -42
- package/dist/schemas/bid/bid.js +27 -30
- package/dist/schemas/bid/index.js +2 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
- package/dist/schemas/campaign/campaign-analytics.d.ts +99 -40
- package/dist/schemas/campaign/campaign-analytics.js +28 -31
- package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
- package/dist/schemas/campaign/campaign-expenses.js +5 -8
- package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.js +10 -13
- package/dist/schemas/campaign/campaign-job-count.js +3 -6
- package/dist/schemas/campaign/campaign.d.ts +107 -107
- package/dist/schemas/campaign/campaign.js +32 -35
- package/dist/schemas/campaign/index.js +7 -23
- package/dist/schemas/chat-message/chat-message.js +7 -10
- package/dist/schemas/chat-message/index.js +1 -17
- package/dist/schemas/config/agency-config.js +6 -9
- package/dist/schemas/config/index.js +1 -17
- package/dist/schemas/event/index.d.ts +58 -0
- package/dist/schemas/index.d.ts +16 -16
- package/dist/schemas/index.js +16 -32
- package/dist/schemas/job/index.d.ts +95 -3
- package/dist/schemas/job-filters/index.js +1 -17
- package/dist/schemas/job-filters/job-filters.d.ts +16 -16
- package/dist/schemas/job-filters/job-filters.js +62 -65
- package/dist/schemas/lead/index.d.ts +2405 -1
- package/dist/schemas/lead/index.js +166 -19
- package/dist/schemas/lead/lead-note.d.ts +4 -4
- package/dist/schemas/lead/lead-note.js +13 -16
- package/dist/schemas/lead/lead-status.js +3 -6
- package/dist/schemas/logger/index.js +1 -17
- package/dist/schemas/logger/log-event.d.ts +183 -13
- package/dist/schemas/logger/log-event.js +38 -19
- package/dist/schemas/organization/index.js +1 -17
- package/dist/schemas/organization/organization.d.ts +10 -10
- package/dist/schemas/organization/organization.js +14 -17
- package/dist/schemas/proxy/index.js +1 -17
- package/dist/schemas/proxy/proxy.d.ts +16 -16
- package/dist/schemas/proxy/proxy.js +14 -17
- package/dist/schemas/saved-search/index.d.ts +5 -5
- package/dist/schemas/saved-search/index.js +8 -11
- package/dist/schemas/scraper/index.js +2 -18
- package/dist/schemas/scraper/scrape-payload.d.ts +105 -19
- package/dist/schemas/scraper/scrape-payload.js +19 -14
- package/dist/schemas/scraper/scrape-result.d.ts +476 -289
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.d.ts +2 -1
- package/dist/schemas/shared.js +12 -9
- package/dist/schemas/time-filter/index.js +5 -8
- package/dist/schemas/user/index.d.ts +26 -26
- package/dist/schemas/user/index.js +38 -41
- package/dist/types/account/account-status.js +1 -2
- package/dist/types/account/bidder-account.js +1 -2
- package/dist/types/account/index.js +3 -19
- package/dist/types/account/scraper-account.js +1 -2
- package/dist/types/ai/ai-config.js +1 -2
- package/dist/types/ai/index.js +3 -19
- package/dist/types/ai/proposal.js +1 -2
- package/dist/types/ai/suitability.js +1 -2
- package/dist/types/bid/bid-result.js +1 -2
- package/dist/types/bid/bid.js +1 -2
- package/dist/types/bid/index.js +2 -18
- package/dist/types/campaign/campaign-analytics.js +1 -2
- package/dist/types/campaign/campaign-expenses.js +1 -2
- package/dist/types/campaign/campaign-insights.js +1 -2
- package/dist/types/campaign/campaign-integrations.js +1 -2
- package/dist/types/campaign/campaign-job-count.js +1 -2
- package/dist/types/campaign/campaign.js +1 -2
- package/dist/types/campaign/index.js +6 -22
- package/dist/types/chat-message/chat-message.js +1 -2
- package/dist/types/chat-message/index.js +1 -17
- package/dist/types/config/agency-config.js +1 -2
- package/dist/types/config/index.js +1 -17
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +14 -29
- package/dist/types/job/index.d.ts +44 -1
- package/dist/types/job/index.js +2 -19
- package/dist/types/job/job-note.js +1 -2
- package/dist/types/job/job-status.js +1 -4
- package/dist/types/job-filters/index.js +1 -17
- package/dist/types/job-filters/job-filters.js +1 -2
- package/dist/types/logger/index.js +1 -17
- package/dist/types/logger/log-event.d.ts +4 -1
- package/dist/types/logger/log-event.js +1 -2
- package/dist/types/saved-search/index.js +1 -2
- package/dist/types/scraper/index.js +2 -18
- package/dist/types/scraper/scrape-payload.d.ts +5 -1
- package/dist/types/scraper/scrape-payload.js +1 -2
- package/dist/types/scraper/scrape-result.d.ts +3 -2
- package/dist/types/scraper/scrape-result.js +1 -2
- package/dist/types/shared.d.ts +3 -0
- package/dist/types/shared.js +1 -0
- package/dist/types/time-filter/index.js +1 -2
- package/dist/types/user/index.js +1 -2
- package/dist/utils/index.js +1 -17
- package/dist/utils/try-catch.js +8 -23
- package/package.json +12 -7
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/bidding/index.d.ts +0 -1
- package/dist/schemas/bidding/index.js +0 -17
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
- package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
- package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/job/index.js +0 -19
- package/dist/schemas/job/job-details.d.ts +0 -335
- package/dist/schemas/job/job-details.js +0 -29
- package/dist/schemas/job/job-note.d.ts +0 -83
- package/dist/schemas/job/job-note.js +0 -30
- package/dist/schemas/job/job-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- package/dist/schemas/job/job.d.ts +0 -1160
- package/dist/schemas/job/job.js +0 -90
- package/dist/schemas/job/pipeline-job.d.ts +0 -608
- package/dist/schemas/job/pipeline-job.js +0 -43
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/schemas/upwork-account/index.d.ts +0 -3
- package/dist/schemas/upwork-account/index.js +0 -19
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
- package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
- package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- package/dist/types/bidding/index.d.ts +0 -1
- package/dist/types/bidding/index.js +0 -17
- package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
- package/dist/types/bidding/proposal-bidding-status.js +0 -2
- package/dist/types/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
- package/dist/types/upwork-account/index.d.ts +0 -3
- package/dist/types/upwork-account/index.js +0 -19
- package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
- package/dist/types/upwork-account/upwork-account-status.js +0 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
- package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
- package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { bidRangeSchema, clientInfoSchema, clientReviewSchema, jobActivityDeltaSchema, jobActivityOffsetEnum, jobActivityOffsetHours, jobActivitySchema, jobActivitySnapshotSchema, jobActivityUpdateSchema, jobListingSchema, jobSkillsSchema, leadResponseSchema, leadSchema, metadataSchema, upworkJobSchema, vendorQualificationSchema } from "../../schemas";
|
|
3
|
+
import { QuestionAnswerPair } from "../ai";
|
|
4
|
+
import { SavedSearch } from "../saved-search";
|
|
5
|
+
import { LeadNote } from "./job-note";
|
|
6
|
+
import { LeadAgentStatus, LeadStatus } from "./job-status";
|
|
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 JobListing = z.infer<typeof jobListingSchema>;
|
|
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>;
|
|
37
|
+
export type JobActivityOffset = z.infer<typeof jobActivityOffsetEnum>;
|
|
38
|
+
export type JobActivityOffsetHour = (typeof jobActivityOffsetHours)[number];
|
|
39
|
+
export interface JobActivityUpdateSchema extends z.infer<typeof jobActivityUpdateSchema> {
|
|
40
|
+
}
|
|
41
|
+
export interface JobActivityDelta extends z.infer<typeof jobActivityDeltaSchema> {
|
|
42
|
+
}
|
|
43
|
+
export interface JobActivitySnapshot extends z.infer<typeof jobActivitySnapshotSchema> {
|
|
44
|
+
}
|
|
2
45
|
export * from "./job-note";
|
|
3
46
|
export * from "./job-status";
|
package/dist/types/job/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
export * from "./job-note";
|
|
2
|
+
export * from "./job-status";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export * from './job-filters';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export * from "./log-event";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { logEventSchema, LogEventTypeEnum } from "../../schemas/logger";
|
|
2
|
+
import { jobActivityScrapedEventMetadata, jobActivityScrapeFailedEventMetadata, listingScrapedEventMetadata, logEventSchema, LogEventTypeEnum } from "../../schemas/logger";
|
|
3
3
|
export type LogEventType = z.infer<typeof LogEventTypeEnum>;
|
|
4
4
|
export type LogEvent = z.infer<typeof logEventSchema>;
|
|
5
|
+
export type ListingScrapedEventMetadata = z.infer<typeof listingScrapedEventMetadata>;
|
|
6
|
+
export type JobActivityScrapedEventMetadata = z.infer<typeof jobActivityScrapedEventMetadata>;
|
|
7
|
+
export type JobActivityScrapeFailedEventMetadata = z.infer<typeof jobActivityScrapeFailedEventMetadata>;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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("./scrape-payload"), exports);
|
|
18
|
-
__exportStar(require("./scrape-result"), exports);
|
|
1
|
+
export * from './scrape-payload';
|
|
2
|
+
export * from './scrape-result';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { scrapePayloadSchema, scrapeUserProfilePayloadSchema } from "../../schemas";
|
|
2
|
+
import { scrapeJobActivityPayloadSchema, scrapeJobPayloadSchema, scrapePayloadSchema, scrapeUserProfilePayloadSchema } from "../../schemas";
|
|
3
3
|
export interface ScrapePayload extends z.infer<typeof scrapePayloadSchema> {
|
|
4
4
|
}
|
|
5
5
|
export interface ScrapeUserProfilePayload extends z.infer<typeof scrapeUserProfilePayloadSchema> {
|
|
6
6
|
}
|
|
7
|
+
export interface ScrapeJobPayload extends z.infer<typeof scrapeJobPayloadSchema> {
|
|
8
|
+
}
|
|
9
|
+
export interface ScrapeJobActivityPayload extends z.infer<typeof scrapeJobActivityPayloadSchema> {
|
|
10
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { scrapeFeedResultSchema, scrapeResultSchema, scrapeUserProfileResultSchema } from "../../schemas";
|
|
3
3
|
export interface ScrapeResult extends z.infer<typeof scrapeResultSchema> {
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export interface ScrapeFeedResult extends z.infer<typeof scrapeFeedResultSchema> {
|
|
6
|
+
}
|
|
6
7
|
export interface ScrapeUserProfileResult extends z.infer<typeof scrapeUserProfileResultSchema> {
|
|
7
8
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/types/user/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/utils/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
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("./try-catch"), exports);
|
|
1
|
+
export * from './try-catch';
|
package/dist/utils/try-catch.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.tryCatch = void 0;
|
|
13
1
|
// Main wrapper function
|
|
14
|
-
function tryCatch(promise) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
});
|
|
2
|
+
export async function tryCatch(promise) {
|
|
3
|
+
try {
|
|
4
|
+
const data = await promise;
|
|
5
|
+
return { data, error: null };
|
|
6
|
+
}
|
|
7
|
+
catch (error) {
|
|
8
|
+
return { data: null, error: error };
|
|
9
|
+
}
|
|
24
10
|
}
|
|
25
|
-
exports.tryCatch = tryCatch;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "commonjs",
|
|
3
2
|
"name": "lancer-shared",
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.168",
|
|
5
4
|
"description": "This package contains shared stuff.",
|
|
6
5
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"main": "
|
|
6
|
+
"main": "dist/bundle.cjs.js",
|
|
7
|
+
"module": "dist/bundle.esm.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/index.js",
|
|
10
10
|
"dist/index.d.ts",
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
18
|
-
"prepublishOnly": "
|
|
19
|
-
"build": "
|
|
18
|
+
"prepublishOnly": "npm run build",
|
|
19
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
20
|
+
"dev": "rollup -c -w --bundleConfigAsCjs"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [],
|
|
22
23
|
"author": "MVP Masters",
|
|
@@ -24,12 +25,16 @@
|
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"lodash": "4.17.21",
|
|
26
27
|
"slugify": "1.6.6",
|
|
27
|
-
"zod": "
|
|
28
|
+
"zod": "3.24.2"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/lodash": "4.17.1",
|
|
31
32
|
"@types/multer": "1.4.12",
|
|
32
33
|
"@types/node": "22.5.2",
|
|
34
|
+
"rollup": "4.38.0",
|
|
35
|
+
"rollup-plugin-typescript2": "0.36.0",
|
|
36
|
+
"rollup-watch": "4.3.1",
|
|
37
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
33
38
|
"typescript": "5.4.5"
|
|
34
39
|
}
|
|
35
|
-
}
|
|
40
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
-
exports.accountStatusOrder = [
|
|
5
|
-
'verification_required',
|
|
6
|
-
'shadow_banned',
|
|
7
|
-
'healthy',
|
|
8
|
-
'banned',
|
|
9
|
-
'suspended',
|
|
10
|
-
];
|
|
11
|
-
exports.accountStatusDisplayMap = {
|
|
12
|
-
verification_required: 'Verification Required',
|
|
13
|
-
shadow_banned: 'Shadow Banned',
|
|
14
|
-
healthy: 'Healthy',
|
|
15
|
-
banned: 'Banned',
|
|
16
|
-
suspended: 'Suspended',
|
|
17
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emptyKnowledgeObject = exports.CLIENT_HISTORY = exports.EXPERIENCE_LEVELS = exports.CATEGORIES = void 0;
|
|
4
|
-
exports.CATEGORIES = [
|
|
5
|
-
'Accounting',
|
|
6
|
-
'Business Analysis & Strategy',
|
|
7
|
-
'Financial Analysis & Modeling',
|
|
8
|
-
'HR Administration',
|
|
9
|
-
'Management Consulting',
|
|
10
|
-
'Tax Preparation',
|
|
11
|
-
'Data Entry',
|
|
12
|
-
'Personal/Virtual Assistance',
|
|
13
|
-
'Project Management',
|
|
14
|
-
'Research',
|
|
15
|
-
'Customer Service',
|
|
16
|
-
'Technical Support',
|
|
17
|
-
'Data Analytics',
|
|
18
|
-
'Data Processing',
|
|
19
|
-
'Data Engineering',
|
|
20
|
-
'Machine Learning',
|
|
21
|
-
'AI Development',
|
|
22
|
-
'Art & Illustration',
|
|
23
|
-
'Audio Production',
|
|
24
|
-
'Brand Design',
|
|
25
|
-
'Logo Design',
|
|
26
|
-
'Graphics Design',
|
|
27
|
-
'Video Production',
|
|
28
|
-
'Voice Acting',
|
|
29
|
-
'Architecture',
|
|
30
|
-
'Chemical Engineering',
|
|
31
|
-
'Civil Engineering',
|
|
32
|
-
'Electrical Engineering',
|
|
33
|
-
'Interior Design',
|
|
34
|
-
'Mechanical Engineering',
|
|
35
|
-
'Database Administration',
|
|
36
|
-
'Information Security',
|
|
37
|
-
'Network Administration',
|
|
38
|
-
'Systems Administration',
|
|
39
|
-
'DevOps Engineering',
|
|
40
|
-
'Business Law',
|
|
41
|
-
'Immigration Law',
|
|
42
|
-
'Tax Law',
|
|
43
|
-
'Regulatory Law',
|
|
44
|
-
'Paralegal Services',
|
|
45
|
-
'Digital Marketing',
|
|
46
|
-
'Lead Generation',
|
|
47
|
-
'Marketing Strategy',
|
|
48
|
-
'Social Media Marketing',
|
|
49
|
-
'SEO',
|
|
50
|
-
'Language Translation',
|
|
51
|
-
'Legal Translation',
|
|
52
|
-
'Technical Translation',
|
|
53
|
-
'Medical Translation',
|
|
54
|
-
'Desktop Development',
|
|
55
|
-
'Mobile Development',
|
|
56
|
-
'Web Development',
|
|
57
|
-
'Game Development',
|
|
58
|
-
'QA & Testing',
|
|
59
|
-
'Content Writing',
|
|
60
|
-
'Copywriting',
|
|
61
|
-
'Technical Writing',
|
|
62
|
-
'Creative Writing',
|
|
63
|
-
'Editing',
|
|
64
|
-
];
|
|
65
|
-
exports.EXPERIENCE_LEVELS = ['Entry Level', 'Mid Level', 'Senior Level'];
|
|
66
|
-
exports.CLIENT_HISTORY = ['No hires', '1-9 hires', '10+ hires'];
|
|
67
|
-
// Default knowledge object with all null values
|
|
68
|
-
exports.emptyKnowledgeObject = {
|
|
69
|
-
categories: exports.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: null })), {}),
|
|
70
|
-
experienceLevels: exports.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: null })), {}),
|
|
71
|
-
minHourlyRate: null,
|
|
72
|
-
fixedPriceMin: null,
|
|
73
|
-
clientHistory: exports.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: null })), {}),
|
|
74
|
-
keywords: [],
|
|
75
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const managerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
3
|
-
export declare const managerAccountSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
6
|
-
email: z.ZodString;
|
|
7
|
-
password: z.ZodString;
|
|
8
|
-
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
9
|
-
proxy: z.ZodString;
|
|
10
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
11
|
-
verified: z.ZodBoolean;
|
|
12
|
-
isActive: z.ZodBoolean;
|
|
13
|
-
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
14
|
-
lastUsed: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
createdAt: z.ZodNumber;
|
|
16
|
-
updatedAt: z.ZodNumber;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
id: string;
|
|
19
|
-
email: string;
|
|
20
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
21
|
-
createdAt: number;
|
|
22
|
-
updatedAt: number;
|
|
23
|
-
cookies: any[] | null;
|
|
24
|
-
password: string;
|
|
25
|
-
isActive: boolean;
|
|
26
|
-
provider: "user_provided" | "lancer_provided";
|
|
27
|
-
proxy: string;
|
|
28
|
-
verified: boolean;
|
|
29
|
-
assignedOrganizations: string[];
|
|
30
|
-
lastUsed: number | null;
|
|
31
|
-
}, {
|
|
32
|
-
id: string;
|
|
33
|
-
email: string;
|
|
34
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
35
|
-
createdAt: number;
|
|
36
|
-
updatedAt: number;
|
|
37
|
-
cookies: any[] | null;
|
|
38
|
-
password: string;
|
|
39
|
-
isActive: boolean;
|
|
40
|
-
provider: "user_provided" | "lancer_provided";
|
|
41
|
-
proxy: string;
|
|
42
|
-
verified: boolean;
|
|
43
|
-
assignedOrganizations: string[];
|
|
44
|
-
lastUsed: number | null;
|
|
45
|
-
}>;
|
|
46
|
-
export declare const createManagerAccountSchema: z.ZodObject<Pick<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
49
|
-
email: z.ZodString;
|
|
50
|
-
password: z.ZodString;
|
|
51
|
-
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
52
|
-
proxy: z.ZodString;
|
|
53
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
54
|
-
verified: z.ZodBoolean;
|
|
55
|
-
isActive: z.ZodBoolean;
|
|
56
|
-
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
57
|
-
lastUsed: z.ZodNullable<z.ZodNumber>;
|
|
58
|
-
createdAt: z.ZodNumber;
|
|
59
|
-
updatedAt: z.ZodNumber;
|
|
60
|
-
}, "email" | "status" | "password" | "isActive" | "provider" | "proxy" | "verified">, "strip", z.ZodTypeAny, {
|
|
61
|
-
email: string;
|
|
62
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
63
|
-
password: string;
|
|
64
|
-
isActive: boolean;
|
|
65
|
-
provider: "user_provided" | "lancer_provided";
|
|
66
|
-
proxy: string;
|
|
67
|
-
verified: boolean;
|
|
68
|
-
}, {
|
|
69
|
-
email: string;
|
|
70
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
71
|
-
password: string;
|
|
72
|
-
isActive: boolean;
|
|
73
|
-
provider: "user_provided" | "lancer_provided";
|
|
74
|
-
proxy: string;
|
|
75
|
-
verified: boolean;
|
|
76
|
-
}>;
|
|
77
|
-
export declare const updateManagerAccountSchema: z.ZodObject<{
|
|
78
|
-
email: z.ZodOptional<z.ZodString>;
|
|
79
|
-
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
80
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
81
|
-
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
82
|
-
cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
83
|
-
password: z.ZodOptional<z.ZodString>;
|
|
84
|
-
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
provider: z.ZodOptional<z.ZodEnum<["user_provided", "lancer_provided"]>>;
|
|
86
|
-
proxy: z.ZodOptional<z.ZodString>;
|
|
87
|
-
verified: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
89
|
-
lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
email?: string | undefined;
|
|
92
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
93
|
-
createdAt?: number | undefined;
|
|
94
|
-
updatedAt?: number | undefined;
|
|
95
|
-
cookies?: any[] | null | undefined;
|
|
96
|
-
password?: string | undefined;
|
|
97
|
-
isActive?: boolean | undefined;
|
|
98
|
-
provider?: "user_provided" | "lancer_provided" | undefined;
|
|
99
|
-
proxy?: string | undefined;
|
|
100
|
-
verified?: boolean | undefined;
|
|
101
|
-
assignedOrganizations?: string[] | undefined;
|
|
102
|
-
lastUsed?: number | null | undefined;
|
|
103
|
-
}, {
|
|
104
|
-
email?: string | undefined;
|
|
105
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
106
|
-
createdAt?: number | undefined;
|
|
107
|
-
updatedAt?: number | undefined;
|
|
108
|
-
cookies?: any[] | null | undefined;
|
|
109
|
-
password?: string | undefined;
|
|
110
|
-
isActive?: boolean | undefined;
|
|
111
|
-
provider?: "user_provided" | "lancer_provided" | undefined;
|
|
112
|
-
proxy?: string | undefined;
|
|
113
|
-
verified?: boolean | undefined;
|
|
114
|
-
assignedOrganizations?: string[] | undefined;
|
|
115
|
-
lastUsed?: number | null | undefined;
|
|
116
|
-
}>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateManagerAccountSchema = exports.createManagerAccountSchema = exports.managerAccountSchema = exports.managerAccountProvider = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const account_status_1 = require("./account-status");
|
|
6
|
-
exports.managerAccountProvider = zod_1.z.enum([
|
|
7
|
-
'user_provided',
|
|
8
|
-
'lancer_provided',
|
|
9
|
-
]);
|
|
10
|
-
exports.managerAccountSchema = zod_1.z.object({
|
|
11
|
-
id: zod_1.z.string(),
|
|
12
|
-
provider: exports.managerAccountProvider,
|
|
13
|
-
email: zod_1.z.string().email(),
|
|
14
|
-
password: zod_1.z.string(),
|
|
15
|
-
cookies: zod_1.z.array(zod_1.z.any()).nullable(),
|
|
16
|
-
proxy: zod_1.z.string(),
|
|
17
|
-
status: account_status_1.accountStatusSchema,
|
|
18
|
-
verified: zod_1.z.boolean(),
|
|
19
|
-
isActive: zod_1.z.boolean(),
|
|
20
|
-
assignedOrganizations: zod_1.z.array(zod_1.z.string()),
|
|
21
|
-
lastUsed: zod_1.z.number().nullable(),
|
|
22
|
-
createdAt: zod_1.z.number(),
|
|
23
|
-
updatedAt: zod_1.z.number(),
|
|
24
|
-
});
|
|
25
|
-
exports.createManagerAccountSchema = exports.managerAccountSchema.pick({
|
|
26
|
-
email: true,
|
|
27
|
-
password: true,
|
|
28
|
-
provider: true,
|
|
29
|
-
proxy: true,
|
|
30
|
-
status: true,
|
|
31
|
-
verified: true,
|
|
32
|
-
isActive: true,
|
|
33
|
-
});
|
|
34
|
-
exports.updateManagerAccountSchema = exports.managerAccountSchema
|
|
35
|
-
.omit({
|
|
36
|
-
id: true,
|
|
37
|
-
})
|
|
38
|
-
.partial();
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const aiConfigSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
suitabilityPrompt: z.ZodOptional<z.ZodString>;
|
|
5
|
-
proposalPrompt: z.ZodOptional<z.ZodString>;
|
|
6
|
-
questionProposalPrompt: z.ZodOptional<z.ZodString>;
|
|
7
|
-
knowledgeBase: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
id: string;
|
|
10
|
-
suitabilityPrompt?: string | undefined;
|
|
11
|
-
proposalPrompt?: string | undefined;
|
|
12
|
-
questionProposalPrompt?: string | undefined;
|
|
13
|
-
knowledgeBase?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
suitabilityPrompt?: string | undefined;
|
|
17
|
-
proposalPrompt?: string | undefined;
|
|
18
|
-
questionProposalPrompt?: string | undefined;
|
|
19
|
-
knowledgeBase?: string | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const updateAiConfigSchema: z.ZodObject<{
|
|
22
|
-
id: z.ZodOptional<z.ZodString>;
|
|
23
|
-
suitabilityPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
24
|
-
proposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
25
|
-
questionProposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
26
|
-
knowledgeBase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
id?: string | undefined;
|
|
29
|
-
suitabilityPrompt?: string | undefined;
|
|
30
|
-
proposalPrompt?: string | undefined;
|
|
31
|
-
questionProposalPrompt?: string | undefined;
|
|
32
|
-
knowledgeBase?: string | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
id?: string | undefined;
|
|
35
|
-
suitabilityPrompt?: string | undefined;
|
|
36
|
-
proposalPrompt?: string | undefined;
|
|
37
|
-
questionProposalPrompt?: string | undefined;
|
|
38
|
-
knowledgeBase?: string | undefined;
|
|
39
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateAiConfigSchema = exports.aiConfigSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.aiConfigSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string(),
|
|
7
|
-
suitabilityPrompt: zod_1.z.string().optional(),
|
|
8
|
-
proposalPrompt: zod_1.z.string().optional(),
|
|
9
|
-
questionProposalPrompt: zod_1.z.string().optional(),
|
|
10
|
-
knowledgeBase: zod_1.z.string().optional(),
|
|
11
|
-
});
|
|
12
|
-
exports.updateAiConfigSchema = exports.aiConfigSchema.partial();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ai-config';
|