lancer-shared 1.2.188 → 1.2.190
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 +250 -28
- package/dist/schemas/agent/index.d.ts +5 -5
- package/dist/schemas/bidder/bid.d.ts +44 -44
- package/dist/schemas/campaign/campaign-analytics.d.ts +405 -61
- package/dist/schemas/campaign/campaign.d.ts +270 -45
- package/dist/schemas/campaign/index.d.ts +1 -0
- package/dist/schemas/campaign/sequence/bid-node.d.ts +6 -0
- package/dist/schemas/campaign/sequence/boost-node.d.ts +26 -0
- package/dist/schemas/campaign/sequence/client-size-node.d.ts +45 -0
- package/dist/schemas/campaign/sequence/client-size.d.ts +45 -0
- package/dist/schemas/campaign/sequence/client-spent-node.d.ts +92 -0
- package/dist/schemas/campaign/sequence/edges.d.ts +24 -0
- package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +91 -0
- package/dist/schemas/campaign/sequence/hire-rate.d.ts +91 -0
- package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +91 -0
- package/dist/schemas/campaign/sequence/hourly-rate.d.ts +91 -0
- package/dist/schemas/campaign/sequence/index.d.ts +10 -0
- package/dist/schemas/campaign/sequence/node-types.d.ts +3 -0
- package/dist/schemas/campaign/sequence/rating-node.d.ts +91 -0
- package/dist/schemas/campaign/sequence/suitability-node.d.ts +90 -0
- package/dist/schemas/campaign/sequence/suitability.d.ts +90 -0
- package/dist/schemas/lead/index.d.ts +18 -18
- package/dist/schemas/lead/lead-status.d.ts +7 -7
- package/dist/schemas/logger/log-event.d.ts +5 -5
- package/dist/schemas/scraper/scrape-payload.d.ts +147 -50
- package/dist/utils/timezones.d.ts +4 -3
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const INFINITY = 99999999999;
|
|
4
|
+
export declare const createClientSpentFormSchema: (existingRanges: {
|
|
5
|
+
from: number;
|
|
6
|
+
to: number;
|
|
7
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
8
|
+
from: z.ZodNumber;
|
|
9
|
+
to: z.ZodNumber;
|
|
10
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
from: number;
|
|
13
|
+
to: number;
|
|
14
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
15
|
+
}, {
|
|
16
|
+
from: number;
|
|
17
|
+
to: number;
|
|
18
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
19
|
+
}>, {
|
|
20
|
+
from: number;
|
|
21
|
+
to: number;
|
|
22
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
23
|
+
}, {
|
|
24
|
+
from: number;
|
|
25
|
+
to: number;
|
|
26
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
27
|
+
}>, {
|
|
28
|
+
from: number;
|
|
29
|
+
to: number;
|
|
30
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
31
|
+
}, {
|
|
32
|
+
from: number;
|
|
33
|
+
to: number;
|
|
34
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
35
|
+
}>, {
|
|
36
|
+
from: number;
|
|
37
|
+
to: number;
|
|
38
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
39
|
+
}, {
|
|
40
|
+
from: number;
|
|
41
|
+
to: number;
|
|
42
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
43
|
+
}>;
|
|
44
|
+
export declare const addFromClientSpentNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
45
|
+
from: z.ZodNumber;
|
|
46
|
+
to: z.ZodNumber;
|
|
47
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
from: number;
|
|
50
|
+
to: number;
|
|
51
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
52
|
+
}, {
|
|
53
|
+
from: number;
|
|
54
|
+
to: number;
|
|
55
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
56
|
+
}>, {
|
|
57
|
+
from: number;
|
|
58
|
+
to: number;
|
|
59
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
60
|
+
}, {
|
|
61
|
+
from: number;
|
|
62
|
+
to: number;
|
|
63
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
64
|
+
}>, {
|
|
65
|
+
from: number;
|
|
66
|
+
to: number;
|
|
67
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
68
|
+
}, {
|
|
69
|
+
from: number;
|
|
70
|
+
to: number;
|
|
71
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
72
|
+
}>, {
|
|
73
|
+
from: number;
|
|
74
|
+
to: number;
|
|
75
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
76
|
+
}, {
|
|
77
|
+
from: number;
|
|
78
|
+
to: number;
|
|
79
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
80
|
+
}>;
|
|
81
|
+
export type AddFromClientSpentNodeFormData = z.infer<typeof addFromClientSpentNodeFormSchema>;
|
|
82
|
+
export interface ClientSpentNodeData {
|
|
83
|
+
label: string;
|
|
84
|
+
onSubmit: (formData: AddFromClientSpentNodeFormData) => void;
|
|
85
|
+
onDelete: () => void;
|
|
86
|
+
existingRanges: {
|
|
87
|
+
from: number;
|
|
88
|
+
to: number;
|
|
89
|
+
}[];
|
|
90
|
+
allowedNodes: NodeType[];
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ClientSize } from './client-size-node';
|
|
2
|
+
export interface SuitabilityEdgeData {
|
|
3
|
+
from: number;
|
|
4
|
+
to: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ClientAvgHourlyRateEdgeData {
|
|
7
|
+
from: number;
|
|
8
|
+
to: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ClientHireRateEdgeData {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ClientSizeEdgeData {
|
|
15
|
+
sizes: ClientSize[];
|
|
16
|
+
}
|
|
17
|
+
export interface ClientSpentEdgeData {
|
|
18
|
+
from: number;
|
|
19
|
+
to: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ClientRatingEdgeData {
|
|
22
|
+
from: number;
|
|
23
|
+
to: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createClientHireRateFormSchema: (existingRanges: {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
from: z.ZodNumber;
|
|
8
|
+
to: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
14
|
+
}, {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
18
|
+
}>, {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
22
|
+
}, {
|
|
23
|
+
from: number;
|
|
24
|
+
to: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
26
|
+
}>, {
|
|
27
|
+
from: number;
|
|
28
|
+
to: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
30
|
+
}, {
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
34
|
+
}>, {
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
38
|
+
}, {
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addFromClientHireRateNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
from: number;
|
|
49
|
+
to: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
51
|
+
}, {
|
|
52
|
+
from: number;
|
|
53
|
+
to: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
55
|
+
}>, {
|
|
56
|
+
from: number;
|
|
57
|
+
to: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
59
|
+
}, {
|
|
60
|
+
from: number;
|
|
61
|
+
to: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
63
|
+
}>, {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
67
|
+
}, {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
71
|
+
}>, {
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
75
|
+
}, {
|
|
76
|
+
from: number;
|
|
77
|
+
to: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddFromClientHireRateNodeFormData = z.infer<typeof addFromClientHireRateNodeFormSchema>;
|
|
81
|
+
export interface ClientHireRateNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddFromClientHireRateNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingRanges: {
|
|
86
|
+
from: number;
|
|
87
|
+
to: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createClientHireRateFormSchema: (existingRanges: {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
from: z.ZodNumber;
|
|
8
|
+
to: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
14
|
+
}, {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
18
|
+
}>, {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
22
|
+
}, {
|
|
23
|
+
from: number;
|
|
24
|
+
to: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
26
|
+
}>, {
|
|
27
|
+
from: number;
|
|
28
|
+
to: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
30
|
+
}, {
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
34
|
+
}>, {
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
38
|
+
}, {
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addFromClientHireRateNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
from: number;
|
|
49
|
+
to: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
51
|
+
}, {
|
|
52
|
+
from: number;
|
|
53
|
+
to: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
55
|
+
}>, {
|
|
56
|
+
from: number;
|
|
57
|
+
to: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
59
|
+
}, {
|
|
60
|
+
from: number;
|
|
61
|
+
to: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
63
|
+
}>, {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
67
|
+
}, {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
71
|
+
}>, {
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
75
|
+
}, {
|
|
76
|
+
from: number;
|
|
77
|
+
to: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddFromClientHireRateNodeFormData = z.infer<typeof addFromClientHireRateNodeFormSchema>;
|
|
81
|
+
export interface ClientHireRateNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddFromClientHireRateNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingRanges: {
|
|
86
|
+
from: number;
|
|
87
|
+
to: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createHourlyRateFormSchema: (existingRanges: {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
from: z.ZodNumber;
|
|
8
|
+
to: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
14
|
+
}, {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
18
|
+
}>, {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
22
|
+
}, {
|
|
23
|
+
from: number;
|
|
24
|
+
to: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
26
|
+
}>, {
|
|
27
|
+
from: number;
|
|
28
|
+
to: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
30
|
+
}, {
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
34
|
+
}>, {
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
38
|
+
}, {
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addFromHourlyRateNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
from: number;
|
|
49
|
+
to: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
51
|
+
}, {
|
|
52
|
+
from: number;
|
|
53
|
+
to: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
55
|
+
}>, {
|
|
56
|
+
from: number;
|
|
57
|
+
to: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
59
|
+
}, {
|
|
60
|
+
from: number;
|
|
61
|
+
to: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
63
|
+
}>, {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
67
|
+
}, {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
71
|
+
}>, {
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
75
|
+
}, {
|
|
76
|
+
from: number;
|
|
77
|
+
to: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddFromHourlyRateNodeFormData = z.infer<typeof addFromHourlyRateNodeFormSchema>;
|
|
81
|
+
export interface HourlyRateNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddFromHourlyRateNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingRanges: {
|
|
86
|
+
from: number;
|
|
87
|
+
to: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createHourlyRateFormSchema: (existingRanges: {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
from: z.ZodNumber;
|
|
8
|
+
to: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
14
|
+
}, {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
18
|
+
}>, {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
22
|
+
}, {
|
|
23
|
+
from: number;
|
|
24
|
+
to: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
26
|
+
}>, {
|
|
27
|
+
from: number;
|
|
28
|
+
to: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
30
|
+
}, {
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
34
|
+
}>, {
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
38
|
+
}, {
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addFromHourlyRateNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
from: number;
|
|
49
|
+
to: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
51
|
+
}, {
|
|
52
|
+
from: number;
|
|
53
|
+
to: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
55
|
+
}>, {
|
|
56
|
+
from: number;
|
|
57
|
+
to: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
59
|
+
}, {
|
|
60
|
+
from: number;
|
|
61
|
+
to: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
63
|
+
}>, {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
67
|
+
}, {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
71
|
+
}>, {
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
75
|
+
}, {
|
|
76
|
+
from: number;
|
|
77
|
+
to: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddFromHourlyRateNodeFormData = z.infer<typeof addFromHourlyRateNodeFormSchema>;
|
|
81
|
+
export interface HourlyRateNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddFromHourlyRateNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingRanges: {
|
|
86
|
+
from: number;
|
|
87
|
+
to: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './bid-node';
|
|
2
|
+
export * from './boost-node';
|
|
3
|
+
export * from './client-size-node';
|
|
4
|
+
export * from './client-spent-node';
|
|
5
|
+
export * from './edges';
|
|
6
|
+
export * from './hire-rate-node';
|
|
7
|
+
export * from './hourly-rate-node';
|
|
8
|
+
export * from './node-types';
|
|
9
|
+
export * from './rating-node';
|
|
10
|
+
export * from './suitability-node';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeType } from './node-types';
|
|
3
|
+
export declare const createClientRatingFormSchema: (existingRanges: {
|
|
4
|
+
from: number;
|
|
5
|
+
to: number;
|
|
6
|
+
}[]) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
7
|
+
from: z.ZodNumber;
|
|
8
|
+
to: z.ZodNumber;
|
|
9
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
from: number;
|
|
12
|
+
to: number;
|
|
13
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
14
|
+
}, {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
18
|
+
}>, {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
22
|
+
}, {
|
|
23
|
+
from: number;
|
|
24
|
+
to: number;
|
|
25
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
26
|
+
}>, {
|
|
27
|
+
from: number;
|
|
28
|
+
to: number;
|
|
29
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
30
|
+
}, {
|
|
31
|
+
from: number;
|
|
32
|
+
to: number;
|
|
33
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
34
|
+
}>, {
|
|
35
|
+
from: number;
|
|
36
|
+
to: number;
|
|
37
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
38
|
+
}, {
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const addFromClientRatingNodeFormSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
action: z.ZodEnum<["clientAvgHourlyRateNode", "bidNode", "suitabilityNode", "clientHireRateNode", "clientSizeNode", "boostNode", "clientSpentNode", "clientRatingNode"]>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
from: number;
|
|
49
|
+
to: number;
|
|
50
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
51
|
+
}, {
|
|
52
|
+
from: number;
|
|
53
|
+
to: number;
|
|
54
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
55
|
+
}>, {
|
|
56
|
+
from: number;
|
|
57
|
+
to: number;
|
|
58
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
59
|
+
}, {
|
|
60
|
+
from: number;
|
|
61
|
+
to: number;
|
|
62
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
63
|
+
}>, {
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
67
|
+
}, {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
71
|
+
}>, {
|
|
72
|
+
from: number;
|
|
73
|
+
to: number;
|
|
74
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
75
|
+
}, {
|
|
76
|
+
from: number;
|
|
77
|
+
to: number;
|
|
78
|
+
action: "clientAvgHourlyRateNode" | "bidNode" | "suitabilityNode" | "clientHireRateNode" | "clientSizeNode" | "boostNode" | "clientSpentNode" | "clientRatingNode";
|
|
79
|
+
}>;
|
|
80
|
+
export type AddFromClientRatingNodeFormData = z.infer<typeof addFromClientRatingNodeFormSchema>;
|
|
81
|
+
export interface ClientRatingNodeData {
|
|
82
|
+
label: string;
|
|
83
|
+
onSubmit: (formData: AddFromClientRatingNodeFormData) => void;
|
|
84
|
+
onDelete: () => void;
|
|
85
|
+
existingRanges: {
|
|
86
|
+
from: number;
|
|
87
|
+
to: number;
|
|
88
|
+
}[];
|
|
89
|
+
allowedNodes: NodeType[];
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|