lancer-shared 1.2.28 → 1.2.30
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
CHANGED
|
@@ -6418,88 +6418,88 @@ var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);
|
|
|
6418
6418
|
|
|
6419
6419
|
const ROUTES = {
|
|
6420
6420
|
AUTH: {
|
|
6421
|
-
BASE:
|
|
6422
|
-
REGISTER:
|
|
6421
|
+
BASE: "auth",
|
|
6422
|
+
REGISTER: "auth/register",
|
|
6423
6423
|
},
|
|
6424
6424
|
SYSTEM: {
|
|
6425
|
-
BASE:
|
|
6425
|
+
BASE: "system",
|
|
6426
6426
|
PROMPTS: {
|
|
6427
|
-
BASE:
|
|
6427
|
+
BASE: "system/prompts",
|
|
6428
6428
|
},
|
|
6429
6429
|
},
|
|
6430
6430
|
EVENTS: {
|
|
6431
|
-
BASE:
|
|
6431
|
+
BASE: "events",
|
|
6432
6432
|
BY_ID: (id) => `events/${id}`,
|
|
6433
6433
|
},
|
|
6434
6434
|
JOBS: {
|
|
6435
|
-
BASE:
|
|
6435
|
+
BASE: "jobs",
|
|
6436
6436
|
BY_ID: (id) => `jobs/${id}`,
|
|
6437
6437
|
UPDATE_ACTIVITY: `jobs/update-activity`,
|
|
6438
|
-
IMPORT:
|
|
6439
|
-
FILTER_OPTIONS:
|
|
6440
|
-
TOTAL_JOBS:
|
|
6438
|
+
IMPORT: "jobs/import",
|
|
6439
|
+
FILTER_OPTIONS: "jobs/filter-options",
|
|
6440
|
+
TOTAL_JOBS: "jobs/total-jobs",
|
|
6441
6441
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
6442
6442
|
},
|
|
6443
6443
|
USERS: {
|
|
6444
|
-
BASE:
|
|
6444
|
+
BASE: "users",
|
|
6445
6445
|
BY_ID: (id) => `users/${id}`,
|
|
6446
6446
|
ORGANIZATIONS: (id) => `users/${id}/organizations`,
|
|
6447
6447
|
},
|
|
6448
6448
|
COOKIES: {
|
|
6449
|
-
BASE:
|
|
6450
|
-
SCRAPE:
|
|
6449
|
+
BASE: "cookies",
|
|
6450
|
+
SCRAPE: "cookies/scrape-cookies",
|
|
6451
6451
|
},
|
|
6452
6452
|
SCRAPING: {
|
|
6453
|
-
BASE:
|
|
6454
|
-
START_SCRAPING:
|
|
6455
|
-
START_WORLDWIDE_SCRAPING:
|
|
6456
|
-
START_US_SCRAPING:
|
|
6457
|
-
START_UK_SCRAPING:
|
|
6458
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
6459
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
6460
|
-
UPDATE_ACTIVITY_4H_US:
|
|
6461
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
6462
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
6463
|
-
UPDATE_ACTIVITY_24H_US:
|
|
6464
|
-
SCRAPE_FEED_WORLDWIDE:
|
|
6465
|
-
SCRAPE_FEED_UK:
|
|
6466
|
-
SCRAPE_FEED_US:
|
|
6467
|
-
SCRAPE_JOB:
|
|
6468
|
-
SCRAPE_JOB_ACTIVITY:
|
|
6469
|
-
USER_PROFILE:
|
|
6470
|
-
CHECK_LEAD_STATUS:
|
|
6453
|
+
BASE: "scraping",
|
|
6454
|
+
START_SCRAPING: "scraping/start",
|
|
6455
|
+
START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
|
|
6456
|
+
START_US_SCRAPING: "scraping/start-us",
|
|
6457
|
+
START_UK_SCRAPING: "scraping/start-uk",
|
|
6458
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
|
|
6459
|
+
UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
|
|
6460
|
+
UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
|
|
6461
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
|
|
6462
|
+
UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
|
|
6463
|
+
UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
|
|
6464
|
+
SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
|
|
6465
|
+
SCRAPE_FEED_UK: "scraping/feed-uk",
|
|
6466
|
+
SCRAPE_FEED_US: "scraping/feed-us",
|
|
6467
|
+
SCRAPE_JOB: "scraping/job",
|
|
6468
|
+
SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
|
|
6469
|
+
USER_PROFILE: "scraping/user-profile",
|
|
6470
|
+
CHECK_LEAD_STATUS: "scraping/check-lead-status",
|
|
6471
6471
|
},
|
|
6472
6472
|
ADMIN: {
|
|
6473
|
-
BASE:
|
|
6473
|
+
BASE: "admin",
|
|
6474
6474
|
BIDDER_ACCOUNTS: {
|
|
6475
|
-
BASE:
|
|
6475
|
+
BASE: "admin/bidder-accounts",
|
|
6476
6476
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
6477
6477
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
6478
6478
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
6479
6479
|
},
|
|
6480
6480
|
SCRAPER_ACCOUNTS: {
|
|
6481
|
-
BASE:
|
|
6481
|
+
BASE: "admin/scraper-accounts",
|
|
6482
6482
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
6483
6483
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
6484
6484
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
6485
6485
|
},
|
|
6486
6486
|
PROXIES: {
|
|
6487
|
-
BASE:
|
|
6487
|
+
BASE: "admin/proxies",
|
|
6488
6488
|
BY_ID: (id) => `admin/proxies/${id}`,
|
|
6489
6489
|
REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
|
|
6490
|
-
SYNC:
|
|
6491
|
-
AVAILABLE_REPLACEMENTS:
|
|
6490
|
+
SYNC: "admin/proxies/sync",
|
|
6491
|
+
AVAILABLE_REPLACEMENTS: "admin/proxies/available-replacements",
|
|
6492
6492
|
},
|
|
6493
6493
|
DASHBOARD: {
|
|
6494
|
-
CAMPAIGN_STATS:
|
|
6494
|
+
CAMPAIGN_STATS: "admin/dashboard/campaign-stats",
|
|
6495
6495
|
},
|
|
6496
6496
|
},
|
|
6497
6497
|
BID: {
|
|
6498
|
-
BASE:
|
|
6498
|
+
BASE: "bid",
|
|
6499
6499
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
6500
6500
|
},
|
|
6501
6501
|
ORGANIZATIONS: {
|
|
6502
|
-
BASE:
|
|
6502
|
+
BASE: "organizations",
|
|
6503
6503
|
BY_ID: (id) => `organizations/${id}`,
|
|
6504
6504
|
ONBOARDING: (id) => `organizations/${id}/onboarding/progress`,
|
|
6505
6505
|
AI_CONFIG: (id) => `organizations/${id}/settings/ai-config`,
|
|
@@ -6561,26 +6561,26 @@ const ROUTES = {
|
|
|
6561
6561
|
USAGE_SUMMARIES: {
|
|
6562
6562
|
DAILY: {
|
|
6563
6563
|
BASE: (organizationId) => `usage-summaries/${organizationId}/daily`,
|
|
6564
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format(
|
|
6564
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/daily/${moment(date).format("YYYY-MM-DD")}`,
|
|
6565
6565
|
},
|
|
6566
6566
|
WEEKLY: {
|
|
6567
6567
|
BASE: (organizationId) => `usage-summaries/${organizationId}/weekly`,
|
|
6568
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format(
|
|
6568
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/weekly/${moment(date).format("YYYY-WW")}`,
|
|
6569
6569
|
},
|
|
6570
6570
|
MONTHLY: {
|
|
6571
6571
|
BASE: (organizationId) => `usage-summaries/${organizationId}/monthly`,
|
|
6572
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format(
|
|
6572
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/monthly/${moment(date).format("YYYY-MM")}`,
|
|
6573
6573
|
},
|
|
6574
6574
|
QUARTERLY: {
|
|
6575
6575
|
BASE: (organizationId) => `usage-summaries/${organizationId}/quarterly`,
|
|
6576
6576
|
BY_DATE: (organizationId, date) => {
|
|
6577
6577
|
const parsed = moment(date);
|
|
6578
|
-
return `usage-summaries/${organizationId}/quarterly/${parsed.format(
|
|
6578
|
+
return `usage-summaries/${organizationId}/quarterly/${parsed.format("YYYY")}-Q${parsed.quarter()}`;
|
|
6579
6579
|
},
|
|
6580
6580
|
},
|
|
6581
6581
|
YEARLY: {
|
|
6582
6582
|
BASE: (organizationId) => `usage-summaries/${organizationId}/yearly`,
|
|
6583
|
-
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format(
|
|
6583
|
+
BY_DATE: (organizationId, date) => `usage-summaries/${organizationId}/yearly/${moment(date).format("YYYY")}`,
|
|
6584
6584
|
},
|
|
6585
6585
|
},
|
|
6586
6586
|
INVOICES: {
|
|
@@ -6594,18 +6594,20 @@ const ROUTES = {
|
|
|
6594
6594
|
INVOICE_PREVIEW: (id) => `organizations/${id}/invoice-preview`,
|
|
6595
6595
|
},
|
|
6596
6596
|
TRANSACTIONS: {
|
|
6597
|
-
BASE:
|
|
6597
|
+
BASE: "transactions",
|
|
6598
6598
|
BY_ID: (id) => `transactions/${id}`,
|
|
6599
6599
|
},
|
|
6600
6600
|
AGENT: {
|
|
6601
|
-
BASE:
|
|
6602
|
-
SCRAPE_UPWORK_PROFILE:
|
|
6603
|
-
GENERATE_DEFAULT_AI_CONFIG:
|
|
6604
|
-
TEST_AI_CONFIG: 'agent/test-ai-config',
|
|
6605
|
-
|
|
6601
|
+
BASE: "agent",
|
|
6602
|
+
SCRAPE_UPWORK_PROFILE: "agent/scrape-upwork-profile",
|
|
6603
|
+
GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config",
|
|
6604
|
+
// TEST_AI_CONFIG: 'agent/test-ai-config',
|
|
6605
|
+
TEST_SUITABILITY: "agent/test-suitability",
|
|
6606
|
+
TEST_PROPOSAL: "agent/test-proposal",
|
|
6607
|
+
TEST_SYSTEM_PROMPTS: "agent/test-system-prompts",
|
|
6606
6608
|
},
|
|
6607
6609
|
PLANS: {
|
|
6608
|
-
BASE:
|
|
6610
|
+
BASE: "plans",
|
|
6609
6611
|
BY_ID: (id) => `plans/${id}`,
|
|
6610
6612
|
},
|
|
6611
6613
|
NOTIFICATIONS: {
|
|
@@ -6627,7 +6629,7 @@ const buildRoute = (route, params = {}) => {
|
|
|
6627
6629
|
};
|
|
6628
6630
|
// Helper function to get route without admin prefix
|
|
6629
6631
|
const getRouteWithoutAdminPrefix = (route) => {
|
|
6630
|
-
return route.replace(
|
|
6632
|
+
return route.replace("admin/", "");
|
|
6631
6633
|
};
|
|
6632
6634
|
|
|
6633
6635
|
const accountStatusOrder = [
|
|
@@ -12268,11 +12270,11 @@ const organizationMemberSchema = objectType({
|
|
|
12268
12270
|
});
|
|
12269
12271
|
|
|
12270
12272
|
const onboardingProgressSchema = z.object({
|
|
12271
|
-
profileSetup: z.
|
|
12272
|
-
campaignCreated: z.
|
|
12273
|
-
filtersAdded: z.
|
|
12274
|
-
rulesConfigured: z.
|
|
12275
|
-
automationEnabled: z.
|
|
12273
|
+
profileSetup: z.boolean(),
|
|
12274
|
+
campaignCreated: z.boolean(),
|
|
12275
|
+
filtersAdded: z.boolean(),
|
|
12276
|
+
rulesConfigured: z.boolean(),
|
|
12277
|
+
automationEnabled: z.boolean(),
|
|
12276
12278
|
});
|
|
12277
12279
|
|
|
12278
12280
|
const organizationTypeSchema = z.enum(["agency", "freelancer"]);
|
|
@@ -12309,11 +12311,18 @@ const trackUsagePayloadSchema = objectType({
|
|
|
12309
12311
|
event: usageEventTypeEnum,
|
|
12310
12312
|
campaignId: stringType().nullish(),
|
|
12311
12313
|
});
|
|
12314
|
+
const questionRulesSchema = objectType({
|
|
12315
|
+
question: stringType(),
|
|
12316
|
+
answer: stringType(),
|
|
12317
|
+
category: stringType(),
|
|
12318
|
+
});
|
|
12312
12319
|
const aiConfigSchema = objectType({
|
|
12313
12320
|
suitabilityRules: stringType().nullable(),
|
|
12314
12321
|
coverLetterRules: stringType().nullable(),
|
|
12315
12322
|
coverLetterTemplate: stringType().nullable(),
|
|
12316
|
-
questionRules:
|
|
12323
|
+
questionRules: arrayType(questionRulesSchema).nullable(),
|
|
12324
|
+
approvedSuitabilityJobs: numberType().nullable(),
|
|
12325
|
+
approvedProposalJobs: numberType().nullable(),
|
|
12317
12326
|
});
|
|
12318
12327
|
const notificationConfigSchema = objectType({
|
|
12319
12328
|
emailEnabled: booleanType(),
|
|
@@ -12327,6 +12336,7 @@ const organizationSettingsSchema = objectType({
|
|
|
12327
12336
|
const subscribePayloadSchema = objectType({
|
|
12328
12337
|
planId: stringType().min(1, "Plan id is required."),
|
|
12329
12338
|
paymentMethodId: stringType().min(1, "Payment method is required."),
|
|
12339
|
+
toltReferral: stringType().optional(),
|
|
12330
12340
|
});
|
|
12331
12341
|
|
|
12332
12342
|
const systemPromptSchema = objectType({
|
|
@@ -13047,7 +13057,6 @@ const portfolioSchema = objectType({
|
|
|
13047
13057
|
title: stringType(),
|
|
13048
13058
|
description: stringType(),
|
|
13049
13059
|
skills: arrayType(stringType()),
|
|
13050
|
-
publishedDate: stringType(),
|
|
13051
13060
|
});
|
|
13052
13061
|
const upworkProfileSchema = objectType({
|
|
13053
13062
|
name: stringType().nullable(),
|
|
@@ -13717,6 +13726,7 @@ exports.proxyStatusSchema = proxyStatusSchema;
|
|
|
13717
13726
|
exports.puppeteerConnectionErrorException = puppeteerConnectionErrorException;
|
|
13718
13727
|
exports.questionAnswerPairSchema = questionAnswerPairSchema;
|
|
13719
13728
|
exports.questionPairNotMatchingException = questionPairNotMatchingException;
|
|
13729
|
+
exports.questionRulesSchema = questionRulesSchema;
|
|
13720
13730
|
exports.regionEnum = regionEnum;
|
|
13721
13731
|
exports.regionMapping = regionMapping;
|
|
13722
13732
|
exports.regionSchema = regionSchema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Moment } from
|
|
1
|
+
import { Moment } from "moment";
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -181,7 +181,8 @@ export declare const ROUTES: {
|
|
|
181
181
|
readonly BASE: "agent";
|
|
182
182
|
readonly SCRAPE_UPWORK_PROFILE: "agent/scrape-upwork-profile";
|
|
183
183
|
readonly GENERATE_DEFAULT_AI_CONFIG: "agent/generate-ai-config";
|
|
184
|
-
readonly
|
|
184
|
+
readonly TEST_SUITABILITY: "agent/test-suitability";
|
|
185
|
+
readonly TEST_PROPOSAL: "agent/test-proposal";
|
|
185
186
|
readonly TEST_SYSTEM_PROMPTS: "agent/test-system-prompts";
|
|
186
187
|
};
|
|
187
188
|
readonly PLANS: {
|
|
@@ -452,21 +452,61 @@ export declare const trackUsagePayloadSchema: z.ZodObject<{
|
|
|
452
452
|
event: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
|
|
453
453
|
campaignId?: string | null | undefined;
|
|
454
454
|
}>;
|
|
455
|
+
export declare const questionRulesSchema: z.ZodObject<{
|
|
456
|
+
question: z.ZodString;
|
|
457
|
+
answer: z.ZodString;
|
|
458
|
+
category: z.ZodString;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
question: string;
|
|
461
|
+
answer: string;
|
|
462
|
+
category: string;
|
|
463
|
+
}, {
|
|
464
|
+
question: string;
|
|
465
|
+
answer: string;
|
|
466
|
+
category: string;
|
|
467
|
+
}>;
|
|
468
|
+
export type QuestionRules = z.infer<typeof questionRulesSchema>;
|
|
455
469
|
export declare const aiConfigSchema: z.ZodObject<{
|
|
456
470
|
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
457
471
|
coverLetterRules: z.ZodNullable<z.ZodString>;
|
|
458
472
|
coverLetterTemplate: z.ZodNullable<z.ZodString>;
|
|
459
|
-
questionRules: z.ZodNullable<z.
|
|
473
|
+
questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
474
|
+
question: z.ZodString;
|
|
475
|
+
answer: z.ZodString;
|
|
476
|
+
category: z.ZodString;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
question: string;
|
|
479
|
+
answer: string;
|
|
480
|
+
category: string;
|
|
481
|
+
}, {
|
|
482
|
+
question: string;
|
|
483
|
+
answer: string;
|
|
484
|
+
category: string;
|
|
485
|
+
}>, "many">>;
|
|
486
|
+
approvedSuitabilityJobs: z.ZodNullable<z.ZodNumber>;
|
|
487
|
+
approvedProposalJobs: z.ZodNullable<z.ZodNumber>;
|
|
460
488
|
}, "strip", z.ZodTypeAny, {
|
|
461
489
|
suitabilityRules: string | null;
|
|
462
490
|
coverLetterRules: string | null;
|
|
463
491
|
coverLetterTemplate: string | null;
|
|
464
|
-
questionRules:
|
|
492
|
+
questionRules: {
|
|
493
|
+
question: string;
|
|
494
|
+
answer: string;
|
|
495
|
+
category: string;
|
|
496
|
+
}[] | null;
|
|
497
|
+
approvedSuitabilityJobs: number | null;
|
|
498
|
+
approvedProposalJobs: number | null;
|
|
465
499
|
}, {
|
|
466
500
|
suitabilityRules: string | null;
|
|
467
501
|
coverLetterRules: string | null;
|
|
468
502
|
coverLetterTemplate: string | null;
|
|
469
|
-
questionRules:
|
|
503
|
+
questionRules: {
|
|
504
|
+
question: string;
|
|
505
|
+
answer: string;
|
|
506
|
+
category: string;
|
|
507
|
+
}[] | null;
|
|
508
|
+
approvedSuitabilityJobs: number | null;
|
|
509
|
+
approvedProposalJobs: number | null;
|
|
470
510
|
}>;
|
|
471
511
|
export declare const notificationConfigSchema: z.ZodObject<{
|
|
472
512
|
emailEnabled: z.ZodBoolean;
|
|
@@ -486,17 +526,43 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
486
526
|
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
487
527
|
coverLetterRules: z.ZodNullable<z.ZodString>;
|
|
488
528
|
coverLetterTemplate: z.ZodNullable<z.ZodString>;
|
|
489
|
-
questionRules: z.ZodNullable<z.
|
|
529
|
+
questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
530
|
+
question: z.ZodString;
|
|
531
|
+
answer: z.ZodString;
|
|
532
|
+
category: z.ZodString;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
question: string;
|
|
535
|
+
answer: string;
|
|
536
|
+
category: string;
|
|
537
|
+
}, {
|
|
538
|
+
question: string;
|
|
539
|
+
answer: string;
|
|
540
|
+
category: string;
|
|
541
|
+
}>, "many">>;
|
|
542
|
+
approvedSuitabilityJobs: z.ZodNullable<z.ZodNumber>;
|
|
543
|
+
approvedProposalJobs: z.ZodNullable<z.ZodNumber>;
|
|
490
544
|
}, "strip", z.ZodTypeAny, {
|
|
491
545
|
suitabilityRules: string | null;
|
|
492
546
|
coverLetterRules: string | null;
|
|
493
547
|
coverLetterTemplate: string | null;
|
|
494
|
-
questionRules:
|
|
548
|
+
questionRules: {
|
|
549
|
+
question: string;
|
|
550
|
+
answer: string;
|
|
551
|
+
category: string;
|
|
552
|
+
}[] | null;
|
|
553
|
+
approvedSuitabilityJobs: number | null;
|
|
554
|
+
approvedProposalJobs: number | null;
|
|
495
555
|
}, {
|
|
496
556
|
suitabilityRules: string | null;
|
|
497
557
|
coverLetterRules: string | null;
|
|
498
558
|
coverLetterTemplate: string | null;
|
|
499
|
-
questionRules:
|
|
559
|
+
questionRules: {
|
|
560
|
+
question: string;
|
|
561
|
+
answer: string;
|
|
562
|
+
category: string;
|
|
563
|
+
}[] | null;
|
|
564
|
+
approvedSuitabilityJobs: number | null;
|
|
565
|
+
approvedProposalJobs: number | null;
|
|
500
566
|
}>;
|
|
501
567
|
notifications: z.ZodObject<{
|
|
502
568
|
emailEnabled: z.ZodBoolean;
|
|
@@ -516,7 +582,13 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
516
582
|
suitabilityRules: string | null;
|
|
517
583
|
coverLetterRules: string | null;
|
|
518
584
|
coverLetterTemplate: string | null;
|
|
519
|
-
questionRules:
|
|
585
|
+
questionRules: {
|
|
586
|
+
question: string;
|
|
587
|
+
answer: string;
|
|
588
|
+
category: string;
|
|
589
|
+
}[] | null;
|
|
590
|
+
approvedSuitabilityJobs: number | null;
|
|
591
|
+
approvedProposalJobs: number | null;
|
|
520
592
|
};
|
|
521
593
|
notifications: {
|
|
522
594
|
emailEnabled: boolean;
|
|
@@ -528,7 +600,13 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
528
600
|
suitabilityRules: string | null;
|
|
529
601
|
coverLetterRules: string | null;
|
|
530
602
|
coverLetterTemplate: string | null;
|
|
531
|
-
questionRules:
|
|
603
|
+
questionRules: {
|
|
604
|
+
question: string;
|
|
605
|
+
answer: string;
|
|
606
|
+
category: string;
|
|
607
|
+
}[] | null;
|
|
608
|
+
approvedSuitabilityJobs: number | null;
|
|
609
|
+
approvedProposalJobs: number | null;
|
|
532
610
|
};
|
|
533
611
|
notifications: {
|
|
534
612
|
emailEnabled: boolean;
|
|
@@ -539,12 +617,15 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
539
617
|
export declare const subscribePayloadSchema: z.ZodObject<{
|
|
540
618
|
planId: z.ZodString;
|
|
541
619
|
paymentMethodId: z.ZodString;
|
|
620
|
+
toltReferral: z.ZodOptional<z.ZodString>;
|
|
542
621
|
}, "strip", z.ZodTypeAny, {
|
|
543
622
|
planId: string;
|
|
544
623
|
paymentMethodId: string;
|
|
624
|
+
toltReferral?: string | undefined;
|
|
545
625
|
}, {
|
|
546
626
|
planId: string;
|
|
547
627
|
paymentMethodId: string;
|
|
628
|
+
toltReferral?: string | undefined;
|
|
548
629
|
}>;
|
|
549
630
|
export interface Organization extends infer<typeof organizationSchema> {
|
|
550
631
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const onboardingProgressSchema: z.ZodObject<{
|
|
3
|
-
profileSetup: z.
|
|
4
|
-
campaignCreated: z.
|
|
5
|
-
filtersAdded: z.
|
|
6
|
-
rulesConfigured: z.
|
|
7
|
-
automationEnabled: z.
|
|
3
|
+
profileSetup: z.ZodBoolean;
|
|
4
|
+
campaignCreated: z.ZodBoolean;
|
|
5
|
+
filtersAdded: z.ZodBoolean;
|
|
6
|
+
rulesConfigured: z.ZodBoolean;
|
|
7
|
+
automationEnabled: z.ZodBoolean;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
profileSetup:
|
|
10
|
-
campaignCreated:
|
|
11
|
-
filtersAdded:
|
|
12
|
-
rulesConfigured:
|
|
13
|
-
automationEnabled:
|
|
9
|
+
profileSetup: boolean;
|
|
10
|
+
campaignCreated: boolean;
|
|
11
|
+
filtersAdded: boolean;
|
|
12
|
+
rulesConfigured: boolean;
|
|
13
|
+
automationEnabled: boolean;
|
|
14
14
|
}, {
|
|
15
|
-
profileSetup:
|
|
16
|
-
campaignCreated:
|
|
17
|
-
filtersAdded:
|
|
18
|
-
rulesConfigured:
|
|
19
|
-
automationEnabled:
|
|
15
|
+
profileSetup: boolean;
|
|
16
|
+
campaignCreated: boolean;
|
|
17
|
+
filtersAdded: boolean;
|
|
18
|
+
rulesConfigured: boolean;
|
|
19
|
+
automationEnabled: boolean;
|
|
20
20
|
}>;
|
|
21
21
|
export type OnboardingProgress = z.infer<typeof onboardingProgressSchema>;
|
|
@@ -16,17 +16,14 @@ export declare const portfolioSchema: import("zod").ZodObject<{
|
|
|
16
16
|
title: import("zod").ZodString;
|
|
17
17
|
description: import("zod").ZodString;
|
|
18
18
|
skills: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
19
|
-
publishedDate: import("zod").ZodString;
|
|
20
19
|
}, "strip", import("zod").ZodTypeAny, {
|
|
21
20
|
description: string;
|
|
22
21
|
title: string;
|
|
23
22
|
skills: string[];
|
|
24
|
-
publishedDate: string;
|
|
25
23
|
}, {
|
|
26
24
|
description: string;
|
|
27
25
|
title: string;
|
|
28
26
|
skills: string[];
|
|
29
|
-
publishedDate: string;
|
|
30
27
|
}>;
|
|
31
28
|
export declare const upworkProfileSchema: import("zod").ZodObject<{
|
|
32
29
|
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -52,17 +49,14 @@ export declare const upworkProfileSchema: import("zod").ZodObject<{
|
|
|
52
49
|
title: import("zod").ZodString;
|
|
53
50
|
description: import("zod").ZodString;
|
|
54
51
|
skills: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
55
|
-
publishedDate: import("zod").ZodString;
|
|
56
52
|
}, "strip", import("zod").ZodTypeAny, {
|
|
57
53
|
description: string;
|
|
58
54
|
title: string;
|
|
59
55
|
skills: string[];
|
|
60
|
-
publishedDate: string;
|
|
61
56
|
}, {
|
|
62
57
|
description: string;
|
|
63
58
|
title: string;
|
|
64
59
|
skills: string[];
|
|
65
|
-
publishedDate: string;
|
|
66
60
|
}>, "many">>;
|
|
67
61
|
}, "strip", import("zod").ZodTypeAny, {
|
|
68
62
|
skills: string[] | null;
|
|
@@ -80,7 +74,6 @@ export declare const upworkProfileSchema: import("zod").ZodObject<{
|
|
|
80
74
|
description: string;
|
|
81
75
|
title: string;
|
|
82
76
|
skills: string[];
|
|
83
|
-
publishedDate: string;
|
|
84
77
|
}[] | null;
|
|
85
78
|
}, {
|
|
86
79
|
skills: string[] | null;
|
|
@@ -98,7 +91,6 @@ export declare const upworkProfileSchema: import("zod").ZodObject<{
|
|
|
98
91
|
description: string;
|
|
99
92
|
title: string;
|
|
100
93
|
skills: string[];
|
|
101
|
-
publishedDate: string;
|
|
102
94
|
}[] | null;
|
|
103
95
|
}>;
|
|
104
96
|
export interface EmploymentHistory extends infer<typeof employmentHistorySchema> {
|