lancer-shared 1.2.190 → 1.2.191
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 +187 -1
- package/dist/schemas/bidder/bid.d.ts +71 -14
- package/dist/schemas/bidder/exceptions/boost-above-max-connects.exception.d.ts +5 -0
- package/dist/schemas/bidder/exceptions/index.d.ts +3 -1
- package/dist/schemas/campaign/campaign-analytics.d.ts +24 -0
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +11 -11
- package/dist/schemas/campaign/campaign.d.ts +28 -0
- package/dist/schemas/campaign/sequence/budget-node.d.ts +294 -0
- package/dist/schemas/campaign/sequence/client-size-node.d.ts +10 -10
- package/dist/schemas/campaign/sequence/client-spent-node.d.ts +18 -18
- package/dist/schemas/campaign/sequence/edges.d.ts +8 -0
- package/dist/schemas/campaign/sequence/fixed-budget-node.d.ts +91 -0
- package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +18 -18
- package/dist/schemas/campaign/sequence/hourly-budget-node.d.ts +91 -0
- package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +18 -18
- package/dist/schemas/campaign/sequence/index.d.ts +3 -0
- package/dist/schemas/campaign/sequence/node-types.d.ts +1 -1
- package/dist/schemas/campaign/sequence/payment-type-node.d.ts +45 -0
- package/dist/schemas/campaign/sequence/payment-type.d.ts +45 -0
- package/dist/schemas/campaign/sequence/rating-node.d.ts +18 -18
- package/dist/schemas/campaign/sequence/start-node.d.ts +16 -0
- package/dist/schemas/campaign/sequence/suitability-node.d.ts +18 -18
- package/dist/schemas/scraper/scrape-payload.d.ts +19 -4
- package/package.json +1 -1
|
@@ -612,6 +612,9 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
612
612
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
613
613
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
614
614
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
615
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
616
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
617
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
615
618
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
616
619
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
617
620
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1216,6 +1219,9 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1216
1219
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
1217
1220
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
1218
1221
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1222
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
1223
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
1224
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
1219
1225
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
1220
1226
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1221
1227
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2172,6 +2178,9 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2172
2178
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
2173
2179
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
2174
2180
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2181
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
2182
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
2183
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
2175
2184
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
2176
2185
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2177
2186
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3128,6 +3137,9 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3128
3137
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
3129
3138
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
3130
3139
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3140
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
3141
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
3142
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
3131
3143
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
3132
3144
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3133
3145
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4081,6 +4093,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4081
4093
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
4082
4094
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
4083
4095
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4096
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
4097
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
4098
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
4084
4099
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
4085
4100
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4086
4101
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4684,6 +4699,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4684
4699
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
4685
4700
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
4686
4701
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4702
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
4703
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
4704
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
4687
4705
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
4688
4706
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4689
4707
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5639,6 +5657,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5639
5657
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
5640
5658
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
5641
5659
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
5660
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
5661
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
5662
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
5642
5663
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
5643
5664
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
5644
5665
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6594,6 +6615,9 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6594
6615
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
6595
6616
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
6596
6617
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6618
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
6619
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
6620
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
6597
6621
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
6598
6622
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6599
6623
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>;
|
|
2
|
+
export declare const campaignNotificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>;
|
|
3
3
|
export declare const chatbotChannelSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
name: z.ZodString;
|
|
@@ -27,7 +27,7 @@ export declare const chatbotSchema: z.ZodObject<{
|
|
|
27
27
|
}>, "many">;
|
|
28
28
|
selectedChannelId: z.ZodNullable<z.ZodString>;
|
|
29
29
|
notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
-
notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>, z.ZodDefault<z.ZodBoolean>>;
|
|
30
|
+
notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>, z.ZodDefault<z.ZodBoolean>>;
|
|
31
31
|
organizationId: z.ZodString;
|
|
32
32
|
campaignId: z.ZodString;
|
|
33
33
|
createdAt: z.ZodNumber;
|
|
@@ -40,7 +40,7 @@ export declare const chatbotSchema: z.ZodObject<{
|
|
|
40
40
|
}[];
|
|
41
41
|
selectedChannelId: string | null;
|
|
42
42
|
notificationsEnabled: boolean;
|
|
43
|
-
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean>>;
|
|
43
|
+
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "boostAboveMaxConnects", boolean>>;
|
|
44
44
|
organizationId: string;
|
|
45
45
|
campaignId: string;
|
|
46
46
|
createdAt: number;
|
|
@@ -54,7 +54,7 @@ export declare const chatbotSchema: z.ZodObject<{
|
|
|
54
54
|
name: string;
|
|
55
55
|
}[];
|
|
56
56
|
selectedChannelId: string | null;
|
|
57
|
-
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean | undefined>>;
|
|
57
|
+
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "boostAboveMaxConnects", boolean | undefined>>;
|
|
58
58
|
organizationId: string;
|
|
59
59
|
campaignId: string;
|
|
60
60
|
createdAt: number;
|
|
@@ -79,7 +79,7 @@ export declare const createChatbotSchema: z.ZodObject<Pick<{
|
|
|
79
79
|
}>, "many">;
|
|
80
80
|
selectedChannelId: z.ZodNullable<z.ZodString>;
|
|
81
81
|
notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
82
|
-
notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>, z.ZodDefault<z.ZodBoolean>>;
|
|
82
|
+
notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>, z.ZodDefault<z.ZodBoolean>>;
|
|
83
83
|
organizationId: z.ZodString;
|
|
84
84
|
campaignId: z.ZodString;
|
|
85
85
|
createdAt: z.ZodNumber;
|
|
@@ -121,7 +121,7 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
|
|
|
121
121
|
}>, "many">;
|
|
122
122
|
selectedChannelId: z.ZodNullable<z.ZodString>;
|
|
123
123
|
notificationsEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
124
|
-
notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>, z.ZodDefault<z.ZodBoolean>>;
|
|
124
|
+
notificationSettings: z.ZodRecord<z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>, z.ZodDefault<z.ZodBoolean>>;
|
|
125
125
|
organizationId: z.ZodString;
|
|
126
126
|
campaignId: z.ZodString;
|
|
127
127
|
createdAt: z.ZodNumber;
|
|
@@ -129,31 +129,31 @@ export declare const updateChatbotSchema: z.ZodObject<Pick<{
|
|
|
129
129
|
}, "selectedChannelId" | "notificationsEnabled" | "notificationSettings">, "strip", z.ZodTypeAny, {
|
|
130
130
|
selectedChannelId: string | null;
|
|
131
131
|
notificationsEnabled: boolean;
|
|
132
|
-
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean>>;
|
|
132
|
+
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "boostAboveMaxConnects", boolean>>;
|
|
133
133
|
}, {
|
|
134
134
|
selectedChannelId: string | null;
|
|
135
|
-
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning", boolean | undefined>>;
|
|
135
|
+
notificationSettings: Partial<Record<"suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "boostAboveMaxConnects", boolean | undefined>>;
|
|
136
136
|
notificationsEnabled?: boolean | undefined;
|
|
137
137
|
}>;
|
|
138
138
|
export declare const sendNotificationRequestSchema: z.ZodObject<{
|
|
139
139
|
organizationId: z.ZodString;
|
|
140
140
|
campaignId: z.ZodString;
|
|
141
141
|
leadId: z.ZodString;
|
|
142
|
-
notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning"]>;
|
|
142
|
+
notificationType: z.ZodEnum<["suitableLead", "proposalSent", "proposalViewed", "proposalReplied", "noConnects", "accountDisconnected", "biddingWarning", "boostAboveMaxConnects"]>;
|
|
143
143
|
message: z.ZodOptional<z.ZodString>;
|
|
144
144
|
isSleepModeActive: z.ZodOptional<z.ZodBoolean>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
organizationId: string;
|
|
147
147
|
campaignId: string;
|
|
148
148
|
leadId: string;
|
|
149
|
-
notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
|
|
149
|
+
notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "boostAboveMaxConnects";
|
|
150
150
|
message?: string | undefined;
|
|
151
151
|
isSleepModeActive?: boolean | undefined;
|
|
152
152
|
}, {
|
|
153
153
|
organizationId: string;
|
|
154
154
|
campaignId: string;
|
|
155
155
|
leadId: string;
|
|
156
|
-
notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning";
|
|
156
|
+
notificationType: "suitableLead" | "proposalSent" | "proposalViewed" | "proposalReplied" | "noConnects" | "accountDisconnected" | "biddingWarning" | "boostAboveMaxConnects";
|
|
157
157
|
message?: string | undefined;
|
|
158
158
|
isSleepModeActive?: boolean | undefined;
|
|
159
159
|
}>;
|
|
@@ -62,6 +62,7 @@ export declare const workTimeSchema: z.ZodObject<{
|
|
|
62
62
|
}[];
|
|
63
63
|
timezone: string | null;
|
|
64
64
|
}>;
|
|
65
|
+
export declare const insufficeintBoostConnectsActionEnum: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
65
66
|
export declare const campaignSchema: z.ZodObject<{
|
|
66
67
|
id: z.ZodString;
|
|
67
68
|
name: z.ZodString;
|
|
@@ -300,6 +301,9 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
300
301
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
301
302
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
302
303
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
304
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
305
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
306
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
303
307
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
304
308
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
305
309
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -466,6 +470,9 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
466
470
|
confirmedBillingAt: number | null;
|
|
467
471
|
boostingEnabled: boolean | null;
|
|
468
472
|
maximumBoost: number | null;
|
|
473
|
+
boostDownToNthPlace: number | null;
|
|
474
|
+
connectsAbovePrevious: number | null;
|
|
475
|
+
insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
|
|
469
476
|
monthlyBudget: number | null;
|
|
470
477
|
boostingThreshold: number | null;
|
|
471
478
|
biddingDelayInMinutes: number;
|
|
@@ -570,6 +577,9 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
570
577
|
createdAt: number;
|
|
571
578
|
updatedAt: number;
|
|
572
579
|
confirmedBillingAt: number | null;
|
|
580
|
+
boostDownToNthPlace: number | null;
|
|
581
|
+
connectsAbovePrevious: number | null;
|
|
582
|
+
insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
|
|
573
583
|
monthlyBudget: number | null;
|
|
574
584
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
575
585
|
biddingFixedHourlyRate: number | null;
|
|
@@ -876,6 +886,9 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
876
886
|
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
877
887
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
878
888
|
maximumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
889
|
+
boostDownToNthPlace: z.ZodNullable<z.ZodNumber>;
|
|
890
|
+
connectsAbovePrevious: z.ZodNullable<z.ZodNumber>;
|
|
891
|
+
insufficeintBoostConnectsAction: z.ZodEnum<["skip", "bid_without_boost"]>;
|
|
879
892
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
880
893
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
881
894
|
biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1039,6 +1052,9 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
1039
1052
|
confirmedBillingAt: number | null;
|
|
1040
1053
|
boostingEnabled: boolean | null;
|
|
1041
1054
|
maximumBoost: number | null;
|
|
1055
|
+
boostDownToNthPlace: number | null;
|
|
1056
|
+
connectsAbovePrevious: number | null;
|
|
1057
|
+
insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
|
|
1042
1058
|
monthlyBudget: number | null;
|
|
1043
1059
|
boostingThreshold: number | null;
|
|
1044
1060
|
biddingDelayInMinutes: number;
|
|
@@ -1134,6 +1150,9 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
1134
1150
|
} | null;
|
|
1135
1151
|
};
|
|
1136
1152
|
confirmedBillingAt: number | null;
|
|
1153
|
+
boostDownToNthPlace: number | null;
|
|
1154
|
+
connectsAbovePrevious: number | null;
|
|
1155
|
+
insufficeintBoostConnectsAction: "skip" | "bid_without_boost";
|
|
1137
1156
|
monthlyBudget: number | null;
|
|
1138
1157
|
biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
|
|
1139
1158
|
biddingFixedHourlyRate: number | null;
|
|
@@ -1414,6 +1433,9 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1414
1433
|
confirmedBillingAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1415
1434
|
boostingEnabled: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
|
|
1416
1435
|
maximumBoost: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1436
|
+
boostDownToNthPlace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1437
|
+
connectsAbovePrevious: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1438
|
+
insufficeintBoostConnectsAction: z.ZodOptional<z.ZodEnum<["skip", "bid_without_boost"]>>;
|
|
1417
1439
|
monthlyBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1418
1440
|
boostingThreshold: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1419
1441
|
biddingDelayInMinutes: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -1578,6 +1600,9 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1578
1600
|
confirmedBillingAt?: number | null | undefined;
|
|
1579
1601
|
boostingEnabled?: boolean | null | undefined;
|
|
1580
1602
|
maximumBoost?: number | null | undefined;
|
|
1603
|
+
boostDownToNthPlace?: number | null | undefined;
|
|
1604
|
+
connectsAbovePrevious?: number | null | undefined;
|
|
1605
|
+
insufficeintBoostConnectsAction?: "skip" | "bid_without_boost" | undefined;
|
|
1581
1606
|
monthlyBudget?: number | null | undefined;
|
|
1582
1607
|
boostingThreshold?: number | null | undefined;
|
|
1583
1608
|
biddingDelayInMinutes?: number | undefined;
|
|
@@ -1682,6 +1707,9 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1682
1707
|
confirmedBillingAt?: number | null | undefined;
|
|
1683
1708
|
boostingEnabled?: boolean | null | undefined;
|
|
1684
1709
|
maximumBoost?: number | null | undefined;
|
|
1710
|
+
boostDownToNthPlace?: number | null | undefined;
|
|
1711
|
+
connectsAbovePrevious?: number | null | undefined;
|
|
1712
|
+
insufficeintBoostConnectsAction?: "skip" | "bid_without_boost" | undefined;
|
|
1685
1713
|
monthlyBudget?: number | null | undefined;
|
|
1686
1714
|
boostingThreshold?: number | null | undefined;
|
|
1687
1715
|
biddingDelayInMinutes?: number | undefined;
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const budgetPaymentTypeEnum: z.ZodEnum<["Hourly", "Fixed-price"]>;
|
|
4
|
+
export type BudgetPaymentType = z.infer<typeof budgetPaymentTypeEnum>;
|
|
5
|
+
export declare const createBudgetFormSchema: (existingHourlyRateRanges: {
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
}[], existingFixedBudgetRanges: {
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
12
|
+
paymentTypes: z.ZodArray<z.ZodEnum<["Hourly", "Fixed-price"]>, "many">;
|
|
13
|
+
hourlyRateMin: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
hourlyRateMax: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
fixedBudgetMin: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
fixedBudgetMax: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
20
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
21
|
+
hourlyRateMin?: number | undefined;
|
|
22
|
+
hourlyRateMax?: number | undefined;
|
|
23
|
+
fixedBudgetMin?: number | undefined;
|
|
24
|
+
fixedBudgetMax?: number | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
27
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
28
|
+
hourlyRateMin?: number | undefined;
|
|
29
|
+
hourlyRateMax?: number | undefined;
|
|
30
|
+
fixedBudgetMin?: number | undefined;
|
|
31
|
+
fixedBudgetMax?: number | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
34
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
35
|
+
hourlyRateMin?: number | undefined;
|
|
36
|
+
hourlyRateMax?: number | undefined;
|
|
37
|
+
fixedBudgetMin?: number | undefined;
|
|
38
|
+
fixedBudgetMax?: number | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
42
|
+
hourlyRateMin?: number | undefined;
|
|
43
|
+
hourlyRateMax?: number | undefined;
|
|
44
|
+
fixedBudgetMin?: number | undefined;
|
|
45
|
+
fixedBudgetMax?: number | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
48
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
49
|
+
hourlyRateMin?: number | undefined;
|
|
50
|
+
hourlyRateMax?: number | undefined;
|
|
51
|
+
fixedBudgetMin?: number | undefined;
|
|
52
|
+
fixedBudgetMax?: number | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
55
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
56
|
+
hourlyRateMin?: number | undefined;
|
|
57
|
+
hourlyRateMax?: number | undefined;
|
|
58
|
+
fixedBudgetMin?: number | undefined;
|
|
59
|
+
fixedBudgetMax?: number | undefined;
|
|
60
|
+
}>, {
|
|
61
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
63
|
+
hourlyRateMin?: number | undefined;
|
|
64
|
+
hourlyRateMax?: number | undefined;
|
|
65
|
+
fixedBudgetMin?: number | undefined;
|
|
66
|
+
fixedBudgetMax?: number | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
69
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
70
|
+
hourlyRateMin?: number | undefined;
|
|
71
|
+
hourlyRateMax?: number | undefined;
|
|
72
|
+
fixedBudgetMin?: number | undefined;
|
|
73
|
+
fixedBudgetMax?: number | undefined;
|
|
74
|
+
}>, {
|
|
75
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
76
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
77
|
+
hourlyRateMin?: number | undefined;
|
|
78
|
+
hourlyRateMax?: number | undefined;
|
|
79
|
+
fixedBudgetMin?: number | undefined;
|
|
80
|
+
fixedBudgetMax?: number | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
83
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
84
|
+
hourlyRateMin?: number | undefined;
|
|
85
|
+
hourlyRateMax?: number | undefined;
|
|
86
|
+
fixedBudgetMin?: number | undefined;
|
|
87
|
+
fixedBudgetMax?: number | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
90
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
91
|
+
hourlyRateMin?: number | undefined;
|
|
92
|
+
hourlyRateMax?: number | undefined;
|
|
93
|
+
fixedBudgetMin?: number | undefined;
|
|
94
|
+
fixedBudgetMax?: number | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
97
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
98
|
+
hourlyRateMin?: number | undefined;
|
|
99
|
+
hourlyRateMax?: number | undefined;
|
|
100
|
+
fixedBudgetMin?: number | undefined;
|
|
101
|
+
fixedBudgetMax?: number | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
104
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
105
|
+
hourlyRateMin?: number | undefined;
|
|
106
|
+
hourlyRateMax?: number | undefined;
|
|
107
|
+
fixedBudgetMin?: number | undefined;
|
|
108
|
+
fixedBudgetMax?: number | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
111
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
112
|
+
hourlyRateMin?: number | undefined;
|
|
113
|
+
hourlyRateMax?: number | undefined;
|
|
114
|
+
fixedBudgetMin?: number | undefined;
|
|
115
|
+
fixedBudgetMax?: number | undefined;
|
|
116
|
+
}>, {
|
|
117
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
118
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
119
|
+
hourlyRateMin?: number | undefined;
|
|
120
|
+
hourlyRateMax?: number | undefined;
|
|
121
|
+
fixedBudgetMin?: number | undefined;
|
|
122
|
+
fixedBudgetMax?: number | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
125
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
126
|
+
hourlyRateMin?: number | undefined;
|
|
127
|
+
hourlyRateMax?: number | undefined;
|
|
128
|
+
fixedBudgetMin?: number | undefined;
|
|
129
|
+
fixedBudgetMax?: number | undefined;
|
|
130
|
+
}>, {
|
|
131
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
132
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
133
|
+
hourlyRateMin?: number | undefined;
|
|
134
|
+
hourlyRateMax?: number | undefined;
|
|
135
|
+
fixedBudgetMin?: number | undefined;
|
|
136
|
+
fixedBudgetMax?: number | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
139
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
140
|
+
hourlyRateMin?: number | undefined;
|
|
141
|
+
hourlyRateMax?: number | undefined;
|
|
142
|
+
fixedBudgetMin?: number | undefined;
|
|
143
|
+
fixedBudgetMax?: number | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
export declare const addBudgetNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
146
|
+
paymentTypes: z.ZodArray<z.ZodEnum<["Hourly", "Fixed-price"]>, "many">;
|
|
147
|
+
hourlyRateMin: z.ZodOptional<z.ZodNumber>;
|
|
148
|
+
hourlyRateMax: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
fixedBudgetMin: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
fixedBudgetMax: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
154
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
155
|
+
hourlyRateMin?: number | undefined;
|
|
156
|
+
hourlyRateMax?: number | undefined;
|
|
157
|
+
fixedBudgetMin?: number | undefined;
|
|
158
|
+
fixedBudgetMax?: number | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
161
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
162
|
+
hourlyRateMin?: number | undefined;
|
|
163
|
+
hourlyRateMax?: number | undefined;
|
|
164
|
+
fixedBudgetMin?: number | undefined;
|
|
165
|
+
fixedBudgetMax?: number | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
168
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
169
|
+
hourlyRateMin?: number | undefined;
|
|
170
|
+
hourlyRateMax?: number | undefined;
|
|
171
|
+
fixedBudgetMin?: number | undefined;
|
|
172
|
+
fixedBudgetMax?: number | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
175
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
176
|
+
hourlyRateMin?: number | undefined;
|
|
177
|
+
hourlyRateMax?: number | undefined;
|
|
178
|
+
fixedBudgetMin?: number | undefined;
|
|
179
|
+
fixedBudgetMax?: number | undefined;
|
|
180
|
+
}>, {
|
|
181
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
182
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
183
|
+
hourlyRateMin?: number | undefined;
|
|
184
|
+
hourlyRateMax?: number | undefined;
|
|
185
|
+
fixedBudgetMin?: number | undefined;
|
|
186
|
+
fixedBudgetMax?: number | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
189
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
190
|
+
hourlyRateMin?: number | undefined;
|
|
191
|
+
hourlyRateMax?: number | undefined;
|
|
192
|
+
fixedBudgetMin?: number | undefined;
|
|
193
|
+
fixedBudgetMax?: number | undefined;
|
|
194
|
+
}>, {
|
|
195
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
196
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
197
|
+
hourlyRateMin?: number | undefined;
|
|
198
|
+
hourlyRateMax?: number | undefined;
|
|
199
|
+
fixedBudgetMin?: number | undefined;
|
|
200
|
+
fixedBudgetMax?: number | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
203
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
204
|
+
hourlyRateMin?: number | undefined;
|
|
205
|
+
hourlyRateMax?: number | undefined;
|
|
206
|
+
fixedBudgetMin?: number | undefined;
|
|
207
|
+
fixedBudgetMax?: number | undefined;
|
|
208
|
+
}>, {
|
|
209
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
210
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
211
|
+
hourlyRateMin?: number | undefined;
|
|
212
|
+
hourlyRateMax?: number | undefined;
|
|
213
|
+
fixedBudgetMin?: number | undefined;
|
|
214
|
+
fixedBudgetMax?: number | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
217
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
218
|
+
hourlyRateMin?: number | undefined;
|
|
219
|
+
hourlyRateMax?: number | undefined;
|
|
220
|
+
fixedBudgetMin?: number | undefined;
|
|
221
|
+
fixedBudgetMax?: number | undefined;
|
|
222
|
+
}>, {
|
|
223
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
224
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
225
|
+
hourlyRateMin?: number | undefined;
|
|
226
|
+
hourlyRateMax?: number | undefined;
|
|
227
|
+
fixedBudgetMin?: number | undefined;
|
|
228
|
+
fixedBudgetMax?: number | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
231
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
232
|
+
hourlyRateMin?: number | undefined;
|
|
233
|
+
hourlyRateMax?: number | undefined;
|
|
234
|
+
fixedBudgetMin?: number | undefined;
|
|
235
|
+
fixedBudgetMax?: number | undefined;
|
|
236
|
+
}>, {
|
|
237
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
238
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
239
|
+
hourlyRateMin?: number | undefined;
|
|
240
|
+
hourlyRateMax?: number | undefined;
|
|
241
|
+
fixedBudgetMin?: number | undefined;
|
|
242
|
+
fixedBudgetMax?: number | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
245
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
246
|
+
hourlyRateMin?: number | undefined;
|
|
247
|
+
hourlyRateMax?: number | undefined;
|
|
248
|
+
fixedBudgetMin?: number | undefined;
|
|
249
|
+
fixedBudgetMax?: number | undefined;
|
|
250
|
+
}>, {
|
|
251
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
252
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
253
|
+
hourlyRateMin?: number | undefined;
|
|
254
|
+
hourlyRateMax?: number | undefined;
|
|
255
|
+
fixedBudgetMin?: number | undefined;
|
|
256
|
+
fixedBudgetMax?: number | undefined;
|
|
257
|
+
}, {
|
|
258
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
259
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
260
|
+
hourlyRateMin?: number | undefined;
|
|
261
|
+
hourlyRateMax?: number | undefined;
|
|
262
|
+
fixedBudgetMin?: number | undefined;
|
|
263
|
+
fixedBudgetMax?: number | undefined;
|
|
264
|
+
}>, {
|
|
265
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
266
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
267
|
+
hourlyRateMin?: number | undefined;
|
|
268
|
+
hourlyRateMax?: number | undefined;
|
|
269
|
+
fixedBudgetMin?: number | undefined;
|
|
270
|
+
fixedBudgetMax?: number | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
273
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
274
|
+
hourlyRateMin?: number | undefined;
|
|
275
|
+
hourlyRateMax?: number | undefined;
|
|
276
|
+
fixedBudgetMin?: number | undefined;
|
|
277
|
+
fixedBudgetMax?: number | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
export type AddBudgetNodeFormData = z.infer<typeof addBudgetNodeFormSchema>;
|
|
280
|
+
export interface BudgetNodeData {
|
|
281
|
+
label: string;
|
|
282
|
+
onSubmit: (formData: AddBudgetNodeFormData) => void;
|
|
283
|
+
onDelete: () => void;
|
|
284
|
+
existingHourlyRateRanges: {
|
|
285
|
+
min: number;
|
|
286
|
+
max: number;
|
|
287
|
+
}[];
|
|
288
|
+
existingFixedBudgetRanges: {
|
|
289
|
+
min: number;
|
|
290
|
+
max: number;
|
|
291
|
+
}[];
|
|
292
|
+
allowedNodes: NodeType[];
|
|
293
|
+
[key: string]: unknown;
|
|
294
|
+
}
|
|
@@ -4,35 +4,35 @@ import { NodeType } from './node-types';
|
|
|
4
4
|
export type ClientSize = z.infer<typeof clientSizeEnum>;
|
|
5
5
|
export declare const createClientSizeFormSchema: (existingSizes: ClientSize[]) => z.ZodEffects<z.ZodObject<{
|
|
6
6
|
sizes: z.ZodArray<z.ZodEnum<["Individual client", "Small company (2-9 people)", "Mid-sized company (10-99 people)", "Large company (100-1,000 people)", "Large company (1,000+ people)", "Unspecified"]>, "many">;
|
|
7
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
7
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
10
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
10
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
11
11
|
}, {
|
|
12
12
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
13
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
14
14
|
}>, {
|
|
15
15
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
16
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
16
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
17
17
|
}, {
|
|
18
18
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
19
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
19
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
20
20
|
}>;
|
|
21
21
|
export declare const addFromClientSizeNodeFormSchema: z.ZodEffects<z.ZodObject<{
|
|
22
22
|
sizes: z.ZodArray<z.ZodEnum<["Individual client", "Small company (2-9 people)", "Mid-sized company (10-99 people)", "Large company (100-1,000 people)", "Large company (1,000+ people)", "Unspecified"]>, "many">;
|
|
23
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
23
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
26
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
26
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
27
27
|
}, {
|
|
28
28
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
29
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
30
30
|
}>, {
|
|
31
31
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
32
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
32
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
33
33
|
}, {
|
|
34
34
|
sizes: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[];
|
|
35
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
35
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
36
36
|
}>;
|
|
37
37
|
export type AddFromClientSizeNodeFormData = z.infer<typeof addFromClientSizeNodeFormSchema>;
|
|
38
38
|
export interface ClientSizeNodeData {
|