lancer-shared 1.2.139 → 1.2.141
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 +819 -652
- package/dist/constants/collections.js +11 -13
- package/dist/constants/common-questions.js +1 -4
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +10 -32
- package/dist/constants/job-filter-options.js +1 -4
- package/dist/constants/job-status.js +7 -12
- package/dist/constants/mappings/countryMapping.js +1 -3
- package/dist/constants/mappings/regionMapping.js +1 -3
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/plan.d.ts +3 -0
- package/dist/constants/routes.js +39 -37
- package/dist/constants/upwork-accounts.js +3 -6
- package/dist/index.js +4 -20
- package/dist/schemas/account/account-status.js +2 -5
- package/dist/schemas/account/bidder-account.js +22 -24
- package/dist/schemas/account/index.js +3 -19
- package/dist/schemas/account/scraper-account.js +21 -24
- package/dist/schemas/ai/ai-config.js +8 -11
- package/dist/schemas/ai/index.js +3 -19
- package/dist/schemas/ai/proposal.js +10 -13
- package/dist/schemas/ai/suitability.js +8 -11
- package/dist/schemas/bid/bid-result.js +9 -13
- package/dist/schemas/bid/bid.d.ts +76 -0
- package/dist/schemas/bid/bid.js +29 -30
- package/dist/schemas/bid/index.js +2 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
- package/dist/schemas/campaign/campaign-analytics.d.ts +360 -0
- package/dist/schemas/campaign/campaign-analytics.js +32 -31
- package/dist/schemas/campaign/campaign-expenses.js +5 -8
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +5 -0
- package/dist/schemas/campaign/campaign-integrations.js +10 -13
- package/dist/schemas/campaign/campaign-job-count.js +3 -6
- package/dist/schemas/campaign/campaign.d.ts +29 -0
- package/dist/schemas/campaign/campaign.js +32 -35
- package/dist/schemas/campaign/index.js +7 -23
- package/dist/schemas/chat-message/chat-message.js +7 -10
- package/dist/schemas/chat-message/index.js +1 -17
- package/dist/schemas/config/agency-config.js +6 -9
- package/dist/schemas/config/index.js +1 -17
- package/dist/schemas/event/index.d.ts +58 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +17 -32
- package/dist/schemas/job/haha.json +581 -0
- package/dist/schemas/job-filters/index.js +1 -17
- package/dist/schemas/job-filters/job-filters.js +62 -65
- package/dist/schemas/lead/index.js +173 -19
- package/dist/schemas/lead/lead-note.js +13 -16
- package/dist/schemas/lead/lead-status.js +3 -6
- package/dist/schemas/lead/nuxt.js +287 -0
- package/dist/schemas/logger/index.js +1 -17
- package/dist/schemas/logger/log-event.js +100 -49
- package/dist/schemas/meter-event/index.d.ts +12 -0
- package/dist/schemas/organization/index.d.ts +16 -7
- package/dist/schemas/organization/index.js +70 -17
- package/dist/schemas/organization/member.js +7 -0
- package/dist/schemas/organization/organization.d.ts +177 -7
- package/dist/schemas/organization/organization.js +14 -17
- package/dist/schemas/organization/subscription.js +17 -0
- package/dist/schemas/profile/index.d.ts +2551 -0
- package/dist/schemas/proxy/index.js +3 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
- package/dist/schemas/proxy/proxy-country.js +249 -0
- package/dist/schemas/proxy/proxy.js +25 -19
- package/dist/schemas/saved-search/index.js +8 -11
- package/dist/schemas/scraper/exceptions.d.ts +13 -1
- package/dist/schemas/scraper/index.js +2 -18
- package/dist/schemas/scraper/scrape-payload.d.ts +102 -0
- package/dist/schemas/scraper/scrape-payload.js +19 -14
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +12 -9
- package/dist/schemas/talent/index.d.ts +1314 -0
- package/dist/schemas/tier/index.d.ts +119 -0
- package/dist/schemas/time-filter/index.js +5 -8
- package/dist/schemas/transaction/index.js +17 -0
- package/dist/schemas/usage/index.js +18 -0
- package/dist/schemas/user/index.js +38 -41
- package/dist/types/account/account-status.js +1 -2
- package/dist/types/account/bidder-account.js +1 -2
- package/dist/types/account/index.js +3 -19
- package/dist/types/account/scraper-account.js +1 -2
- package/dist/types/ai/ai-config.js +1 -2
- package/dist/types/ai/index.js +3 -19
- package/dist/types/ai/proposal.js +1 -2
- package/dist/types/ai/suitability.js +1 -2
- package/dist/types/bid/bid-result.js +1 -2
- package/dist/types/bid/bid.js +1 -2
- package/dist/types/bid/index.js +2 -18
- package/dist/types/campaign/campaign-analytics.js +1 -2
- package/dist/types/campaign/campaign-expenses.js +1 -2
- package/dist/types/campaign/campaign-insights.js +1 -2
- package/dist/types/campaign/campaign-integrations.js +1 -2
- package/dist/types/campaign/campaign-job-count.js +1 -2
- package/dist/types/campaign/campaign.js +1 -2
- package/dist/types/campaign/index.js +6 -22
- package/dist/types/chat-message/chat-message.js +1 -2
- package/dist/types/chat-message/index.js +1 -17
- package/dist/types/config/agency-config.js +1 -2
- package/dist/types/config/index.js +1 -17
- package/dist/types/index.js +15 -29
- package/dist/types/job/index.js +3 -19
- package/dist/types/job/job-note.js +1 -2
- package/dist/types/job/job-status.js +1 -4
- package/dist/types/job/nuxt.js +1 -0
- package/dist/types/job-filters/index.js +1 -17
- package/dist/types/job-filters/job-filters.js +1 -2
- package/dist/types/logger/index.js +1 -17
- package/dist/types/logger/log-event.js +1 -2
- package/dist/types/saved-search/index.js +1 -2
- package/dist/types/scraper/index.js +2 -18
- package/dist/types/scraper/scrape-payload.js +1 -2
- package/dist/types/scraper/scrape-result.js +1 -2
- package/dist/types/shared.js +1 -0
- package/dist/types/time-filter/index.js +1 -2
- package/dist/types/transaction/index.js +1 -0
- package/dist/types/usage/index.js +1 -0
- package/dist/types/user/index.js +1 -2
- package/dist/utils/index.js +1 -17
- package/dist/utils/try-catch.js +8 -23
- package/package.json +1 -1
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/constants/proxies.d.ts +0 -4
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/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/bidding/index.d.ts +0 -1
- package/dist/schemas/bidding/index.js +0 -17
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
- package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
- package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/job/feed-job.d.ts +0 -866
- package/dist/schemas/job/index.js +0 -19
- package/dist/schemas/job/job-details.js +0 -29
- package/dist/schemas/job/job-note.d.ts +0 -83
- package/dist/schemas/job/job-note.js +0 -30
- package/dist/schemas/job/job-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- package/dist/schemas/job/job.d.ts +0 -1160
- package/dist/schemas/job/job.js +0 -90
- package/dist/schemas/job/pipeline-job.d.ts +0 -608
- package/dist/schemas/job/pipeline-job.js +0 -43
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/schemas/upwork-account/index.d.ts +0 -3
- package/dist/schemas/upwork-account/index.js +0 -19
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
- package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
- package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- package/dist/types/bidding/index.d.ts +0 -1
- package/dist/types/bidding/index.js +0 -17
- package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
- package/dist/types/bidding/proposal-bidding-status.js +0 -2
- package/dist/types/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
- package/dist/types/upwork-account/index.d.ts +0 -3
- package/dist/types/upwork-account/index.js +0 -19
- package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
- package/dist/types/upwork-account/upwork-account-status.js +0 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
- package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
- package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
|
@@ -14,6 +14,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
14
14
|
}>, "many">>;
|
|
15
15
|
boostingEnabled: z.ZodBoolean;
|
|
16
16
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
18
|
+
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
isHourlyRate: z.ZodBoolean;
|
|
20
|
+
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
17
21
|
}, "strip", z.ZodTypeAny, {
|
|
18
22
|
coverLetter: string;
|
|
19
23
|
questionAnswerPairs: {
|
|
@@ -22,6 +26,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
22
26
|
}[] | null;
|
|
23
27
|
boostingEnabled: boolean;
|
|
24
28
|
maximumBoost: number | null;
|
|
29
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
30
|
+
biddingFixedHourlyRate: number | null;
|
|
31
|
+
isHourlyRate: boolean;
|
|
32
|
+
jobMaxHourlyRate: number | null;
|
|
25
33
|
}, {
|
|
26
34
|
coverLetter: string;
|
|
27
35
|
questionAnswerPairs: {
|
|
@@ -30,6 +38,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
30
38
|
}[] | null;
|
|
31
39
|
boostingEnabled: boolean;
|
|
32
40
|
maximumBoost: number | null;
|
|
41
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
42
|
+
biddingFixedHourlyRate: number | null;
|
|
43
|
+
isHourlyRate: boolean;
|
|
44
|
+
jobMaxHourlyRate: number | null;
|
|
33
45
|
}>;
|
|
34
46
|
export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
35
47
|
coverLetter: z.ZodString;
|
|
@@ -45,6 +57,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
45
57
|
}>, "many">>;
|
|
46
58
|
boostingEnabled: z.ZodBoolean;
|
|
47
59
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
60
|
+
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
61
|
+
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
isHourlyRate: z.ZodBoolean;
|
|
63
|
+
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
48
64
|
}, "strip", z.ZodTypeAny, {
|
|
49
65
|
coverLetter: string;
|
|
50
66
|
questionAnswerPairs: {
|
|
@@ -53,6 +69,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
53
69
|
}[] | null;
|
|
54
70
|
boostingEnabled: boolean;
|
|
55
71
|
maximumBoost: number | null;
|
|
72
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
73
|
+
biddingFixedHourlyRate: number | null;
|
|
74
|
+
isHourlyRate: boolean;
|
|
75
|
+
jobMaxHourlyRate: number | null;
|
|
56
76
|
}, {
|
|
57
77
|
coverLetter: string;
|
|
58
78
|
questionAnswerPairs: {
|
|
@@ -61,6 +81,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
61
81
|
}[] | null;
|
|
62
82
|
boostingEnabled: boolean;
|
|
63
83
|
maximumBoost: number | null;
|
|
84
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
85
|
+
biddingFixedHourlyRate: number | null;
|
|
86
|
+
isHourlyRate: boolean;
|
|
87
|
+
jobMaxHourlyRate: number | null;
|
|
64
88
|
}>;
|
|
65
89
|
export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
66
90
|
coverLetter: z.ZodString;
|
|
@@ -76,6 +100,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
76
100
|
}>, "many">>;
|
|
77
101
|
boostingEnabled: z.ZodBoolean;
|
|
78
102
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
103
|
+
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
104
|
+
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
105
|
+
isHourlyRate: z.ZodBoolean;
|
|
106
|
+
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
79
107
|
}, {
|
|
80
108
|
agencyName: z.ZodString;
|
|
81
109
|
contractorName: z.ZodString;
|
|
@@ -88,6 +116,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
88
116
|
}[] | null;
|
|
89
117
|
boostingEnabled: boolean;
|
|
90
118
|
maximumBoost: number | null;
|
|
119
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
120
|
+
biddingFixedHourlyRate: number | null;
|
|
121
|
+
isHourlyRate: boolean;
|
|
122
|
+
jobMaxHourlyRate: number | null;
|
|
91
123
|
agencyName: string;
|
|
92
124
|
contractorName: string;
|
|
93
125
|
specializedProfile: string | null;
|
|
@@ -99,6 +131,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
99
131
|
}[] | null;
|
|
100
132
|
boostingEnabled: boolean;
|
|
101
133
|
maximumBoost: number | null;
|
|
134
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
135
|
+
biddingFixedHourlyRate: number | null;
|
|
136
|
+
isHourlyRate: boolean;
|
|
137
|
+
jobMaxHourlyRate: number | null;
|
|
102
138
|
agencyName: string;
|
|
103
139
|
contractorName: string;
|
|
104
140
|
specializedProfile: string | null;
|
|
@@ -1607,6 +1643,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1607
1643
|
}>, "many">>;
|
|
1608
1644
|
boostingEnabled: z.ZodBoolean;
|
|
1609
1645
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
1646
|
+
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
1647
|
+
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1648
|
+
isHourlyRate: z.ZodBoolean;
|
|
1649
|
+
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1610
1650
|
}, {
|
|
1611
1651
|
agencyName: z.ZodString;
|
|
1612
1652
|
contractorName: z.ZodString;
|
|
@@ -1619,6 +1659,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1619
1659
|
}[] | null;
|
|
1620
1660
|
boostingEnabled: boolean;
|
|
1621
1661
|
maximumBoost: number | null;
|
|
1662
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1663
|
+
biddingFixedHourlyRate: number | null;
|
|
1664
|
+
isHourlyRate: boolean;
|
|
1665
|
+
jobMaxHourlyRate: number | null;
|
|
1622
1666
|
agencyName: string;
|
|
1623
1667
|
contractorName: string;
|
|
1624
1668
|
specializedProfile: string | null;
|
|
@@ -1630,6 +1674,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1630
1674
|
}[] | null;
|
|
1631
1675
|
boostingEnabled: boolean;
|
|
1632
1676
|
maximumBoost: number | null;
|
|
1677
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1678
|
+
biddingFixedHourlyRate: number | null;
|
|
1679
|
+
isHourlyRate: boolean;
|
|
1680
|
+
jobMaxHourlyRate: number | null;
|
|
1633
1681
|
agencyName: string;
|
|
1634
1682
|
contractorName: string;
|
|
1635
1683
|
specializedProfile: string | null;
|
|
@@ -1783,6 +1831,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1783
1831
|
}[] | null;
|
|
1784
1832
|
boostingEnabled: boolean;
|
|
1785
1833
|
maximumBoost: number | null;
|
|
1834
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1835
|
+
biddingFixedHourlyRate: number | null;
|
|
1836
|
+
isHourlyRate: boolean;
|
|
1837
|
+
jobMaxHourlyRate: number | null;
|
|
1786
1838
|
agencyName: string;
|
|
1787
1839
|
contractorName: string;
|
|
1788
1840
|
specializedProfile: string | null;
|
|
@@ -1936,6 +1988,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1936
1988
|
}[] | null;
|
|
1937
1989
|
boostingEnabled: boolean;
|
|
1938
1990
|
maximumBoost: number | null;
|
|
1991
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1992
|
+
biddingFixedHourlyRate: number | null;
|
|
1993
|
+
isHourlyRate: boolean;
|
|
1994
|
+
jobMaxHourlyRate: number | null;
|
|
1939
1995
|
agencyName: string;
|
|
1940
1996
|
contractorName: string;
|
|
1941
1997
|
specializedProfile: string | null;
|
|
@@ -2559,6 +2615,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2559
2615
|
}>, "many">>;
|
|
2560
2616
|
boostingEnabled: z.ZodBoolean;
|
|
2561
2617
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
2618
|
+
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2619
|
+
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2620
|
+
isHourlyRate: z.ZodBoolean;
|
|
2621
|
+
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2562
2622
|
}, "strip", z.ZodTypeAny, {
|
|
2563
2623
|
coverLetter: string;
|
|
2564
2624
|
questionAnswerPairs: {
|
|
@@ -2567,6 +2627,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2567
2627
|
}[] | null;
|
|
2568
2628
|
boostingEnabled: boolean;
|
|
2569
2629
|
maximumBoost: number | null;
|
|
2630
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2631
|
+
biddingFixedHourlyRate: number | null;
|
|
2632
|
+
isHourlyRate: boolean;
|
|
2633
|
+
jobMaxHourlyRate: number | null;
|
|
2570
2634
|
}, {
|
|
2571
2635
|
coverLetter: string;
|
|
2572
2636
|
questionAnswerPairs: {
|
|
@@ -2575,6 +2639,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2575
2639
|
}[] | null;
|
|
2576
2640
|
boostingEnabled: boolean;
|
|
2577
2641
|
maximumBoost: number | null;
|
|
2642
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2643
|
+
biddingFixedHourlyRate: number | null;
|
|
2644
|
+
isHourlyRate: boolean;
|
|
2645
|
+
jobMaxHourlyRate: number | null;
|
|
2578
2646
|
}>;
|
|
2579
2647
|
}>, "strip", z.ZodTypeAny, {
|
|
2580
2648
|
organizationId: string;
|
|
@@ -2725,6 +2793,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2725
2793
|
}[] | null;
|
|
2726
2794
|
boostingEnabled: boolean;
|
|
2727
2795
|
maximumBoost: number | null;
|
|
2796
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2797
|
+
biddingFixedHourlyRate: number | null;
|
|
2798
|
+
isHourlyRate: boolean;
|
|
2799
|
+
jobMaxHourlyRate: number | null;
|
|
2728
2800
|
};
|
|
2729
2801
|
}, {
|
|
2730
2802
|
organizationId: string;
|
|
@@ -2875,6 +2947,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2875
2947
|
}[] | null;
|
|
2876
2948
|
boostingEnabled: boolean;
|
|
2877
2949
|
maximumBoost: number | null;
|
|
2950
|
+
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2951
|
+
biddingFixedHourlyRate: number | null;
|
|
2952
|
+
isHourlyRate: boolean;
|
|
2953
|
+
jobMaxHourlyRate: number | null;
|
|
2878
2954
|
};
|
|
2879
2955
|
}>;
|
|
2880
2956
|
export declare const bidDtoSchema: z.ZodObject<{
|
package/dist/schemas/bid/bid.js
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const bidPayloadProposalDataSchema = z.object({
|
|
3
|
+
coverLetter: z.string(),
|
|
4
|
+
questionAnswerPairs: z
|
|
5
|
+
.array(z.object({
|
|
6
|
+
question: z.string(),
|
|
7
|
+
answer: z.string(),
|
|
8
|
+
}))
|
|
9
|
+
.nullable(),
|
|
10
|
+
boostingEnabled: z.boolean(),
|
|
11
|
+
minimumBoost: z.number().nullable(),
|
|
12
|
+
maximumBoost: z.number().nullable(),
|
|
12
13
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
agencyName:
|
|
16
|
-
contractorName:
|
|
17
|
-
specializedProfile:
|
|
14
|
+
export const freelancerBidProposalDataSchema = bidPayloadProposalDataSchema;
|
|
15
|
+
export const agencyBidProposalDataSchema = bidPayloadProposalDataSchema.extend({
|
|
16
|
+
agencyName: z.string(),
|
|
17
|
+
contractorName: z.string(),
|
|
18
|
+
specializedProfile: z.string().nullable(),
|
|
18
19
|
});
|
|
19
|
-
|
|
20
|
-
jobUrl:
|
|
21
|
-
username:
|
|
22
|
-
password:
|
|
23
|
-
cookies: zod_1.z.array(zod_1.z.any()),
|
|
24
|
-
multiLoginProfileId: zod_1.z.string(),
|
|
20
|
+
export const bidPayloadSchema = z.object({
|
|
21
|
+
jobUrl: z.string(),
|
|
22
|
+
username: z.string(),
|
|
23
|
+
password: z.string(),
|
|
25
24
|
});
|
|
26
|
-
|
|
27
|
-
proposalData:
|
|
25
|
+
export const agencyBidPayloadSchema = bidPayloadSchema.extend({
|
|
26
|
+
proposalData: agencyBidProposalDataSchema,
|
|
28
27
|
});
|
|
29
|
-
|
|
30
|
-
proposalData:
|
|
28
|
+
export const freelancerBidPayloadSchema = bidPayloadSchema.extend({
|
|
29
|
+
proposalData: freelancerBidProposalDataSchema,
|
|
31
30
|
});
|
|
32
|
-
|
|
33
|
-
organizationId:
|
|
34
|
-
campaignId:
|
|
35
|
-
leadId:
|
|
31
|
+
export const bidDtoSchema = z.object({
|
|
32
|
+
organizationId: z.string(),
|
|
33
|
+
campaignId: z.string(),
|
|
34
|
+
leadId: z.string(),
|
|
36
35
|
});
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./bid"), exports);
|
|
18
|
-
__exportStar(require("./bid-result"), exports);
|
|
1
|
+
export * from './bid';
|
|
2
|
+
export * from './bid-result';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
leadsAnalyzed: zod_1.z.number(),
|
|
7
|
-
leadsBidded: zod_1.z.number(),
|
|
8
|
-
connectsSaved: zod_1.z.number(),
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const campaignAIMetricsSchema = z.object({
|
|
3
|
+
leadsAnalyzed: z.number(),
|
|
4
|
+
leadsBidded: z.number(),
|
|
5
|
+
connectsSaved: z.number(),
|
|
9
6
|
});
|