lancer-shared 1.2.149 → 1.2.150
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 +3 -0
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +13 -11
- package/dist/constants/common-questions.js +4 -1
- package/dist/constants/index.js +32 -10
- package/dist/constants/job-filter-options.js +4 -1
- package/dist/constants/job-status.js +12 -7
- package/dist/constants/mappings/countryMapping.js +3 -1
- package/dist/constants/mappings/regionMapping.js +3 -1
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.js +37 -39
- package/dist/constants/upwork-accounts.js +6 -3
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/index.js +20 -4
- package/dist/schemas/account/account-status.js +5 -2
- package/dist/schemas/account/bidder-account.js +24 -22
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
- package/dist/schemas/account/index.js +19 -3
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +24 -21
- package/dist/schemas/ai/ai-config.js +11 -8
- package/dist/schemas/ai/index.js +19 -3
- package/dist/schemas/ai/proposal.js +13 -10
- package/dist/schemas/ai/suitability.js +11 -8
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bid/bid-result.js +13 -9
- package/dist/schemas/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bid/bid.d.ts +38 -0
- package/dist/schemas/bid/bid.js +30 -29
- package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
- package/dist/schemas/bid/index.js +18 -2
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -5
- package/dist/schemas/campaign/campaign-analytics.d.ts +8 -0
- package/dist/schemas/campaign/campaign-analytics.js +31 -32
- package/dist/schemas/campaign/campaign-expenses.js +8 -5
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
- package/dist/schemas/campaign/campaign-integrations.js +13 -10
- package/dist/schemas/campaign/campaign-job-count.js +6 -3
- package/dist/schemas/campaign/campaign.d.ts +9 -0
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.js +23 -7
- package/dist/schemas/chat-message/chat-message.js +10 -7
- package/dist/schemas/chat-message/index.js +17 -1
- package/dist/schemas/config/agency-config.js +9 -6
- package/dist/schemas/config/index.js +17 -1
- package/dist/schemas/index.js +32 -17
- package/dist/schemas/job/feed-job.d.ts +866 -0
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +608 -0
- package/dist/schemas/job/pipeline-job.js +43 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -1
- package/dist/schemas/job-filters/job-filters.js +65 -62
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/lead/index.js +19 -173
- package/dist/schemas/lead/lead-note.js +16 -13
- package/dist/schemas/lead/lead-status.js +6 -3
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -1
- package/dist/schemas/logger/log-event.js +49 -100
- package/dist/schemas/organization/index.js +17 -70
- package/dist/schemas/organization/organization.d.ts +7 -177
- package/dist/schemas/organization/organization.js +17 -14
- package/dist/schemas/proxy/index.js +17 -3
- package/dist/schemas/proxy/proxy.js +19 -25
- package/dist/schemas/saved-search/index.js +11 -8
- package/dist/schemas/scraper/index.js +18 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/dist/schemas/scraper/scrape-payload.js +14 -19
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +9 -12
- package/dist/schemas/time-filter/index.js +8 -5
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +30 -0
- package/dist/schemas/user/index.js +41 -38
- package/dist/types/account/account-status.js +2 -1
- package/dist/types/account/bidder-account.js +2 -1
- package/dist/types/account/index.js +19 -3
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -1
- package/dist/types/ai/ai-config.js +2 -1
- package/dist/types/ai/index.js +19 -3
- package/dist/types/ai/proposal.js +2 -1
- package/dist/types/ai/suitability.js +2 -1
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bid/bid-result.js +2 -1
- package/dist/types/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -0
- package/dist/types/bid/bid.js +2 -1
- package/dist/types/bid/index.js +18 -2
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -1
- package/dist/types/campaign/campaign-expenses.js +2 -1
- package/dist/types/campaign/campaign-insights.js +2 -1
- package/dist/types/campaign/campaign-integrations.js +2 -1
- package/dist/types/campaign/campaign-job-count.js +2 -1
- package/dist/types/campaign/campaign.js +2 -1
- package/dist/types/campaign/index.js +22 -6
- package/dist/types/chat-message/chat-message.js +2 -1
- package/dist/types/chat-message/index.js +17 -1
- package/dist/types/config/agency-config.js +2 -1
- package/dist/types/config/index.js +17 -1
- package/dist/types/index.js +29 -15
- package/dist/types/job/index.js +19 -3
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -1
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-status.js +4 -1
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -1
- package/dist/types/job-filters/job-filters.js +2 -1
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/logger/index.js +17 -1
- package/dist/types/logger/log-event.js +2 -1
- package/dist/types/saved-search/index.js +2 -1
- package/dist/types/scraper/index.js +18 -2
- package/dist/types/scraper/scrape-payload.js +2 -1
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -1
- package/dist/types/time-filter/index.js +2 -1
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/try-catch.js +23 -8
- package/package.json +1 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/job/haha.json +0 -581
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/logger/feed/feed-job-chunk-enrich.d.ts +0 -75
- package/dist/schemas/meter-event/index.d.ts +0 -12
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/profile/index.d.ts +0 -2551
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/talent/index.d.ts +0 -1314
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
|
@@ -15,8 +15,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
15
15
|
boostingEnabled: z.ZodBoolean;
|
|
16
16
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
17
17
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
18
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
18
19
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
19
20
|
isHourlyRate: z.ZodBoolean;
|
|
21
|
+
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
20
22
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
21
23
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
22
24
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -28,8 +30,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
28
30
|
boostingEnabled: boolean;
|
|
29
31
|
maximumBoost: number | null;
|
|
30
32
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
33
|
+
biddingHourlyRatePercentage: number | null;
|
|
31
34
|
biddingFixedHourlyRate: number | null;
|
|
32
35
|
isHourlyRate: boolean;
|
|
36
|
+
jobMinHourlyRate: number | null;
|
|
33
37
|
jobMaxHourlyRate: number | null;
|
|
34
38
|
bidWithWarning: "bid" | "skip";
|
|
35
39
|
}, {
|
|
@@ -41,8 +45,10 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
41
45
|
boostingEnabled: boolean;
|
|
42
46
|
maximumBoost: number | null;
|
|
43
47
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
48
|
+
biddingHourlyRatePercentage: number | null;
|
|
44
49
|
biddingFixedHourlyRate: number | null;
|
|
45
50
|
isHourlyRate: boolean;
|
|
51
|
+
jobMinHourlyRate: number | null;
|
|
46
52
|
jobMaxHourlyRate: number | null;
|
|
47
53
|
bidWithWarning: "bid" | "skip";
|
|
48
54
|
}>;
|
|
@@ -61,8 +67,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
61
67
|
boostingEnabled: z.ZodBoolean;
|
|
62
68
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
63
69
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
70
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
64
71
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
65
72
|
isHourlyRate: z.ZodBoolean;
|
|
73
|
+
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
66
74
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
67
75
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
68
76
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -74,8 +82,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
74
82
|
boostingEnabled: boolean;
|
|
75
83
|
maximumBoost: number | null;
|
|
76
84
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
85
|
+
biddingHourlyRatePercentage: number | null;
|
|
77
86
|
biddingFixedHourlyRate: number | null;
|
|
78
87
|
isHourlyRate: boolean;
|
|
88
|
+
jobMinHourlyRate: number | null;
|
|
79
89
|
jobMaxHourlyRate: number | null;
|
|
80
90
|
bidWithWarning: "bid" | "skip";
|
|
81
91
|
}, {
|
|
@@ -87,8 +97,10 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
87
97
|
boostingEnabled: boolean;
|
|
88
98
|
maximumBoost: number | null;
|
|
89
99
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
100
|
+
biddingHourlyRatePercentage: number | null;
|
|
90
101
|
biddingFixedHourlyRate: number | null;
|
|
91
102
|
isHourlyRate: boolean;
|
|
103
|
+
jobMinHourlyRate: number | null;
|
|
92
104
|
jobMaxHourlyRate: number | null;
|
|
93
105
|
bidWithWarning: "bid" | "skip";
|
|
94
106
|
}>;
|
|
@@ -107,8 +119,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
107
119
|
boostingEnabled: z.ZodBoolean;
|
|
108
120
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
109
121
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
122
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
110
123
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
111
124
|
isHourlyRate: z.ZodBoolean;
|
|
125
|
+
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
112
126
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
113
127
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
114
128
|
}, {
|
|
@@ -124,8 +138,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
124
138
|
boostingEnabled: boolean;
|
|
125
139
|
maximumBoost: number | null;
|
|
126
140
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
141
|
+
biddingHourlyRatePercentage: number | null;
|
|
127
142
|
biddingFixedHourlyRate: number | null;
|
|
128
143
|
isHourlyRate: boolean;
|
|
144
|
+
jobMinHourlyRate: number | null;
|
|
129
145
|
jobMaxHourlyRate: number | null;
|
|
130
146
|
bidWithWarning: "bid" | "skip";
|
|
131
147
|
agencyName: string;
|
|
@@ -140,8 +156,10 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
140
156
|
boostingEnabled: boolean;
|
|
141
157
|
maximumBoost: number | null;
|
|
142
158
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
159
|
+
biddingHourlyRatePercentage: number | null;
|
|
143
160
|
biddingFixedHourlyRate: number | null;
|
|
144
161
|
isHourlyRate: boolean;
|
|
162
|
+
jobMinHourlyRate: number | null;
|
|
145
163
|
jobMaxHourlyRate: number | null;
|
|
146
164
|
bidWithWarning: "bid" | "skip";
|
|
147
165
|
agencyName: string;
|
|
@@ -1653,8 +1671,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1653
1671
|
boostingEnabled: z.ZodBoolean;
|
|
1654
1672
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
1655
1673
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
1674
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
1656
1675
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1657
1676
|
isHourlyRate: z.ZodBoolean;
|
|
1677
|
+
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1658
1678
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1659
1679
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
1660
1680
|
}, {
|
|
@@ -1670,8 +1690,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1670
1690
|
boostingEnabled: boolean;
|
|
1671
1691
|
maximumBoost: number | null;
|
|
1672
1692
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1693
|
+
biddingHourlyRatePercentage: number | null;
|
|
1673
1694
|
biddingFixedHourlyRate: number | null;
|
|
1674
1695
|
isHourlyRate: boolean;
|
|
1696
|
+
jobMinHourlyRate: number | null;
|
|
1675
1697
|
jobMaxHourlyRate: number | null;
|
|
1676
1698
|
bidWithWarning: "bid" | "skip";
|
|
1677
1699
|
agencyName: string;
|
|
@@ -1686,8 +1708,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1686
1708
|
boostingEnabled: boolean;
|
|
1687
1709
|
maximumBoost: number | null;
|
|
1688
1710
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1711
|
+
biddingHourlyRatePercentage: number | null;
|
|
1689
1712
|
biddingFixedHourlyRate: number | null;
|
|
1690
1713
|
isHourlyRate: boolean;
|
|
1714
|
+
jobMinHourlyRate: number | null;
|
|
1691
1715
|
jobMaxHourlyRate: number | null;
|
|
1692
1716
|
bidWithWarning: "bid" | "skip";
|
|
1693
1717
|
agencyName: string;
|
|
@@ -1844,8 +1868,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1844
1868
|
boostingEnabled: boolean;
|
|
1845
1869
|
maximumBoost: number | null;
|
|
1846
1870
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1871
|
+
biddingHourlyRatePercentage: number | null;
|
|
1847
1872
|
biddingFixedHourlyRate: number | null;
|
|
1848
1873
|
isHourlyRate: boolean;
|
|
1874
|
+
jobMinHourlyRate: number | null;
|
|
1849
1875
|
jobMaxHourlyRate: number | null;
|
|
1850
1876
|
bidWithWarning: "bid" | "skip";
|
|
1851
1877
|
agencyName: string;
|
|
@@ -2002,8 +2028,10 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
2002
2028
|
boostingEnabled: boolean;
|
|
2003
2029
|
maximumBoost: number | null;
|
|
2004
2030
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2031
|
+
biddingHourlyRatePercentage: number | null;
|
|
2005
2032
|
biddingFixedHourlyRate: number | null;
|
|
2006
2033
|
isHourlyRate: boolean;
|
|
2034
|
+
jobMinHourlyRate: number | null;
|
|
2007
2035
|
jobMaxHourlyRate: number | null;
|
|
2008
2036
|
bidWithWarning: "bid" | "skip";
|
|
2009
2037
|
agencyName: string;
|
|
@@ -2630,8 +2658,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2630
2658
|
boostingEnabled: z.ZodBoolean;
|
|
2631
2659
|
maximumBoost: z.ZodNullable<z.ZodNumber>;
|
|
2632
2660
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2661
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
2633
2662
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2634
2663
|
isHourlyRate: z.ZodBoolean;
|
|
2664
|
+
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2635
2665
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2636
2666
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2637
2667
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2643,8 +2673,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2643
2673
|
boostingEnabled: boolean;
|
|
2644
2674
|
maximumBoost: number | null;
|
|
2645
2675
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2676
|
+
biddingHourlyRatePercentage: number | null;
|
|
2646
2677
|
biddingFixedHourlyRate: number | null;
|
|
2647
2678
|
isHourlyRate: boolean;
|
|
2679
|
+
jobMinHourlyRate: number | null;
|
|
2648
2680
|
jobMaxHourlyRate: number | null;
|
|
2649
2681
|
bidWithWarning: "bid" | "skip";
|
|
2650
2682
|
}, {
|
|
@@ -2656,8 +2688,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2656
2688
|
boostingEnabled: boolean;
|
|
2657
2689
|
maximumBoost: number | null;
|
|
2658
2690
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2691
|
+
biddingHourlyRatePercentage: number | null;
|
|
2659
2692
|
biddingFixedHourlyRate: number | null;
|
|
2660
2693
|
isHourlyRate: boolean;
|
|
2694
|
+
jobMinHourlyRate: number | null;
|
|
2661
2695
|
jobMaxHourlyRate: number | null;
|
|
2662
2696
|
bidWithWarning: "bid" | "skip";
|
|
2663
2697
|
}>;
|
|
@@ -2811,8 +2845,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2811
2845
|
boostingEnabled: boolean;
|
|
2812
2846
|
maximumBoost: number | null;
|
|
2813
2847
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
2848
|
+
biddingHourlyRatePercentage: number | null;
|
|
2814
2849
|
biddingFixedHourlyRate: number | null;
|
|
2815
2850
|
isHourlyRate: boolean;
|
|
2851
|
+
jobMinHourlyRate: number | null;
|
|
2816
2852
|
jobMaxHourlyRate: number | null;
|
|
2817
2853
|
bidWithWarning: "bid" | "skip";
|
|
2818
2854
|
};
|
|
@@ -2966,8 +3002,10 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
2966
3002
|
boostingEnabled: boolean;
|
|
2967
3003
|
maximumBoost: number | null;
|
|
2968
3004
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
3005
|
+
biddingHourlyRatePercentage: number | null;
|
|
2969
3006
|
biddingFixedHourlyRate: number | null;
|
|
2970
3007
|
isHourlyRate: boolean;
|
|
3008
|
+
jobMinHourlyRate: number | null;
|
|
2971
3009
|
jobMaxHourlyRate: number | null;
|
|
2972
3010
|
bidWithWarning: "bid" | "skip";
|
|
2973
3011
|
};
|
package/dist/schemas/bid/bid.js
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
maximumBoost: z.number().nullable(),
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bidDtoSchema = exports.freelancerBidPayloadSchema = exports.agencyBidPayloadSchema = exports.bidPayloadSchema = exports.agencyBidProposalDataSchema = exports.freelancerBidProposalDataSchema = exports.bidPayloadProposalDataSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ai_1 = require("../ai");
|
|
6
|
+
exports.bidPayloadProposalDataSchema = zod_1.z.object({
|
|
7
|
+
coverLetter: zod_1.z.string(),
|
|
8
|
+
questionAnswerPairs: zod_1.z.array(ai_1.questionAnswerPairSchema).nullable(),
|
|
9
|
+
boostingEnabled: zod_1.z.boolean(),
|
|
10
|
+
minimumBoost: zod_1.z.number().nullable(),
|
|
11
|
+
maximumBoost: zod_1.z.number().nullable(),
|
|
13
12
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
agencyName: z.string(),
|
|
17
|
-
contractorName: z.string(),
|
|
18
|
-
specializedProfile: z.string().nullable(),
|
|
13
|
+
exports.freelancerBidProposalDataSchema = exports.bidPayloadProposalDataSchema;
|
|
14
|
+
exports.agencyBidProposalDataSchema = exports.bidPayloadProposalDataSchema.extend({
|
|
15
|
+
agencyName: zod_1.z.string(),
|
|
16
|
+
contractorName: zod_1.z.string(),
|
|
17
|
+
specializedProfile: zod_1.z.string().nullable(),
|
|
19
18
|
});
|
|
20
|
-
|
|
21
|
-
jobUrl: z.string(),
|
|
22
|
-
username: z.string(),
|
|
23
|
-
password: z.string(),
|
|
19
|
+
exports.bidPayloadSchema = zod_1.z.object({
|
|
20
|
+
jobUrl: zod_1.z.string(),
|
|
21
|
+
username: zod_1.z.string(),
|
|
22
|
+
password: zod_1.z.string(),
|
|
23
|
+
cookies: zod_1.z.array(zod_1.z.any()),
|
|
24
|
+
multiLoginProfileId: zod_1.z.string(),
|
|
24
25
|
});
|
|
25
|
-
|
|
26
|
-
proposalData: agencyBidProposalDataSchema,
|
|
26
|
+
exports.agencyBidPayloadSchema = exports.bidPayloadSchema.extend({
|
|
27
|
+
proposalData: exports.agencyBidProposalDataSchema,
|
|
27
28
|
});
|
|
28
|
-
|
|
29
|
-
proposalData: freelancerBidProposalDataSchema,
|
|
29
|
+
exports.freelancerBidPayloadSchema = exports.bidPayloadSchema.extend({
|
|
30
|
+
proposalData: exports.freelancerBidProposalDataSchema,
|
|
30
31
|
});
|
|
31
|
-
|
|
32
|
-
organizationId: z.string(),
|
|
33
|
-
campaignId: z.string(),
|
|
34
|
-
leadId: z.string(),
|
|
32
|
+
exports.bidDtoSchema = zod_1.z.object({
|
|
33
|
+
organizationId: zod_1.z.string(),
|
|
34
|
+
campaignId: zod_1.z.string(),
|
|
35
|
+
leadId: zod_1.z.string(),
|
|
35
36
|
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class WaitForFunctionTimeoutError extends Error {
|
|
2
|
+
readonly code = "WAIT_FOR_FUNCTION_TIMEOUT_ERROR";
|
|
3
|
+
constructor(fn: Function, timeout: number);
|
|
4
|
+
}
|
|
5
|
+
export declare const waitForFunctionTimeoutError: (fn: Function, timeout: number) => WaitForFunctionTimeoutError;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./bid"), exports);
|
|
18
|
+
__exportStar(require("./bid-result"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './proposal-bidding-status';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./proposal-bidding-status"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const proposalBiddingStatusSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
status: z.ZodLiteral<"success">;
|
|
4
|
+
biddingAmount: z.ZodNumber;
|
|
5
|
+
boosted: z.ZodBoolean;
|
|
6
|
+
boostingAmount: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
status: "success";
|
|
9
|
+
biddingAmount: number;
|
|
10
|
+
boosted: boolean;
|
|
11
|
+
boostingAmount: number;
|
|
12
|
+
}, {
|
|
13
|
+
status: "success";
|
|
14
|
+
biddingAmount: number;
|
|
15
|
+
boosted: boolean;
|
|
16
|
+
boostingAmount: number;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
status: z.ZodLiteral<"failed">;
|
|
19
|
+
errorMessage: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
status: "failed";
|
|
22
|
+
errorMessage: string;
|
|
23
|
+
}, {
|
|
24
|
+
status: "failed";
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
}>]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proposalBiddingStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.proposalBiddingStatusSchema = zod_1.z.discriminatedUnion('status', [
|
|
6
|
+
// Success case
|
|
7
|
+
zod_1.z.object({
|
|
8
|
+
status: zod_1.z.literal('success'),
|
|
9
|
+
biddingAmount: zod_1.z.number(),
|
|
10
|
+
boosted: zod_1.z.boolean(),
|
|
11
|
+
boostingAmount: zod_1.z.number(),
|
|
12
|
+
}),
|
|
13
|
+
// Failed case
|
|
14
|
+
zod_1.z.object({
|
|
15
|
+
status: zod_1.z.literal('failed'),
|
|
16
|
+
errorMessage: zod_1.z.string(),
|
|
17
|
+
}),
|
|
18
|
+
]);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const proposalDtoSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
status: z.ZodLiteral<"success">;
|
|
4
|
+
biddingAmount: z.ZodNumber;
|
|
5
|
+
boosted: z.ZodBoolean;
|
|
6
|
+
boostingAmount: z.ZodNumber;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
status: "success";
|
|
9
|
+
biddingAmount: number;
|
|
10
|
+
boosted: boolean;
|
|
11
|
+
boostingAmount: number;
|
|
12
|
+
}, {
|
|
13
|
+
status: "success";
|
|
14
|
+
biddingAmount: number;
|
|
15
|
+
boosted: boolean;
|
|
16
|
+
boostingAmount: number;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
status: z.ZodLiteral<"failed">;
|
|
19
|
+
errorMessage: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
status: "failed";
|
|
22
|
+
errorMessage: string;
|
|
23
|
+
}, {
|
|
24
|
+
status: "failed";
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
}>]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proposalDtoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.proposalDtoSchema = zod_1.z.discriminatedUnion('status', [
|
|
6
|
+
// Success case
|
|
7
|
+
zod_1.z.object({
|
|
8
|
+
status: zod_1.z.literal('success'),
|
|
9
|
+
biddingAmount: zod_1.z.number(),
|
|
10
|
+
boosted: zod_1.z.boolean(),
|
|
11
|
+
boostingAmount: zod_1.z.number(),
|
|
12
|
+
}),
|
|
13
|
+
// Failed case
|
|
14
|
+
zod_1.z.object({
|
|
15
|
+
status: zod_1.z.literal('failed'),
|
|
16
|
+
errorMessage: zod_1.z.string(),
|
|
17
|
+
}),
|
|
18
|
+
]);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignAIMetricsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.campaignAIMetricsSchema = zod_1.z.object({
|
|
6
|
+
leadsAnalyzed: zod_1.z.number(),
|
|
7
|
+
leadsBidded: zod_1.z.number(),
|
|
8
|
+
connectsSaved: zod_1.z.number(),
|
|
6
9
|
});
|
|
@@ -611,6 +611,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
611
611
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
612
612
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
613
613
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
614
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
614
615
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
615
616
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
616
617
|
expenses: z.ZodObject<{
|
|
@@ -1162,6 +1163,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1162
1163
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
1163
1164
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
1164
1165
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1166
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
1165
1167
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
1166
1168
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
1167
1169
|
expenses: z.ZodObject<{
|
|
@@ -2064,6 +2066,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2064
2066
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
2065
2067
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2066
2068
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2069
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
2067
2070
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2068
2071
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2069
2072
|
expenses: z.ZodObject<{
|
|
@@ -2966,6 +2969,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2966
2969
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
2967
2970
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
2968
2971
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
2972
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
2969
2973
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
2970
2974
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2971
2975
|
expenses: z.ZodObject<{
|
|
@@ -3865,6 +3869,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3865
3869
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
3866
3870
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
3867
3871
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
3872
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
3868
3873
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
3869
3874
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3870
3875
|
expenses: z.ZodObject<{
|
|
@@ -4415,6 +4420,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4415
4420
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
4416
4421
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
4417
4422
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
4423
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
4418
4424
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
4419
4425
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
4420
4426
|
expenses: z.ZodObject<{
|
|
@@ -5316,6 +5322,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5316
5322
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
5317
5323
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
5318
5324
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
5325
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
5319
5326
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
5320
5327
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
5321
5328
|
expenses: z.ZodObject<{
|
|
@@ -6217,6 +6224,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6217
6224
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
6218
6225
|
biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
|
|
6219
6226
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
6227
|
+
biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
|
|
6220
6228
|
bidWithWarning: z.ZodEnum<["bid", "skip"]>;
|
|
6221
6229
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
6222
6230
|
expenses: z.ZodObject<{
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignActivitySchema = exports.campaignAnalyticsResponseSchema = exports.campaignAnalyticsStatsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const lead_1 = require("../lead");
|
|
6
|
+
exports.campaignAnalyticsStatsSchema = zod_1.z.object({
|
|
7
|
+
jobsAnalyzed: zod_1.z.number(),
|
|
8
|
+
totalStats: zod_1.z.object({
|
|
9
|
+
contacted: zod_1.z.number(),
|
|
10
|
+
viewed: zod_1.z.number(),
|
|
11
|
+
replied: zod_1.z.number(),
|
|
12
|
+
negotiations: zod_1.z.number(),
|
|
13
|
+
won: zod_1.z.number(),
|
|
11
14
|
}),
|
|
12
|
-
statsByDate: z.array(z.object({
|
|
13
|
-
label: z.string(),
|
|
14
|
-
contacted: z.number(),
|
|
15
|
-
viewed: z.number(),
|
|
16
|
-
replied: z.number(),
|
|
17
|
-
negotiations: z.number(),
|
|
18
|
-
won: z.number(),
|
|
15
|
+
statsByDate: zod_1.z.array(zod_1.z.object({
|
|
16
|
+
label: zod_1.z.string(),
|
|
17
|
+
contacted: zod_1.z.number(),
|
|
18
|
+
viewed: zod_1.z.number(),
|
|
19
|
+
replied: zod_1.z.number(),
|
|
20
|
+
negotiations: zod_1.z.number(),
|
|
21
|
+
won: zod_1.z.number(),
|
|
19
22
|
})),
|
|
20
23
|
});
|
|
21
|
-
|
|
22
|
-
jobsAnalyzed: z.number(),
|
|
23
|
-
contacted: z.number(),
|
|
24
|
-
viewed: z.number(),
|
|
25
|
-
replied: z.number(),
|
|
26
|
-
negotiations: z.number(),
|
|
27
|
-
won: z.number(),
|
|
24
|
+
exports.campaignAnalyticsResponseSchema = zod_1.z.object({
|
|
25
|
+
jobsAnalyzed: zod_1.z.number(),
|
|
26
|
+
contacted: zod_1.z.number(),
|
|
27
|
+
viewed: zod_1.z.number(),
|
|
28
|
+
replied: zod_1.z.number(),
|
|
29
|
+
negotiations: zod_1.z.number(),
|
|
30
|
+
won: zod_1.z.number(),
|
|
28
31
|
});
|
|
29
|
-
|
|
30
|
-
createdAt: z.number(),
|
|
31
|
-
status: leadStatusSchema,
|
|
32
|
-
job: upworkJobSchema.pick({
|
|
32
|
+
exports.campaignActivitySchema = zod_1.z.object({
|
|
33
|
+
createdAt: zod_1.z.number(),
|
|
34
|
+
status: lead_1.leadStatusSchema,
|
|
35
|
+
job: lead_1.upworkJobSchema.pick({
|
|
33
36
|
id: true,
|
|
34
37
|
title: true,
|
|
35
38
|
datetime: true,
|
|
36
39
|
jobUrl: true,
|
|
37
40
|
}),
|
|
38
41
|
});
|
|
39
|
-
export const campaignActivityCreateSchema = campaignActivitySchema.pick({
|
|
40
|
-
status: true,
|
|
41
|
-
job: true,
|
|
42
|
-
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignExpensesSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.campaignExpensesSchema = zod_1.z.object({
|
|
6
|
+
biddingAmount: zod_1.z.number().default(0),
|
|
7
|
+
boostingAmount: zod_1.z.number().default(0),
|
|
8
|
+
boosted: zod_1.z.number().default(0),
|
|
6
9
|
});
|