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
|
@@ -7,76 +7,76 @@ export declare const createClientSpentFormSchema: (existingRanges: {
|
|
|
7
7
|
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
8
8
|
from: z.ZodNumber;
|
|
9
9
|
to: z.ZodNumber;
|
|
10
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
10
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
from: number;
|
|
13
13
|
to: number;
|
|
14
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
14
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
15
15
|
}, {
|
|
16
16
|
from: number;
|
|
17
17
|
to: number;
|
|
18
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
18
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
19
19
|
}>, {
|
|
20
20
|
from: number;
|
|
21
21
|
to: number;
|
|
22
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
22
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
23
23
|
}, {
|
|
24
24
|
from: number;
|
|
25
25
|
to: number;
|
|
26
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
26
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
27
27
|
}>, {
|
|
28
28
|
from: number;
|
|
29
29
|
to: number;
|
|
30
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
30
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
31
31
|
}, {
|
|
32
32
|
from: number;
|
|
33
33
|
to: number;
|
|
34
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
34
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
35
35
|
}>, {
|
|
36
36
|
from: number;
|
|
37
37
|
to: number;
|
|
38
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
38
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
39
39
|
}, {
|
|
40
40
|
from: number;
|
|
41
41
|
to: number;
|
|
42
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
42
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
43
43
|
}>;
|
|
44
44
|
export declare const addFromClientSpentNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
45
45
|
from: z.ZodNumber;
|
|
46
46
|
to: z.ZodNumber;
|
|
47
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
47
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
from: number;
|
|
50
50
|
to: number;
|
|
51
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
51
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
52
52
|
}, {
|
|
53
53
|
from: number;
|
|
54
54
|
to: number;
|
|
55
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
55
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
56
56
|
}>, {
|
|
57
57
|
from: number;
|
|
58
58
|
to: number;
|
|
59
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
59
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
60
60
|
}, {
|
|
61
61
|
from: number;
|
|
62
62
|
to: number;
|
|
63
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
63
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
64
64
|
}>, {
|
|
65
65
|
from: number;
|
|
66
66
|
to: number;
|
|
67
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
67
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
68
68
|
}, {
|
|
69
69
|
from: number;
|
|
70
70
|
to: number;
|
|
71
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
71
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
72
72
|
}>, {
|
|
73
73
|
from: number;
|
|
74
74
|
to: number;
|
|
75
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
75
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
76
76
|
}, {
|
|
77
77
|
from: number;
|
|
78
78
|
to: number;
|
|
79
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
79
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
80
80
|
}>;
|
|
81
81
|
export type AddFromClientSpentNodeFormData = z.infer<typeof addFromClientSpentNodeFormSchema>;
|
|
82
82
|
export interface ClientSpentNodeData {
|
|
@@ -22,3 +22,11 @@ export interface ClientRatingEdgeData {
|
|
|
22
22
|
from: number;
|
|
23
23
|
to: number;
|
|
24
24
|
}
|
|
25
|
+
export interface StartEdgeData {
|
|
26
|
+
}
|
|
27
|
+
export interface BudgetEdgeData {
|
|
28
|
+
hourlyRateMin: number;
|
|
29
|
+
hourlyRateMax: number;
|
|
30
|
+
fixedBudgetMin: number;
|
|
31
|
+
fixedBudgetMax: number;
|
|
32
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createFixedBudgetFormSchema: (existingFixedBudgetRanges: {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
fixedBudgetMin: z.ZodNumber;
|
|
8
|
+
fixedBudgetMax: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
fixedBudgetMin: number;
|
|
12
|
+
fixedBudgetMax: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
14
|
+
}, {
|
|
15
|
+
fixedBudgetMin: number;
|
|
16
|
+
fixedBudgetMax: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
18
|
+
}>, {
|
|
19
|
+
fixedBudgetMin: number;
|
|
20
|
+
fixedBudgetMax: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
22
|
+
}, {
|
|
23
|
+
fixedBudgetMin: number;
|
|
24
|
+
fixedBudgetMax: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
26
|
+
}>, {
|
|
27
|
+
fixedBudgetMin: number;
|
|
28
|
+
fixedBudgetMax: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
30
|
+
}, {
|
|
31
|
+
fixedBudgetMin: number;
|
|
32
|
+
fixedBudgetMax: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
34
|
+
}>, {
|
|
35
|
+
fixedBudgetMin: number;
|
|
36
|
+
fixedBudgetMax: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
38
|
+
}, {
|
|
39
|
+
fixedBudgetMin: number;
|
|
40
|
+
fixedBudgetMax: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addFixedBudgetNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
fixedBudgetMin: z.ZodNumber;
|
|
45
|
+
fixedBudgetMax: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
fixedBudgetMin: number;
|
|
49
|
+
fixedBudgetMax: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
51
|
+
}, {
|
|
52
|
+
fixedBudgetMin: number;
|
|
53
|
+
fixedBudgetMax: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
55
|
+
}>, {
|
|
56
|
+
fixedBudgetMin: number;
|
|
57
|
+
fixedBudgetMax: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
59
|
+
}, {
|
|
60
|
+
fixedBudgetMin: number;
|
|
61
|
+
fixedBudgetMax: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
63
|
+
}>, {
|
|
64
|
+
fixedBudgetMin: number;
|
|
65
|
+
fixedBudgetMax: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
67
|
+
}, {
|
|
68
|
+
fixedBudgetMin: number;
|
|
69
|
+
fixedBudgetMax: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
71
|
+
}>, {
|
|
72
|
+
fixedBudgetMin: number;
|
|
73
|
+
fixedBudgetMax: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
75
|
+
}, {
|
|
76
|
+
fixedBudgetMin: number;
|
|
77
|
+
fixedBudgetMax: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddFixedBudgetNodeFormData = z.infer<typeof addFixedBudgetNodeFormSchema>;
|
|
81
|
+
export interface FixedBudgetNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddFixedBudgetNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingFixedBudgetRanges: {
|
|
86
|
+
min: number;
|
|
87
|
+
max: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
@@ -6,76 +6,76 @@ export declare const createClientHireRateFormSchema: (existingRanges: {
|
|
|
6
6
|
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
7
|
from: z.ZodNumber;
|
|
8
8
|
to: z.ZodNumber;
|
|
9
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
from: number;
|
|
12
12
|
to: number;
|
|
13
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
14
14
|
}, {
|
|
15
15
|
from: number;
|
|
16
16
|
to: number;
|
|
17
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
18
18
|
}>, {
|
|
19
19
|
from: number;
|
|
20
20
|
to: number;
|
|
21
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
22
22
|
}, {
|
|
23
23
|
from: number;
|
|
24
24
|
to: number;
|
|
25
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
26
26
|
}>, {
|
|
27
27
|
from: number;
|
|
28
28
|
to: number;
|
|
29
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
30
30
|
}, {
|
|
31
31
|
from: number;
|
|
32
32
|
to: number;
|
|
33
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
34
34
|
}>, {
|
|
35
35
|
from: number;
|
|
36
36
|
to: number;
|
|
37
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
38
38
|
}, {
|
|
39
39
|
from: number;
|
|
40
40
|
to: number;
|
|
41
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
42
42
|
}>;
|
|
43
43
|
export declare const addFromClientHireRateNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
44
|
from: z.ZodNumber;
|
|
45
45
|
to: z.ZodNumber;
|
|
46
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
from: number;
|
|
49
49
|
to: number;
|
|
50
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
51
51
|
}, {
|
|
52
52
|
from: number;
|
|
53
53
|
to: number;
|
|
54
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
55
55
|
}>, {
|
|
56
56
|
from: number;
|
|
57
57
|
to: number;
|
|
58
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
59
59
|
}, {
|
|
60
60
|
from: number;
|
|
61
61
|
to: number;
|
|
62
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
63
63
|
}>, {
|
|
64
64
|
from: number;
|
|
65
65
|
to: number;
|
|
66
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
67
67
|
}, {
|
|
68
68
|
from: number;
|
|
69
69
|
to: number;
|
|
70
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
71
71
|
}>, {
|
|
72
72
|
from: number;
|
|
73
73
|
to: number;
|
|
74
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
75
75
|
}, {
|
|
76
76
|
from: number;
|
|
77
77
|
to: number;
|
|
78
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
79
79
|
}>;
|
|
80
80
|
export type AddFromClientHireRateNodeFormData = z.infer<typeof addFromClientHireRateNodeFormSchema>;
|
|
81
81
|
export interface ClientHireRateNodeData {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createHourlyBudgetFormSchema: (existingHourlyRateRanges: {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
hourlyRateMin: z.ZodNumber;
|
|
8
|
+
hourlyRateMax: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
hourlyRateMin: number;
|
|
12
|
+
hourlyRateMax: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
14
|
+
}, {
|
|
15
|
+
hourlyRateMin: number;
|
|
16
|
+
hourlyRateMax: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
18
|
+
}>, {
|
|
19
|
+
hourlyRateMin: number;
|
|
20
|
+
hourlyRateMax: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
22
|
+
}, {
|
|
23
|
+
hourlyRateMin: number;
|
|
24
|
+
hourlyRateMax: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
26
|
+
}>, {
|
|
27
|
+
hourlyRateMin: number;
|
|
28
|
+
hourlyRateMax: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
30
|
+
}, {
|
|
31
|
+
hourlyRateMin: number;
|
|
32
|
+
hourlyRateMax: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
34
|
+
}>, {
|
|
35
|
+
hourlyRateMin: number;
|
|
36
|
+
hourlyRateMax: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
38
|
+
}, {
|
|
39
|
+
hourlyRateMin: number;
|
|
40
|
+
hourlyRateMax: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addHourlyBudgetNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
hourlyRateMin: z.ZodNumber;
|
|
45
|
+
hourlyRateMax: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
hourlyRateMin: number;
|
|
49
|
+
hourlyRateMax: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
51
|
+
}, {
|
|
52
|
+
hourlyRateMin: number;
|
|
53
|
+
hourlyRateMax: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
55
|
+
}>, {
|
|
56
|
+
hourlyRateMin: number;
|
|
57
|
+
hourlyRateMax: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
59
|
+
}, {
|
|
60
|
+
hourlyRateMin: number;
|
|
61
|
+
hourlyRateMax: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
63
|
+
}>, {
|
|
64
|
+
hourlyRateMin: number;
|
|
65
|
+
hourlyRateMax: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
67
|
+
}, {
|
|
68
|
+
hourlyRateMin: number;
|
|
69
|
+
hourlyRateMax: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
71
|
+
}>, {
|
|
72
|
+
hourlyRateMin: number;
|
|
73
|
+
hourlyRateMax: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
75
|
+
}, {
|
|
76
|
+
hourlyRateMin: number;
|
|
77
|
+
hourlyRateMax: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddHourlyBudgetNodeFormData = z.infer<typeof addHourlyBudgetNodeFormSchema>;
|
|
81
|
+
export interface HourlyBudgetNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddHourlyBudgetNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingHourlyRateRanges: {
|
|
86
|
+
min: number;
|
|
87
|
+
max: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
@@ -6,76 +6,76 @@ export declare const createHourlyRateFormSchema: (existingRanges: {
|
|
|
6
6
|
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
7
|
from: z.ZodNumber;
|
|
8
8
|
to: z.ZodNumber;
|
|
9
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
from: number;
|
|
12
12
|
to: number;
|
|
13
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
14
14
|
}, {
|
|
15
15
|
from: number;
|
|
16
16
|
to: number;
|
|
17
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
18
18
|
}>, {
|
|
19
19
|
from: number;
|
|
20
20
|
to: number;
|
|
21
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
22
22
|
}, {
|
|
23
23
|
from: number;
|
|
24
24
|
to: number;
|
|
25
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
26
26
|
}>, {
|
|
27
27
|
from: number;
|
|
28
28
|
to: number;
|
|
29
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
30
30
|
}, {
|
|
31
31
|
from: number;
|
|
32
32
|
to: number;
|
|
33
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
34
34
|
}>, {
|
|
35
35
|
from: number;
|
|
36
36
|
to: number;
|
|
37
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
38
38
|
}, {
|
|
39
39
|
from: number;
|
|
40
40
|
to: number;
|
|
41
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
42
42
|
}>;
|
|
43
43
|
export declare const addFromHourlyRateNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
44
|
from: z.ZodNumber;
|
|
45
45
|
to: z.ZodNumber;
|
|
46
|
-
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
from: number;
|
|
49
49
|
to: number;
|
|
50
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
51
51
|
}, {
|
|
52
52
|
from: number;
|
|
53
53
|
to: number;
|
|
54
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
55
55
|
}>, {
|
|
56
56
|
from: number;
|
|
57
57
|
to: number;
|
|
58
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
59
59
|
}, {
|
|
60
60
|
from: number;
|
|
61
61
|
to: number;
|
|
62
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
63
63
|
}>, {
|
|
64
64
|
from: number;
|
|
65
65
|
to: number;
|
|
66
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
67
67
|
}, {
|
|
68
68
|
from: number;
|
|
69
69
|
to: number;
|
|
70
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
71
71
|
}>, {
|
|
72
72
|
from: number;
|
|
73
73
|
to: number;
|
|
74
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
75
75
|
}, {
|
|
76
76
|
from: number;
|
|
77
77
|
to: number;
|
|
78
|
-
action: "clientAvgHourlyRateNode" | "bidNode" | "
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
79
79
|
}>;
|
|
80
80
|
export type AddFromHourlyRateNodeFormData = z.infer<typeof addFromHourlyRateNodeFormSchema>;
|
|
81
81
|
export interface HourlyRateNodeData {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * from './bid-node';
|
|
2
2
|
export * from './boost-node';
|
|
3
|
+
export * from './budget-node';
|
|
3
4
|
export * from './client-size-node';
|
|
4
5
|
export * from './client-spent-node';
|
|
5
6
|
export * from './edges';
|
|
6
7
|
export * from './hire-rate-node';
|
|
7
8
|
export * from './hourly-rate-node';
|
|
8
9
|
export * from './node-types';
|
|
10
|
+
export * from './payment-type-node';
|
|
9
11
|
export * from './rating-node';
|
|
12
|
+
export * from './start-node';
|
|
10
13
|
export * from './suitability-node';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const nodeEnums: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "
|
|
2
|
+
export declare const nodeEnums: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
3
3
|
export type NodeType = z.infer<typeof nodeEnums>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PaymentType } from '../../job';
|
|
3
|
+
import { NodeType } from './node-types';
|
|
4
|
+
export declare const limitedPaymentTypeEnum: z.ZodEnum<["Hourly", "Fixed-price"]>;
|
|
5
|
+
export declare const createPaymentTypeFormSchema: (existingPaymentTypes: PaymentType[]) => z.ZodEffects<z.ZodObject<{
|
|
6
|
+
paymentTypes: z.ZodArray<z.ZodEnum<["Hourly", "Fixed-price"]>, "many">;
|
|
7
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
10
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
11
|
+
}, {
|
|
12
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
14
|
+
}>, {
|
|
15
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
16
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
17
|
+
}, {
|
|
18
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
19
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
20
|
+
}>;
|
|
21
|
+
export declare const addFromPaymentTypeNodeFormSchema: z.ZodEffects<z.ZodObject<{
|
|
22
|
+
paymentTypes: z.ZodArray<z.ZodEnum<["Hourly", "Fixed-price"]>, "many">;
|
|
23
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode", "startNode", "budgetNode", "paymentTypeNode"]>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
26
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
27
|
+
}, {
|
|
28
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
30
|
+
}>, {
|
|
31
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
32
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
33
|
+
}, {
|
|
34
|
+
paymentTypes: ("Hourly" | "Fixed-price")[];
|
|
35
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode" | "startNode" | "budgetNode" | "paymentTypeNode";
|
|
36
|
+
}>;
|
|
37
|
+
export type AddFromPaymentTypeNodeFormData = z.infer<typeof addFromPaymentTypeNodeFormSchema>;
|
|
38
|
+
export interface PaymentTypeNodeData {
|
|
39
|
+
label: string;
|
|
40
|
+
onSubmit: (formData: AddFromPaymentTypeNodeFormData) => void;
|
|
41
|
+
onDelete: () => void;
|
|
42
|
+
existingPaymentTypes: PaymentType[];
|
|
43
|
+
allowedNodes: NodeType[];
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
}
|