lancer-shared 1.2.16 → 1.2.18
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 +56 -82
- package/dist/constants/routes.d.ts +2 -3
- package/dist/schemas/agent/index.d.ts +0 -11
- package/dist/schemas/logger/log-event.d.ts +4 -4
- package/dist/schemas/organization/index.d.ts +0 -51
- package/dist/schemas/organization/organization.d.ts +22 -118
- package/dist/schemas/scraper/index.d.ts +3 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +2 -2
- package/dist/schemas/scraper/scrape-result.d.ts +0 -123
- package/dist/schemas/scraper/upwork-profile.d.ts +109 -0
- package/dist/schemas/time-filter/index.d.ts +1 -1
- package/dist/schemas/user/index.d.ts +0 -75
- package/package.json +1 -1
- package/dist/constants/collections.js +0 -14
- package/dist/constants/common-questions.js +0 -57
- package/dist/constants/index.js +0 -18
- package/dist/constants/job-filter-options.js +0 -265
- package/dist/constants/job-status.js +0 -21
- package/dist/constants/mappings/countryMapping.js +0 -120
- package/dist/constants/mappings/regionMapping.js +0 -240
- package/dist/constants/routes.js +0 -116
- package/dist/constants/upwork-accounts.js +0 -18
- package/dist/index.js +0 -4
- package/dist/schemas/account/account-status.js +0 -8
- package/dist/schemas/account/bidder-account.js +0 -35
- package/dist/schemas/account/index.js +0 -3
- package/dist/schemas/account/scraper-account.js +0 -34
- package/dist/schemas/ai/ai-config.d.ts +0 -36
- package/dist/schemas/ai/ai-config.js +0 -9
- package/dist/schemas/ai/index.d.ts +0 -3
- package/dist/schemas/ai/index.js +0 -3
- package/dist/schemas/ai/proposal.d.ts +0 -82
- package/dist/schemas/ai/proposal.js +0 -13
- package/dist/schemas/ai/suitability.d.ts +0 -37
- package/dist/schemas/ai/suitability.js +0 -14
- package/dist/schemas/bid/bid-result.js +0 -11
- package/dist/schemas/bid/bid.js +0 -35
- package/dist/schemas/bid/index.js +0 -2
- package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
- package/dist/schemas/campaign/campaign-analytics.js +0 -42
- package/dist/schemas/campaign/campaign-expenses.js +0 -6
- package/dist/schemas/campaign/campaign-insights.js +0 -31
- package/dist/schemas/campaign/campaign-integrations.js +0 -13
- package/dist/schemas/campaign/campaign-job-count.js +0 -3
- package/dist/schemas/campaign/campaign.js +0 -41
- package/dist/schemas/campaign/index.js +0 -7
- package/dist/schemas/chat-message/chat-message.js +0 -10
- package/dist/schemas/chat-message/index.js +0 -1
- package/dist/schemas/config/agency-config.js +0 -7
- package/dist/schemas/config/index.js +0 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/index.js +0 -17
- package/dist/schemas/job-filters/index.js +0 -1
- package/dist/schemas/job-filters/job-filters.js +0 -84
- package/dist/schemas/lead/index.js +0 -173
- package/dist/schemas/lead/lead-note.js +0 -27
- package/dist/schemas/lead/lead-status.js +0 -23
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/logger/index.js +0 -1
- package/dist/schemas/logger/log-event.js +0 -117
- package/dist/schemas/organization/index.js +0 -70
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/organization.js +0 -16
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/proxy/index.js +0 -3
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/proxy/proxy.js +0 -29
- package/dist/schemas/saved-search/index.js +0 -9
- package/dist/schemas/scraper/index.js +0 -2
- package/dist/schemas/scraper/scrape-payload.js +0 -21
- package/dist/schemas/scraper/scrape-result.js +0 -23
- package/dist/schemas/shared.js +0 -19
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/time-filter/index.js +0 -6
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/schemas/user/index.js +0 -52
- package/dist/types/account/account-status.js +0 -1
- package/dist/types/account/bidder-account.js +0 -1
- package/dist/types/account/index.js +0 -3
- package/dist/types/account/scraper-account.js +0 -1
- package/dist/types/ai/ai-config.d.ts +0 -6
- package/dist/types/ai/ai-config.js +0 -1
- package/dist/types/ai/index.d.ts +0 -3
- package/dist/types/ai/index.js +0 -3
- package/dist/types/ai/proposal.d.ts +0 -10
- package/dist/types/ai/proposal.js +0 -1
- package/dist/types/ai/suitability.d.ts +0 -6
- package/dist/types/ai/suitability.js +0 -1
- package/dist/types/bid/bid-result.js +0 -1
- package/dist/types/bid/bid.js +0 -1
- package/dist/types/bid/index.js +0 -2
- package/dist/types/campaign/campaign-analytics.js +0 -1
- package/dist/types/campaign/campaign-expenses.js +0 -1
- package/dist/types/campaign/campaign-insights.js +0 -1
- package/dist/types/campaign/campaign-integrations.js +0 -1
- package/dist/types/campaign/campaign-job-count.js +0 -1
- package/dist/types/campaign/campaign.js +0 -1
- package/dist/types/campaign/index.js +0 -6
- package/dist/types/chat-message/chat-message.js +0 -1
- package/dist/types/chat-message/index.js +0 -1
- package/dist/types/config/agency-config.js +0 -1
- package/dist/types/config/index.js +0 -1
- package/dist/types/index.js +0 -15
- package/dist/types/job/index.js +0 -3
- package/dist/types/job/job-note.js +0 -1
- package/dist/types/job/job-status.js +0 -9
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/job-filters/index.js +0 -1
- package/dist/types/job-filters/job-filters.js +0 -1
- package/dist/types/logger/index.js +0 -1
- package/dist/types/logger/log-event.js +0 -1
- package/dist/types/saved-search/index.js +0 -1
- package/dist/types/scraper/index.js +0 -2
- package/dist/types/scraper/scrape-payload.js +0 -1
- package/dist/types/scraper/scrape-result.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/time-filter/index.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
- package/dist/types/user/index.js +0 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/try-catch.js +0 -10
package/dist/bundle.cjs.js
CHANGED
|
@@ -5398,9 +5398,6 @@ const LogEventTypeEnum = z.enum([
|
|
|
5398
5398
|
"manualLeadEdited",
|
|
5399
5399
|
"leadArchived",
|
|
5400
5400
|
"auditTrailLogged",
|
|
5401
|
-
// Knowledge Base Events
|
|
5402
|
-
"knowledgeBaseGenerationComplete",
|
|
5403
|
-
"knowledgeBaseGenerationFailed",
|
|
5404
5401
|
// Model Chain Events
|
|
5405
5402
|
"modelFailed",
|
|
5406
5403
|
]);
|
|
@@ -5569,23 +5566,12 @@ const trackUsagePayloadSchema = objectType({
|
|
|
5569
5566
|
event: trackUsageEventTypeEnum,
|
|
5570
5567
|
campaignId: stringType().nullish(),
|
|
5571
5568
|
});
|
|
5572
|
-
const aiConfigOldSchema = objectType({
|
|
5573
|
-
id: stringType(),
|
|
5574
|
-
suitabilityPrompt: stringType().nullable(),
|
|
5575
|
-
proposalPrompt: stringType().nullable(),
|
|
5576
|
-
questionProposalPrompt: stringType().nullable(),
|
|
5577
|
-
knowledgeBase: stringType().nullable(),
|
|
5578
|
-
});
|
|
5579
5569
|
const aiConfigSchema = objectType({
|
|
5580
5570
|
suitabilityRules: stringType().nullable(),
|
|
5581
5571
|
coverLetterRules: stringType().nullable(),
|
|
5582
5572
|
coverLetterTemplate: stringType().nullable(),
|
|
5583
5573
|
questionRules: stringType().nullable(),
|
|
5584
5574
|
});
|
|
5585
|
-
const knowledgeBaseSchema = objectType({
|
|
5586
|
-
about: stringType(),
|
|
5587
|
-
caseStudies: stringType(),
|
|
5588
|
-
});
|
|
5589
5575
|
const notificationConfigSchema = objectType({
|
|
5590
5576
|
emailEnabled: booleanType(),
|
|
5591
5577
|
discordWebhookUrl: stringType().nullable(),
|
|
@@ -5593,7 +5579,6 @@ const notificationConfigSchema = objectType({
|
|
|
5593
5579
|
});
|
|
5594
5580
|
const organizationSettingsSchema = objectType({
|
|
5595
5581
|
aiConfig: aiConfigSchema,
|
|
5596
|
-
knowledgeBase: knowledgeBaseSchema,
|
|
5597
5582
|
notifications: notificationConfigSchema,
|
|
5598
5583
|
});
|
|
5599
5584
|
const subscribePayloadSchema = objectType({
|
|
@@ -5626,10 +5611,6 @@ const testSystemPromptsRequestSchema = z.object({
|
|
|
5626
5611
|
aiConfig: aiConfigSchema,
|
|
5627
5612
|
lead: leadSchema,
|
|
5628
5613
|
});
|
|
5629
|
-
const generateKnowledgeBaseRequestSchema = z.object({
|
|
5630
|
-
profileUrl: z.string(),
|
|
5631
|
-
organizationId: z.string(),
|
|
5632
|
-
});
|
|
5633
5614
|
const suitabilityRatingSchema = z.object({
|
|
5634
5615
|
rating: z.number(),
|
|
5635
5616
|
reason: z.string(),
|
|
@@ -6194,7 +6175,7 @@ const scrapePayloadSchema = objectType({
|
|
|
6194
6175
|
username: stringType(),
|
|
6195
6176
|
password: stringType(),
|
|
6196
6177
|
});
|
|
6197
|
-
const
|
|
6178
|
+
const scrapeUserProfileRequestSchema = objectType({
|
|
6198
6179
|
profileUrl: stringType(),
|
|
6199
6180
|
cookies: arrayType(anyType()),
|
|
6200
6181
|
username: stringType(),
|
|
@@ -6215,55 +6196,6 @@ const checkLeadStatusPayloadSchema = objectType({
|
|
|
6215
6196
|
bidder: bidderAccountSchema,
|
|
6216
6197
|
});
|
|
6217
6198
|
|
|
6218
|
-
const userSchema = objectType({
|
|
6219
|
-
id: stringType(),
|
|
6220
|
-
name: stringType(),
|
|
6221
|
-
email: stringType(),
|
|
6222
|
-
organizationIds: z.array(stringType()),
|
|
6223
|
-
createdAt: numberType(),
|
|
6224
|
-
updatedAt: numberType(),
|
|
6225
|
-
});
|
|
6226
|
-
const loginSchema = objectType({
|
|
6227
|
-
email: stringType().email(),
|
|
6228
|
-
password: passwordSchema,
|
|
6229
|
-
});
|
|
6230
|
-
const registerSchema = objectType({
|
|
6231
|
-
name: stringType().min(1, "First name is required").max(255),
|
|
6232
|
-
email: stringType()
|
|
6233
|
-
.email("Must be a valid email address")
|
|
6234
|
-
.max(255)
|
|
6235
|
-
.min(1, "Email address is required"),
|
|
6236
|
-
teamName: stringType().min(1, "Team name is required").max(255),
|
|
6237
|
-
password: passwordSchema,
|
|
6238
|
-
confirmPassword: passwordSchema,
|
|
6239
|
-
}).refine(({ password, confirmPassword }) => password === confirmPassword, {
|
|
6240
|
-
message: `Passwords don't match.`,
|
|
6241
|
-
path: ["confirmPassword"],
|
|
6242
|
-
});
|
|
6243
|
-
const upworkProfileSchema = objectType({
|
|
6244
|
-
name: stringType().nullable(),
|
|
6245
|
-
country: stringType().nullable(),
|
|
6246
|
-
bio: stringType().nullable(),
|
|
6247
|
-
skills: z.array(stringType()).nullable(),
|
|
6248
|
-
certifications: z.array(stringType()).nullable(),
|
|
6249
|
-
employmentHistory: z
|
|
6250
|
-
.array(z.object({
|
|
6251
|
-
jobTitle: stringType(),
|
|
6252
|
-
period: stringType(),
|
|
6253
|
-
description: stringType(),
|
|
6254
|
-
}))
|
|
6255
|
-
.nullable(),
|
|
6256
|
-
languages: z.record(stringType(), stringType()).nullable(),
|
|
6257
|
-
portfolio: z
|
|
6258
|
-
.array(z.object({
|
|
6259
|
-
title: stringType(),
|
|
6260
|
-
description: stringType(),
|
|
6261
|
-
skills: z.array(stringType()),
|
|
6262
|
-
publishedDate: stringType(),
|
|
6263
|
-
}))
|
|
6264
|
-
.nullable(),
|
|
6265
|
-
});
|
|
6266
|
-
|
|
6267
6199
|
const scrapeResultSchema = objectType({
|
|
6268
6200
|
jobs: arrayType(upworkJobSchema),
|
|
6269
6201
|
cookies: arrayType(anyType()),
|
|
@@ -6271,11 +6203,6 @@ const scrapeResultSchema = objectType({
|
|
|
6271
6203
|
usAccountCookies: arrayType(anyType()).optional(),
|
|
6272
6204
|
ukAccountCookies: arrayType(anyType()).optional(),
|
|
6273
6205
|
});
|
|
6274
|
-
const scrapeUserProfileResultSchema = objectType({
|
|
6275
|
-
success: booleanType(),
|
|
6276
|
-
message: stringType(),
|
|
6277
|
-
data: upworkProfileSchema,
|
|
6278
|
-
});
|
|
6279
6206
|
const scrapeFeedResultSchema = objectType({
|
|
6280
6207
|
listings: arrayType(jobListingSchema),
|
|
6281
6208
|
cookies: arrayType(anyType()),
|
|
@@ -6284,9 +6211,33 @@ const scrapeFeedResultSchema = objectType({
|
|
|
6284
6211
|
ukAccountCookies: arrayType(anyType()).optional(),
|
|
6285
6212
|
});
|
|
6286
6213
|
|
|
6214
|
+
const employmentHistorySchema = objectType({
|
|
6215
|
+
jobTitle: stringType(),
|
|
6216
|
+
period: stringType(),
|
|
6217
|
+
description: stringType(),
|
|
6218
|
+
});
|
|
6219
|
+
const portfolioSchema = objectType({
|
|
6220
|
+
title: stringType(),
|
|
6221
|
+
description: stringType(),
|
|
6222
|
+
skills: arrayType(stringType()),
|
|
6223
|
+
publishedDate: stringType(),
|
|
6224
|
+
});
|
|
6225
|
+
const upworkProfileSchema = objectType({
|
|
6226
|
+
name: stringType().nullable(),
|
|
6227
|
+
country: stringType().nullable(),
|
|
6228
|
+
bio: stringType().nullable(),
|
|
6229
|
+
skills: arrayType(stringType()).nullable(),
|
|
6230
|
+
certifications: arrayType(stringType()).nullable(),
|
|
6231
|
+
employmentHistory: arrayType(employmentHistorySchema).nullable(),
|
|
6232
|
+
languages: recordType(stringType(), stringType()).nullable(),
|
|
6233
|
+
portfolio: arrayType(portfolioSchema).nullable(),
|
|
6234
|
+
});
|
|
6235
|
+
|
|
6287
6236
|
const timeFilterSchema = z.union([
|
|
6288
6237
|
z.literal("last_7_days"),
|
|
6289
6238
|
z.literal("last_30_days"),
|
|
6239
|
+
z.literal("last_6_months"),
|
|
6240
|
+
z.literal("last_year"),
|
|
6290
6241
|
z.literal("all_time"),
|
|
6291
6242
|
]);
|
|
6292
6243
|
|
|
@@ -6327,6 +6278,32 @@ const periodUsageSchema = objectType({
|
|
|
6327
6278
|
lastUpdated: numberType(),
|
|
6328
6279
|
});
|
|
6329
6280
|
|
|
6281
|
+
const userSchema = objectType({
|
|
6282
|
+
id: stringType(),
|
|
6283
|
+
name: stringType(),
|
|
6284
|
+
email: stringType(),
|
|
6285
|
+
organizationIds: z.array(stringType()),
|
|
6286
|
+
createdAt: numberType(),
|
|
6287
|
+
updatedAt: numberType(),
|
|
6288
|
+
});
|
|
6289
|
+
const loginSchema = objectType({
|
|
6290
|
+
email: stringType().email(),
|
|
6291
|
+
password: passwordSchema,
|
|
6292
|
+
});
|
|
6293
|
+
const registerSchema = objectType({
|
|
6294
|
+
name: stringType().min(1, "First name is required").max(255),
|
|
6295
|
+
email: stringType()
|
|
6296
|
+
.email("Must be a valid email address")
|
|
6297
|
+
.max(255)
|
|
6298
|
+
.min(1, "Email address is required"),
|
|
6299
|
+
teamName: stringType().min(1, "Team name is required").max(255),
|
|
6300
|
+
password: passwordSchema,
|
|
6301
|
+
confirmPassword: passwordSchema,
|
|
6302
|
+
}).refine(({ password, confirmPassword }) => password === confirmPassword, {
|
|
6303
|
+
message: `Passwords don't match.`,
|
|
6304
|
+
path: ["confirmPassword"],
|
|
6305
|
+
});
|
|
6306
|
+
|
|
6330
6307
|
const commonQuestions = [
|
|
6331
6308
|
{
|
|
6332
6309
|
id: 'similar_experience',
|
|
@@ -12557,7 +12534,7 @@ const ROUTES = {
|
|
|
12557
12534
|
BY_ID: (id) => `organizations/${id}`,
|
|
12558
12535
|
ONBOARDING: (id) => `organizations/${id}/onboarding/progress`,
|
|
12559
12536
|
AI_CONFIG: (id) => `organizations/${id}/settings/ai-config`,
|
|
12560
|
-
|
|
12537
|
+
PROFILE: (id) => `organizations/${id}/profile/data`,
|
|
12561
12538
|
MEMBERS: {
|
|
12562
12539
|
BASE: (id) => `organizations/${id}/members`,
|
|
12563
12540
|
BY_ID: (id, memberId) => `organizations/${id}/members/${memberId}`,
|
|
@@ -12641,8 +12618,7 @@ const ROUTES = {
|
|
|
12641
12618
|
},
|
|
12642
12619
|
AGENT: {
|
|
12643
12620
|
BASE: "agent",
|
|
12644
|
-
|
|
12645
|
-
GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config",
|
|
12621
|
+
SCRAPE_UPWORK_PROFILE: "agent/scrape-upwork-profile",
|
|
12646
12622
|
TEST_AI_CONFIG: "agent/test-ai-config",
|
|
12647
12623
|
TEST_SYSTEM_PROMPTS: "agent/test-system-prompts",
|
|
12648
12624
|
},
|
|
@@ -13042,7 +13018,6 @@ exports.agencyBidProposalDataSchema = agencyBidProposalDataSchema;
|
|
|
13042
13018
|
exports.agentStatusSchema = agentStatusSchema;
|
|
13043
13019
|
exports.agentTaskRequestSchema = agentTaskRequestSchema;
|
|
13044
13020
|
exports.agentTaskResponseSchema = agentTaskResponseSchema;
|
|
13045
|
-
exports.aiConfigOldSchema = aiConfigOldSchema;
|
|
13046
13021
|
exports.aiConfigSchema = aiConfigSchema;
|
|
13047
13022
|
exports.bidConfigSchema = bidConfigSchema;
|
|
13048
13023
|
exports.bidDtoSchema = bidDtoSchema;
|
|
@@ -13088,6 +13063,7 @@ exports.createScraperAccountSchema = createScraperAccountSchema;
|
|
|
13088
13063
|
exports.creditDeductionAmountMap = creditDeductionAmountMap;
|
|
13089
13064
|
exports.dailyUsageSchema = dailyUsageSchema;
|
|
13090
13065
|
exports.dateSchema = dateSchema;
|
|
13066
|
+
exports.employmentHistorySchema = employmentHistorySchema;
|
|
13091
13067
|
exports.engagementTypeEnum = engagementTypeEnum;
|
|
13092
13068
|
exports.englishLevelEnum = englishLevelEnum;
|
|
13093
13069
|
exports.experienceLevelEnum = experienceLevelEnum;
|
|
@@ -13101,7 +13077,6 @@ exports.findLeadsResponseSchema = findLeadsResponseSchema;
|
|
|
13101
13077
|
exports.formatCurrency = formatCurrency;
|
|
13102
13078
|
exports.freelancerBidPayloadSchema = freelancerBidPayloadSchema;
|
|
13103
13079
|
exports.freelancerBidProposalDataSchema = freelancerBidProposalDataSchema;
|
|
13104
|
-
exports.generateKnowledgeBaseRequestSchema = generateKnowledgeBaseRequestSchema;
|
|
13105
13080
|
exports.generateSlug = generateSlug;
|
|
13106
13081
|
exports.getNextStatus = getNextStatus;
|
|
13107
13082
|
exports.getPreviousStatus = getPreviousStatus;
|
|
@@ -13125,7 +13100,6 @@ exports.jobFiltersSchema = jobFiltersSchema;
|
|
|
13125
13100
|
exports.jobListingSchema = jobListingSchema;
|
|
13126
13101
|
exports.jobSkillsSchema = jobSkillsSchema;
|
|
13127
13102
|
exports.jobStatusOrder = jobStatusOrder;
|
|
13128
|
-
exports.knowledgeBaseSchema = knowledgeBaseSchema;
|
|
13129
13103
|
exports.leadResponseSchema = leadResponseSchema;
|
|
13130
13104
|
exports.leadSchema = leadSchema;
|
|
13131
13105
|
exports.leadStatusEventMetadata = leadStatusEventMetadata;
|
|
@@ -13149,6 +13123,7 @@ exports.paymentTypeEnum = paymentTypeEnum;
|
|
|
13149
13123
|
exports.periodUsageSchema = periodUsageSchema;
|
|
13150
13124
|
exports.planSchema = planSchema;
|
|
13151
13125
|
exports.planStripeMetadataSchema = planStripeMetadataSchema;
|
|
13126
|
+
exports.portfolioSchema = portfolioSchema;
|
|
13152
13127
|
exports.projectDurationEnum = projectDurationEnum;
|
|
13153
13128
|
exports.proposalSchema = proposalSchema;
|
|
13154
13129
|
exports.proxyAvailableReplacementsSchema = proxyAvailableReplacementsSchema;
|
|
@@ -13169,8 +13144,7 @@ exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
|
|
|
13169
13144
|
exports.scrapeJobPayloadSchema = scrapeJobPayloadSchema;
|
|
13170
13145
|
exports.scrapePayloadSchema = scrapePayloadSchema;
|
|
13171
13146
|
exports.scrapeResultSchema = scrapeResultSchema;
|
|
13172
|
-
exports.
|
|
13173
|
-
exports.scrapeUserProfileResultSchema = scrapeUserProfileResultSchema;
|
|
13147
|
+
exports.scrapeUserProfileRequestSchema = scrapeUserProfileRequestSchema;
|
|
13174
13148
|
exports.scraperAccountSchema = scraperAccountSchema;
|
|
13175
13149
|
exports.subscribePayloadSchema = subscribePayloadSchema;
|
|
13176
13150
|
exports.subscriptionSchema = subscriptionSchema;
|
|
@@ -86,7 +86,7 @@ export declare const ROUTES: {
|
|
|
86
86
|
readonly BY_ID: (id: string) => string;
|
|
87
87
|
readonly ONBOARDING: (id: string) => string;
|
|
88
88
|
readonly AI_CONFIG: (id: string) => string;
|
|
89
|
-
readonly
|
|
89
|
+
readonly PROFILE: (id: string) => string;
|
|
90
90
|
readonly MEMBERS: {
|
|
91
91
|
readonly BASE: (id: string) => string;
|
|
92
92
|
readonly BY_ID: (id: string, memberId: string) => string;
|
|
@@ -167,8 +167,7 @@ export declare const ROUTES: {
|
|
|
167
167
|
};
|
|
168
168
|
readonly AGENT: {
|
|
169
169
|
readonly BASE: "agent";
|
|
170
|
-
readonly
|
|
171
|
-
readonly GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config";
|
|
170
|
+
readonly SCRAPE_UPWORK_PROFILE: "agent/scrape-upwork-profile";
|
|
172
171
|
readonly TEST_AI_CONFIG: "agent/test-ai-config";
|
|
173
172
|
readonly TEST_SYSTEM_PROMPTS: "agent/test-system-prompts";
|
|
174
173
|
};
|
|
@@ -1772,16 +1772,6 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
|
|
|
1772
1772
|
};
|
|
1773
1773
|
}>;
|
|
1774
1774
|
export type TestSystemPromptsRequest = z.infer<typeof testSystemPromptsRequestSchema>;
|
|
1775
|
-
export declare const generateKnowledgeBaseRequestSchema: z.ZodObject<{
|
|
1776
|
-
profileUrl: z.ZodString;
|
|
1777
|
-
organizationId: z.ZodString;
|
|
1778
|
-
}, "strip", z.ZodTypeAny, {
|
|
1779
|
-
organizationId: string;
|
|
1780
|
-
profileUrl: string;
|
|
1781
|
-
}, {
|
|
1782
|
-
organizationId: string;
|
|
1783
|
-
profileUrl: string;
|
|
1784
|
-
}>;
|
|
1785
1775
|
export declare const suitabilityRatingSchema: z.ZodObject<{
|
|
1786
1776
|
rating: z.ZodNumber;
|
|
1787
1777
|
reason: z.ZodString;
|
|
@@ -2029,6 +2019,5 @@ export declare const testSystemPromptsResponseSchema: z.ZodObject<{
|
|
|
2029
2019
|
export type TestSystemPromptsResponse = z.infer<typeof testSystemPromptsResponseSchema>;
|
|
2030
2020
|
export type AgentTaskResponse = z.infer<typeof agentTaskResponseSchema>;
|
|
2031
2021
|
export type AgentTaskRequest = z.infer<typeof agentTaskRequestSchema>;
|
|
2032
|
-
export type GenerateKnowledgeBaseRequest = z.infer<typeof generateKnowledgeBaseRequestSchema>;
|
|
2033
2022
|
export type SuitabilityRating = z.infer<typeof suitabilityRatingSchema>;
|
|
2034
2023
|
export type Proposal = z.infer<typeof proposalSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "
|
|
2
|
+
export declare const LogEventTypeEnum: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "modelFailed"]>;
|
|
3
3
|
export declare const logEventSchema: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "
|
|
4
|
+
type: z.ZodEnum<["scraperStarted", "scraperCompleted", "jobScraped", "jobScrapeFailed", "jobsIndexed", "jobDuplicateSkipped", "scraperFailed", "jobActivityScraped", "jobActivityScrapeFailed", "leadStatusChecked", "leadStatusCheckFailed", "leadStatusUpdated", "feedScrapeStarted", "feedScrapeCompleted", "feedScrapeFailed", "jobListingScraped", "jobSyncPublished", "jobSyncReceived", "leadsCreatedAndSynced", "suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "manualSuitabilityAnalyzed", "proposalProcessing", "proposalComplete", "proposalFailed", "manualProposalGenerated", "biddingProcessing", "biddingComplete", "biddingFailed", "biddingSkipped", "biddingPending", "biddingRetry", "biddingInsufficientConnects", "biddingWarningAlert", "errorLogged", "cloudTaskRetry", "manualLeadEdited", "leadArchived", "auditTrailLogged", "modelFailed"]>;
|
|
5
5
|
source: z.ZodString;
|
|
6
6
|
resourceType: z.ZodDefault<z.ZodString>;
|
|
7
7
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
@@ -13,7 +13,7 @@ export declare const logEventSchema: z.ZodObject<{
|
|
|
13
13
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
14
|
timestamp: z.ZodNumber;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "
|
|
16
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "modelFailed";
|
|
17
17
|
source: string;
|
|
18
18
|
resourceType: string;
|
|
19
19
|
resourceId: string | null;
|
|
@@ -25,7 +25,7 @@ export declare const logEventSchema: z.ZodObject<{
|
|
|
25
25
|
metadata: Record<string, unknown> | null;
|
|
26
26
|
timestamp: number;
|
|
27
27
|
}, {
|
|
28
|
-
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "
|
|
28
|
+
type: "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobScrapeFailed" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobActivityScraped" | "jobActivityScrapeFailed" | "leadStatusChecked" | "leadStatusCheckFailed" | "leadStatusUpdated" | "feedScrapeStarted" | "feedScrapeCompleted" | "feedScrapeFailed" | "jobListingScraped" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "manualSuitabilityAnalyzed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "manualProposalGenerated" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "biddingSkipped" | "biddingPending" | "biddingRetry" | "biddingInsufficientConnects" | "biddingWarningAlert" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged" | "modelFailed";
|
|
29
29
|
source: string;
|
|
30
30
|
resourceId: string | null;
|
|
31
31
|
organizationId: string | null;
|
|
@@ -432,25 +432,6 @@ export declare const trackUsagePayloadSchema: z.ZodObject<{
|
|
|
432
432
|
event: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
|
|
433
433
|
campaignId?: string | null | undefined;
|
|
434
434
|
}>;
|
|
435
|
-
export declare const aiConfigOldSchema: z.ZodObject<{
|
|
436
|
-
id: z.ZodString;
|
|
437
|
-
suitabilityPrompt: z.ZodNullable<z.ZodString>;
|
|
438
|
-
proposalPrompt: z.ZodNullable<z.ZodString>;
|
|
439
|
-
questionProposalPrompt: z.ZodNullable<z.ZodString>;
|
|
440
|
-
knowledgeBase: z.ZodNullable<z.ZodString>;
|
|
441
|
-
}, "strip", z.ZodTypeAny, {
|
|
442
|
-
id: string;
|
|
443
|
-
suitabilityPrompt: string | null;
|
|
444
|
-
proposalPrompt: string | null;
|
|
445
|
-
questionProposalPrompt: string | null;
|
|
446
|
-
knowledgeBase: string | null;
|
|
447
|
-
}, {
|
|
448
|
-
id: string;
|
|
449
|
-
suitabilityPrompt: string | null;
|
|
450
|
-
proposalPrompt: string | null;
|
|
451
|
-
questionProposalPrompt: string | null;
|
|
452
|
-
knowledgeBase: string | null;
|
|
453
|
-
}>;
|
|
454
435
|
export declare const aiConfigSchema: z.ZodObject<{
|
|
455
436
|
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
456
437
|
coverLetterRules: z.ZodNullable<z.ZodString>;
|
|
@@ -467,16 +448,6 @@ export declare const aiConfigSchema: z.ZodObject<{
|
|
|
467
448
|
coverLetterTemplate: string | null;
|
|
468
449
|
questionRules: string | null;
|
|
469
450
|
}>;
|
|
470
|
-
export declare const knowledgeBaseSchema: z.ZodObject<{
|
|
471
|
-
about: z.ZodString;
|
|
472
|
-
caseStudies: z.ZodString;
|
|
473
|
-
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
about: string;
|
|
475
|
-
caseStudies: string;
|
|
476
|
-
}, {
|
|
477
|
-
about: string;
|
|
478
|
-
caseStudies: string;
|
|
479
|
-
}>;
|
|
480
451
|
export declare const notificationConfigSchema: z.ZodObject<{
|
|
481
452
|
emailEnabled: z.ZodBoolean;
|
|
482
453
|
discordWebhookUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -507,16 +478,6 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
507
478
|
coverLetterTemplate: string | null;
|
|
508
479
|
questionRules: string | null;
|
|
509
480
|
}>;
|
|
510
|
-
knowledgeBase: z.ZodObject<{
|
|
511
|
-
about: z.ZodString;
|
|
512
|
-
caseStudies: z.ZodString;
|
|
513
|
-
}, "strip", z.ZodTypeAny, {
|
|
514
|
-
about: string;
|
|
515
|
-
caseStudies: string;
|
|
516
|
-
}, {
|
|
517
|
-
about: string;
|
|
518
|
-
caseStudies: string;
|
|
519
|
-
}>;
|
|
520
481
|
notifications: z.ZodObject<{
|
|
521
482
|
emailEnabled: z.ZodBoolean;
|
|
522
483
|
discordWebhookUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -531,10 +492,6 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
531
492
|
slackWebhookUrl: string | null;
|
|
532
493
|
}>;
|
|
533
494
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
knowledgeBase: {
|
|
535
|
-
about: string;
|
|
536
|
-
caseStudies: string;
|
|
537
|
-
};
|
|
538
495
|
aiConfig: {
|
|
539
496
|
suitabilityRules: string | null;
|
|
540
497
|
coverLetterRules: string | null;
|
|
@@ -547,10 +504,6 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
547
504
|
slackWebhookUrl: string | null;
|
|
548
505
|
};
|
|
549
506
|
}, {
|
|
550
|
-
knowledgeBase: {
|
|
551
|
-
about: string;
|
|
552
|
-
caseStudies: string;
|
|
553
|
-
};
|
|
554
507
|
aiConfig: {
|
|
555
508
|
suitabilityRules: string | null;
|
|
556
509
|
coverLetterRules: string | null;
|
|
@@ -579,12 +532,8 @@ export interface Organization extends infer<typeof organizationSchema> {
|
|
|
579
532
|
export type TrackUsageEventType = z.infer<typeof trackUsageEventTypeEnum>;
|
|
580
533
|
export interface TrackUsagePayloadSchema extends infer<typeof trackUsagePayloadSchema> {
|
|
581
534
|
}
|
|
582
|
-
export interface AiConfigOld extends infer<typeof aiConfigOldSchema> {
|
|
583
|
-
}
|
|
584
535
|
export interface AiConfig extends infer<typeof aiConfigSchema> {
|
|
585
536
|
}
|
|
586
|
-
export interface KnowledgeBase extends infer<typeof knowledgeBaseSchema> {
|
|
587
|
-
}
|
|
588
537
|
export interface NotificationConfig extends infer<typeof notificationConfigSchema> {
|
|
589
538
|
}
|
|
590
539
|
export interface OrganizationSettings extends infer<typeof organizationSettingsSchema> {
|
|
@@ -6,13 +6,13 @@ export declare const bidConfigSchema: z.ZodObject<{
|
|
|
6
6
|
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
agencyName: string | null;
|
|
9
|
-
bidderId: string | null;
|
|
10
9
|
contractorName: string | null;
|
|
10
|
+
bidderId: string | null;
|
|
11
11
|
specialisedProfile: string | null;
|
|
12
12
|
}, {
|
|
13
13
|
agencyName: string | null;
|
|
14
|
-
bidderId: string | null;
|
|
15
14
|
contractorName: string | null;
|
|
15
|
+
bidderId: string | null;
|
|
16
16
|
specialisedProfile: string | null;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
@@ -27,149 +27,54 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
27
27
|
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
agencyName: string | null;
|
|
30
|
-
bidderId: string | null;
|
|
31
30
|
contractorName: string | null;
|
|
31
|
+
bidderId: string | null;
|
|
32
32
|
specialisedProfile: string | null;
|
|
33
33
|
}, {
|
|
34
34
|
agencyName: string | null;
|
|
35
|
-
bidderId: string | null;
|
|
36
35
|
contractorName: string | null;
|
|
36
|
+
bidderId: string | null;
|
|
37
37
|
specialisedProfile: string | null;
|
|
38
38
|
}>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
limits: z.ZodNullable<z.ZodObject<{
|
|
42
|
-
monthlyCredits: z.ZodNumber;
|
|
43
|
-
usedCredits: z.ZodNumber;
|
|
44
|
-
extraCredits: z.ZodNumber;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
monthlyCredits: number;
|
|
47
|
-
usedCredits: number;
|
|
48
|
-
extraCredits: number;
|
|
49
|
-
}, {
|
|
50
|
-
monthlyCredits: number;
|
|
51
|
-
usedCredits: number;
|
|
52
|
-
extraCredits: number;
|
|
53
|
-
}>>;
|
|
54
|
-
billing: z.ZodNullable<z.ZodObject<{
|
|
55
|
-
stripeCustomerId: z.ZodString;
|
|
56
|
-
savedCard: z.ZodBoolean;
|
|
57
|
-
creditsRemaining: z.ZodNumber;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
stripeCustomerId: string;
|
|
60
|
-
savedCard: boolean;
|
|
61
|
-
creditsRemaining: number;
|
|
62
|
-
}, {
|
|
63
|
-
stripeCustomerId: string;
|
|
64
|
-
savedCard: boolean;
|
|
65
|
-
creditsRemaining: number;
|
|
66
|
-
}>>;
|
|
67
|
-
subscription: z.ZodNullable<z.ZodObject<{
|
|
68
|
-
tierId: z.ZodString;
|
|
69
|
-
status: z.ZodEnum<["active", "trialing", "cancelled", "paused"]>;
|
|
70
|
-
creditsRemaining: z.ZodNumber;
|
|
71
|
-
startedAt: z.ZodNumber;
|
|
72
|
-
currentPeriodEnd: z.ZodNumber;
|
|
73
|
-
stripeSubscriptionId: z.ZodString;
|
|
74
|
-
source: z.ZodEnum<["stripe", "manual"]>;
|
|
75
|
-
}, "strip", z.ZodTypeAny, {
|
|
76
|
-
status: "active" | "trialing" | "cancelled" | "paused";
|
|
77
|
-
creditsRemaining: number;
|
|
78
|
-
tierId: string;
|
|
79
|
-
startedAt: number;
|
|
80
|
-
currentPeriodEnd: number;
|
|
81
|
-
stripeSubscriptionId: string;
|
|
82
|
-
source: "stripe" | "manual";
|
|
83
|
-
}, {
|
|
84
|
-
status: "active" | "trialing" | "cancelled" | "paused";
|
|
85
|
-
creditsRemaining: number;
|
|
86
|
-
tierId: string;
|
|
87
|
-
startedAt: number;
|
|
88
|
-
currentPeriodEnd: number;
|
|
89
|
-
stripeSubscriptionId: string;
|
|
90
|
-
source: "stripe" | "manual";
|
|
91
|
-
}>>;
|
|
92
|
-
createdAt: z.ZodNumber;
|
|
93
|
-
updatedAt: z.ZodNumber;
|
|
39
|
+
createdAt: z.ZodDate;
|
|
40
|
+
updatedAt: z.ZodDate;
|
|
94
41
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
type: "agency" | "freelancer";
|
|
96
42
|
id: string;
|
|
43
|
+
type: "agency" | "freelancer";
|
|
44
|
+
createdAt: Date;
|
|
45
|
+
updatedAt: Date;
|
|
97
46
|
name: string;
|
|
98
47
|
bidConfig: {
|
|
99
48
|
agencyName: string | null;
|
|
100
|
-
bidderId: string | null;
|
|
101
49
|
contractorName: string | null;
|
|
50
|
+
bidderId: string | null;
|
|
102
51
|
specialisedProfile: string | null;
|
|
103
52
|
};
|
|
104
|
-
tierId: "free" | "premium";
|
|
105
|
-
active: boolean;
|
|
106
|
-
limits: {
|
|
107
|
-
monthlyCredits: number;
|
|
108
|
-
usedCredits: number;
|
|
109
|
-
extraCredits: number;
|
|
110
|
-
} | null;
|
|
111
|
-
billing: {
|
|
112
|
-
stripeCustomerId: string;
|
|
113
|
-
savedCard: boolean;
|
|
114
|
-
creditsRemaining: number;
|
|
115
|
-
} | null;
|
|
116
|
-
subscription: {
|
|
117
|
-
status: "active" | "trialing" | "cancelled" | "paused";
|
|
118
|
-
creditsRemaining: number;
|
|
119
|
-
tierId: string;
|
|
120
|
-
startedAt: number;
|
|
121
|
-
currentPeriodEnd: number;
|
|
122
|
-
stripeSubscriptionId: string;
|
|
123
|
-
source: "stripe" | "manual";
|
|
124
|
-
} | null;
|
|
125
|
-
createdAt: number;
|
|
126
|
-
updatedAt: number;
|
|
127
53
|
}, {
|
|
128
|
-
type: "agency" | "freelancer";
|
|
129
54
|
id: string;
|
|
55
|
+
type: "agency" | "freelancer";
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
130
58
|
name: string;
|
|
131
59
|
bidConfig: {
|
|
132
60
|
agencyName: string | null;
|
|
133
|
-
bidderId: string | null;
|
|
134
61
|
contractorName: string | null;
|
|
62
|
+
bidderId: string | null;
|
|
135
63
|
specialisedProfile: string | null;
|
|
136
64
|
};
|
|
137
|
-
tierId: "free" | "premium";
|
|
138
|
-
active: boolean;
|
|
139
|
-
limits: {
|
|
140
|
-
monthlyCredits: number;
|
|
141
|
-
usedCredits: number;
|
|
142
|
-
extraCredits: number;
|
|
143
|
-
} | null;
|
|
144
|
-
billing: {
|
|
145
|
-
stripeCustomerId: string;
|
|
146
|
-
savedCard: boolean;
|
|
147
|
-
creditsRemaining: number;
|
|
148
|
-
} | null;
|
|
149
|
-
subscription: {
|
|
150
|
-
status: "active" | "trialing" | "cancelled" | "paused";
|
|
151
|
-
creditsRemaining: number;
|
|
152
|
-
tierId: string;
|
|
153
|
-
startedAt: number;
|
|
154
|
-
currentPeriodEnd: number;
|
|
155
|
-
stripeSubscriptionId: string;
|
|
156
|
-
source: "stripe" | "manual";
|
|
157
|
-
} | null;
|
|
158
|
-
createdAt: number;
|
|
159
|
-
updatedAt: number;
|
|
160
65
|
}>;
|
|
161
66
|
export declare const aiConfigSchema: z.ZodObject<{
|
|
162
67
|
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
163
|
-
|
|
68
|
+
coverLetterRules: z.ZodNullable<z.ZodString>;
|
|
164
69
|
questionRules: z.ZodNullable<z.ZodString>;
|
|
165
70
|
}, "strip", z.ZodTypeAny, {
|
|
166
71
|
suitabilityRules: string | null;
|
|
167
|
-
proposalRules: string | null;
|
|
168
72
|
questionRules: string | null;
|
|
73
|
+
coverLetterRules: string | null;
|
|
169
74
|
}, {
|
|
170
75
|
suitabilityRules: string | null;
|
|
171
|
-
proposalRules: string | null;
|
|
172
76
|
questionRules: string | null;
|
|
77
|
+
coverLetterRules: string | null;
|
|
173
78
|
}>;
|
|
174
79
|
export declare const knowledgeBaseSchema: z.ZodObject<{
|
|
175
80
|
about: z.ZodString;
|
|
@@ -184,16 +89,16 @@ export declare const knowledgeBaseSchema: z.ZodObject<{
|
|
|
184
89
|
export declare const organizationSettingsSchema: z.ZodObject<{
|
|
185
90
|
aiConfig: z.ZodObject<{
|
|
186
91
|
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
187
|
-
|
|
92
|
+
coverLetterRules: z.ZodNullable<z.ZodString>;
|
|
188
93
|
questionRules: z.ZodNullable<z.ZodString>;
|
|
189
94
|
}, "strip", z.ZodTypeAny, {
|
|
190
95
|
suitabilityRules: string | null;
|
|
191
|
-
proposalRules: string | null;
|
|
192
96
|
questionRules: string | null;
|
|
97
|
+
coverLetterRules: string | null;
|
|
193
98
|
}, {
|
|
194
99
|
suitabilityRules: string | null;
|
|
195
|
-
proposalRules: string | null;
|
|
196
100
|
questionRules: string | null;
|
|
101
|
+
coverLetterRules: string | null;
|
|
197
102
|
}>;
|
|
198
103
|
knowledgeBase: z.ZodObject<{
|
|
199
104
|
about: z.ZodString;
|
|
@@ -208,8 +113,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
208
113
|
}, "strip", z.ZodTypeAny, {
|
|
209
114
|
aiConfig: {
|
|
210
115
|
suitabilityRules: string | null;
|
|
211
|
-
proposalRules: string | null;
|
|
212
116
|
questionRules: string | null;
|
|
117
|
+
coverLetterRules: string | null;
|
|
213
118
|
};
|
|
214
119
|
knowledgeBase: {
|
|
215
120
|
about: string;
|
|
@@ -218,8 +123,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
218
123
|
}, {
|
|
219
124
|
aiConfig: {
|
|
220
125
|
suitabilityRules: string | null;
|
|
221
|
-
proposalRules: string | null;
|
|
222
126
|
questionRules: string | null;
|
|
127
|
+
coverLetterRules: string | null;
|
|
223
128
|
};
|
|
224
129
|
knowledgeBase: {
|
|
225
130
|
about: string;
|
|
@@ -237,4 +142,3 @@ export interface OrganizationSettings extends z.infer<typeof organizationSetting
|
|
|
237
142
|
export interface BidConfig extends z.infer<typeof bidConfigSchema> {
|
|
238
143
|
}
|
|
239
144
|
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
240
|
-
export * from "./subscription";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./scrape-payload";
|
|
2
|
+
export * from "./scrape-result";
|
|
3
|
+
export * from "./upwork-profile";
|