lancer-shared 1.2.93 → 1.2.95
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 +7 -7
- package/dist/schemas/agent/index.d.ts +10 -15
- package/dist/schemas/campaign/campaign-analytics.d.ts +18 -27
- package/dist/schemas/campaign/campaign.d.ts +25 -28
- package/dist/schemas/scraper/scrape-payload.d.ts +47 -25
- package/package.json +1 -1
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/constants/collections.d.ts +0 -13
- package/dist/constants/collections.js +0 -16
- package/dist/constants/common-questions.js +0 -60
- package/dist/constants/index.js +0 -40
- package/dist/constants/job-filter-options.js +0 -268
- package/dist/constants/job-status.js +0 -26
- package/dist/constants/mappings/countryMapping.js +0 -122
- package/dist/constants/mappings/regionMapping.js +0 -242
- package/dist/constants/organization.d.ts +0 -2
- package/dist/constants/proxies.d.ts +0 -4
- package/dist/constants/routes.js +0 -114
- package/dist/constants/upwork-accounts.js +0 -21
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/index.js +0 -20
- package/dist/schemas/account/account-status.js +0 -11
- package/dist/schemas/account/bidder-account.js +0 -37
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
- package/dist/schemas/account/index.js +0 -19
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/account/scraper-account.js +0 -37
- package/dist/schemas/ai/ai-config.d.ts +0 -36
- package/dist/schemas/ai/ai-config.js +0 -12
- package/dist/schemas/ai/index.d.ts +0 -3
- package/dist/schemas/ai/index.js +0 -19
- package/dist/schemas/ai/proposal.d.ts +0 -82
- package/dist/schemas/ai/proposal.js +0 -16
- package/dist/schemas/ai/suitability.d.ts +0 -37
- package/dist/schemas/ai/suitability.js +0 -17
- 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-result.js +0 -15
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/bid/bid.js +0 -36
- package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
- package/dist/schemas/bid/index.js +0 -18
- 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/campaign/campaign-ai-metrics.js +0 -9
- package/dist/schemas/campaign/campaign-analytics.js +0 -41
- package/dist/schemas/campaign/campaign-expenses.js +0 -9
- package/dist/schemas/campaign/campaign-insights.js +0 -31
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -82
- package/dist/schemas/campaign/campaign-integrations.js +0 -16
- package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
- package/dist/schemas/campaign/campaign-job-count.js +0 -6
- package/dist/schemas/campaign/campaign.js +0 -44
- package/dist/schemas/campaign/index.js +0 -23
- package/dist/schemas/chat-message/chat-message.d.ts +0 -31
- package/dist/schemas/chat-message/chat-message.js +0 -13
- package/dist/schemas/chat-message/index.d.ts +0 -1
- package/dist/schemas/chat-message/index.js +0 -17
- package/dist/schemas/config/agency-config.d.ts +0 -17
- package/dist/schemas/config/agency-config.js +0 -10
- package/dist/schemas/config/index.d.ts +0 -1
- package/dist/schemas/config/index.js +0 -17
- package/dist/schemas/index.js +0 -32
- 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/job-filters/index.d.ts +0 -1
- package/dist/schemas/job-filters/index.js +0 -17
- package/dist/schemas/job-filters/job-filters.d.ts +0 -241
- package/dist/schemas/job-filters/job-filters.js +0 -87
- 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/index.js +0 -19
- package/dist/schemas/lead/lead-note.d.ts +0 -83
- package/dist/schemas/lead/lead-note.js +0 -30
- package/dist/schemas/lead/lead-status.js +0 -26
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/lead/nuxt.d.ts +0 -1664
- package/dist/schemas/logger/index.js +0 -17
- package/dist/schemas/logger/log-event.js +0 -66
- package/dist/schemas/organization/index.js +0 -17
- package/dist/schemas/organization/organization.d.ts +0 -70
- package/dist/schemas/organization/organization.js +0 -19
- package/dist/schemas/proxy/index.js +0 -17
- package/dist/schemas/proxy/proxy.js +0 -23
- package/dist/schemas/saved-search/index.js +0 -12
- package/dist/schemas/scraper/index.js +0 -18
- package/dist/schemas/scraper/scrape-payload.js +0 -16
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/schemas/scraper/scrape-result.js +0 -23
- package/dist/schemas/shared.js +0 -16
- package/dist/schemas/time-filter/index.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/schemas/user/index.js +0 -55
- package/dist/types/account/account-status.d.ts +0 -3
- package/dist/types/account/account-status.js +0 -2
- package/dist/types/account/bidder-account.d.ts +0 -7
- package/dist/types/account/bidder-account.js +0 -2
- package/dist/types/account/index.d.ts +0 -3
- package/dist/types/account/index.js +0 -19
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/account/scraper-account.d.ts +0 -5
- package/dist/types/account/scraper-account.js +0 -2
- package/dist/types/ai/ai-config.d.ts +0 -6
- package/dist/types/ai/ai-config.js +0 -2
- package/dist/types/ai/index.d.ts +0 -3
- package/dist/types/ai/index.js +0 -19
- package/dist/types/ai/proposal.d.ts +0 -10
- package/dist/types/ai/proposal.js +0 -2
- package/dist/types/ai/suitability.d.ts +0 -6
- package/dist/types/ai/suitability.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-result.d.ts +0 -5
- package/dist/types/bid/bid-result.js +0 -2
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- package/dist/types/bid/bid.d.ts +0 -9
- package/dist/types/bid/bid.js +0 -2
- package/dist/types/bid/index.d.ts +0 -2
- package/dist/types/bid/index.js +0 -18
- 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/campaign/campaign-analytics.d.ts +0 -7
- package/dist/types/campaign/campaign-analytics.js +0 -2
- package/dist/types/campaign/campaign-expenses.d.ts +0 -3
- package/dist/types/campaign/campaign-expenses.js +0 -2
- package/dist/types/campaign/campaign-insights.js +0 -2
- package/dist/types/campaign/campaign-integrations.d.ts +0 -6
- package/dist/types/campaign/campaign-integrations.js +0 -2
- package/dist/types/campaign/campaign-job-count.d.ts +0 -4
- package/dist/types/campaign/campaign-job-count.js +0 -2
- package/dist/types/campaign/campaign.js +0 -2
- package/dist/types/campaign/index.js +0 -22
- package/dist/types/chat-message/chat-message.d.ts +0 -4
- package/dist/types/chat-message/chat-message.js +0 -2
- package/dist/types/chat-message/index.d.ts +0 -1
- package/dist/types/chat-message/index.js +0 -17
- package/dist/types/config/agency-config.d.ts +0 -4
- package/dist/types/config/agency-config.js +0 -2
- package/dist/types/config/index.d.ts +0 -1
- package/dist/types/config/index.js +0 -17
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.js +0 -29
- package/dist/types/job/index.d.ts +0 -48
- package/dist/types/job/index.js +0 -19
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job-note.d.ts +0 -10
- package/dist/types/job/job-note.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-status.d.ts +0 -5
- package/dist/types/job/job-status.js +0 -12
- 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/job/nuxt.d.ts +0 -4
- package/dist/types/job-filters/index.d.ts +0 -1
- package/dist/types/job-filters/index.js +0 -17
- package/dist/types/job-filters/job-filters.d.ts +0 -4
- package/dist/types/job-filters/job-filters.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/logger/index.d.ts +0 -1
- package/dist/types/logger/index.js +0 -17
- package/dist/types/logger/log-event.js +0 -2
- package/dist/types/saved-search/index.d.ts +0 -6
- package/dist/types/saved-search/index.js +0 -2
- package/dist/types/scraper/index.d.ts +0 -2
- package/dist/types/scraper/index.js +0 -18
- package/dist/types/scraper/scrape-payload.d.ts +0 -10
- package/dist/types/scraper/scrape-payload.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/scraper/scrape-result.d.ts +0 -8
- package/dist/types/scraper/scrape-result.js +0 -2
- package/dist/types/shared.d.ts +0 -8
- package/dist/types/time-filter/index.d.ts +0 -3
- package/dist/types/time-filter/index.js +0 -2
- package/dist/types/transaction/index.d.ts +0 -4
- 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
- package/dist/types/usage/index.d.ts +0 -6
- package/dist/types/user/index.d.ts +0 -15
- package/dist/types/user/index.js +0 -2
- package/dist/utils/index.js +0 -17
- package/dist/utils/try-catch.js +0 -25
package/dist/bundle.cjs.js
CHANGED
|
@@ -12444,10 +12444,10 @@ const bidConfigSchema = z.object({
|
|
|
12444
12444
|
specialisedProfile: z.string().nullable(),
|
|
12445
12445
|
});
|
|
12446
12446
|
const campaignStatusSchema = z.union([
|
|
12447
|
-
z.literal(
|
|
12448
|
-
z.literal(
|
|
12449
|
-
z.literal(
|
|
12450
|
-
z.literal(
|
|
12447
|
+
z.literal("active"),
|
|
12448
|
+
z.literal("draft"),
|
|
12449
|
+
z.literal("paused"),
|
|
12450
|
+
z.literal("error"),
|
|
12451
12451
|
]);
|
|
12452
12452
|
const campaignSchema = z.object({
|
|
12453
12453
|
id: z.string(),
|
|
@@ -12472,9 +12472,9 @@ const campaignSchema = z.object({
|
|
|
12472
12472
|
priority: z.number().nullable(),
|
|
12473
12473
|
});
|
|
12474
12474
|
const upworkAccountConnectStatusSchema = z.union([
|
|
12475
|
-
z.literal(
|
|
12476
|
-
z.literal(
|
|
12477
|
-
z.literal(
|
|
12475
|
+
z.literal("processing"),
|
|
12476
|
+
z.literal("connected"),
|
|
12477
|
+
z.literal("failed"),
|
|
12478
12478
|
]);
|
|
12479
12479
|
const upworkAccountConnectSchema = z.object({
|
|
12480
12480
|
status: upworkAccountConnectStatusSchema.nullable(),
|
|
@@ -329,9 +329,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
329
329
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
330
330
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
331
331
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
332
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
333
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
335
334
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
336
335
|
organizationId: string;
|
|
337
336
|
campaignId: string;
|
|
@@ -441,9 +440,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
441
440
|
boostingAmount: number | null;
|
|
442
441
|
biddingTaskScheduled: boolean | null;
|
|
443
442
|
scheduledBiddingTime: number | null;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
rejectedFeedback: string | null;
|
|
443
|
+
biddingTaskId: string | null;
|
|
444
|
+
doNotApplyReason: string | null;
|
|
447
445
|
activity?: Partial<Record<"4h" | "24h", {
|
|
448
446
|
proposals: {
|
|
449
447
|
min: number | null;
|
|
@@ -575,9 +573,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
575
573
|
boostingAmount: number | null;
|
|
576
574
|
biddingTaskScheduled: boolean | null;
|
|
577
575
|
scheduledBiddingTime: number | null;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
rejectedFeedback: string | null;
|
|
576
|
+
biddingTaskId: string | null;
|
|
577
|
+
doNotApplyReason: string | null;
|
|
581
578
|
activity?: Partial<Record<"4h" | "24h", {
|
|
582
579
|
proposals: {
|
|
583
580
|
min: number | null;
|
|
@@ -725,9 +722,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
725
722
|
boostingAmount: number | null;
|
|
726
723
|
biddingTaskScheduled: boolean | null;
|
|
727
724
|
scheduledBiddingTime: number | null;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
rejectedFeedback: string | null;
|
|
725
|
+
biddingTaskId: string | null;
|
|
726
|
+
doNotApplyReason: string | null;
|
|
731
727
|
activity?: Partial<Record<"4h" | "24h", {
|
|
732
728
|
proposals: {
|
|
733
729
|
min: number | null;
|
|
@@ -869,9 +865,8 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
|
|
|
869
865
|
boostingAmount: number | null;
|
|
870
866
|
biddingTaskScheduled: boolean | null;
|
|
871
867
|
scheduledBiddingTime: number | null;
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
rejectedFeedback: string | null;
|
|
868
|
+
biddingTaskId: string | null;
|
|
869
|
+
doNotApplyReason: string | null;
|
|
875
870
|
activity?: Partial<Record<"4h" | "24h", {
|
|
876
871
|
proposals: {
|
|
877
872
|
min: number | null;
|
|
@@ -1419,9 +1419,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1419
1419
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
1420
1420
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
1421
1421
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
1422
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
1423
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
1425
1424
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
1426
1425
|
id: string | null;
|
|
1427
1426
|
title: string | null;
|
|
@@ -2256,9 +2255,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2256
2255
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
2257
2256
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
2258
2257
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
2258
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
2259
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
2262
2260
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
2263
2261
|
id: string | null;
|
|
2264
2262
|
title: string | null;
|
|
@@ -3091,9 +3089,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3091
3089
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
3092
3090
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
3093
3091
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
3092
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
3093
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
3097
3094
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
3098
3095
|
id: string | null;
|
|
3099
3096
|
title: string | null;
|
|
@@ -4408,9 +4405,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4408
4405
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
4409
4406
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
4410
4407
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
4408
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
4409
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
4414
4410
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
4415
4411
|
id: string | null;
|
|
4416
4412
|
title: string | null;
|
|
@@ -5244,9 +5240,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5244
5240
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
5245
5241
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
5246
5242
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
5243
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
5244
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
5250
5245
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
5251
5246
|
id: string | null;
|
|
5252
5247
|
title: string | null;
|
|
@@ -6078,9 +6073,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6078
6073
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
6079
6074
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
6080
6075
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
6076
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
6077
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
6084
6078
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6085
6079
|
id: string | null;
|
|
6086
6080
|
title: string | null;
|
|
@@ -6469,9 +6463,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6469
6463
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
6470
6464
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
6471
6465
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
6466
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
6467
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
6475
6468
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6476
6469
|
id: string | null;
|
|
6477
6470
|
title: string | null;
|
|
@@ -6833,9 +6826,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6833
6826
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
6834
6827
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
6835
6828
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
6829
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
6830
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
6839
6831
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6840
6832
|
id: string | null;
|
|
6841
6833
|
title: string | null;
|
|
@@ -7195,9 +7187,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7195
7187
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
7196
7188
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
7197
7189
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
rejectedFeedback: z.ZodNullable<z.ZodString>;
|
|
7190
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
7191
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
7201
7192
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
7202
7193
|
id: string | null;
|
|
7203
7194
|
title: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { infer, z } from
|
|
2
|
-
import { JobFilters } from
|
|
3
|
-
import { CoverLetterTemplate } from
|
|
4
|
-
import { CampaignExpenses } from
|
|
1
|
+
import { infer, z } from "zod";
|
|
2
|
+
import { JobFilters } from "../job";
|
|
3
|
+
import { CoverLetterTemplate } from "../organization";
|
|
4
|
+
import { CampaignExpenses } from "./campaign-expenses";
|
|
5
5
|
export declare const bidConfigSchema: z.ZodObject<{
|
|
6
6
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
7
7
|
bidderId: z.ZodNullable<z.ZodString>;
|
|
@@ -67,11 +67,11 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
67
67
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
68
68
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
69
69
|
questions: z.ZodNullable<z.ZodObject<{
|
|
70
|
-
hasQuestions: z.
|
|
70
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
hasQuestions: "all" | "yes" | "no";
|
|
72
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
73
73
|
}, {
|
|
74
|
-
hasQuestions
|
|
74
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
75
75
|
}>>;
|
|
76
76
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
77
77
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -169,7 +169,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
169
169
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
170
170
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
171
171
|
questions: {
|
|
172
|
-
hasQuestions: "all" | "yes" | "no";
|
|
172
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
173
173
|
} | null;
|
|
174
174
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
175
175
|
clientInfo: {
|
|
@@ -219,7 +219,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
219
219
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
220
220
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
221
221
|
questions: {
|
|
222
|
-
hasQuestions
|
|
222
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
223
223
|
} | null;
|
|
224
224
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
225
225
|
clientInfo: {
|
|
@@ -314,7 +314,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
314
314
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
315
315
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
316
316
|
questions: {
|
|
317
|
-
hasQuestions: "all" | "yes" | "no";
|
|
317
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
318
318
|
} | null;
|
|
319
319
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
320
320
|
clientInfo: {
|
|
@@ -391,7 +391,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
391
391
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
392
392
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
393
393
|
questions: {
|
|
394
|
-
hasQuestions
|
|
394
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
395
395
|
} | null;
|
|
396
396
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
397
397
|
clientInfo: {
|
|
@@ -506,11 +506,11 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
506
506
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
507
507
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
508
508
|
questions: z.ZodNullable<z.ZodObject<{
|
|
509
|
-
hasQuestions: z.
|
|
509
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
510
510
|
}, "strip", z.ZodTypeAny, {
|
|
511
|
-
hasQuestions: "all" | "yes" | "no";
|
|
511
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
512
512
|
}, {
|
|
513
|
-
hasQuestions
|
|
513
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
514
514
|
}>>;
|
|
515
515
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
516
516
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -608,7 +608,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
608
608
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
609
609
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
610
610
|
questions: {
|
|
611
|
-
hasQuestions: "all" | "yes" | "no";
|
|
611
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
612
612
|
} | null;
|
|
613
613
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
614
614
|
clientInfo: {
|
|
@@ -658,7 +658,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
658
658
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
659
659
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
660
660
|
questions: {
|
|
661
|
-
hasQuestions
|
|
661
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
662
662
|
} | null;
|
|
663
663
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
664
664
|
clientInfo: {
|
|
@@ -752,7 +752,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
752
752
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
753
753
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
754
754
|
questions: {
|
|
755
|
-
hasQuestions: "all" | "yes" | "no";
|
|
755
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
756
756
|
} | null;
|
|
757
757
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
758
758
|
clientInfo: {
|
|
@@ -820,7 +820,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
820
820
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
821
821
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
822
822
|
questions: {
|
|
823
|
-
hasQuestions
|
|
823
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
824
824
|
} | null;
|
|
825
825
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
826
826
|
clientInfo: {
|
|
@@ -915,11 +915,11 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
915
915
|
projectDuration: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
|
|
916
916
|
experienceLevel: z.ZodNullable<z.ZodArray<z.ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
|
|
917
917
|
questions: z.ZodNullable<z.ZodObject<{
|
|
918
|
-
hasQuestions: z.
|
|
918
|
+
hasQuestions: z.ZodArray<z.ZodEnum<["all", "yes", "no"]>, "many">;
|
|
919
919
|
}, "strip", z.ZodTypeAny, {
|
|
920
|
-
hasQuestions: "all" | "yes" | "no";
|
|
920
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
921
921
|
}, {
|
|
922
|
-
hasQuestions
|
|
922
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
923
923
|
}>>;
|
|
924
924
|
engagementType: z.ZodNullable<z.ZodArray<z.ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
|
|
925
925
|
clientInfo: z.ZodNullable<z.ZodObject<{
|
|
@@ -1017,7 +1017,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1017
1017
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1018
1018
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1019
1019
|
questions: {
|
|
1020
|
-
hasQuestions: "all" | "yes" | "no";
|
|
1020
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1021
1021
|
} | null;
|
|
1022
1022
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1023
1023
|
clientInfo: {
|
|
@@ -1067,7 +1067,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1067
1067
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1068
1068
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1069
1069
|
questions: {
|
|
1070
|
-
hasQuestions
|
|
1070
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1071
1071
|
} | null;
|
|
1072
1072
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1073
1073
|
clientInfo: {
|
|
@@ -1160,7 +1160,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1160
1160
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1161
1161
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1162
1162
|
questions: {
|
|
1163
|
-
hasQuestions: "all" | "yes" | "no";
|
|
1163
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1164
1164
|
} | null;
|
|
1165
1165
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1166
1166
|
clientInfo: {
|
|
@@ -1235,7 +1235,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1235
1235
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
1236
1236
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
1237
1237
|
questions: {
|
|
1238
|
-
hasQuestions
|
|
1238
|
+
hasQuestions: ("all" | "yes" | "no")[];
|
|
1239
1239
|
} | null;
|
|
1240
1240
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1241
1241
|
clientInfo: {
|
|
@@ -1287,9 +1287,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1287
1287
|
priority?: number | null | undefined;
|
|
1288
1288
|
}>;
|
|
1289
1289
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
1290
|
-
filters: JobFilters;
|
|
1291
|
-
expenses: CampaignExpenses;
|
|
1292
|
-
bidConfig: BidConfig | null;
|
|
1293
1290
|
coverLetterTemplate: CoverLetterTemplate | null;
|
|
1294
1291
|
}
|
|
1295
1292
|
export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
|