lancer-shared 1.0.142 → 1.0.143
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/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/job/job-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -0
- package/dist/schemas/job/job-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -0
- package/dist/schemas/job/job.d.ts +16 -16
- package/dist/schemas/job/pipeline-job.d.ts +9 -3
- package/dist/schemas/job/pipeline-job.js +1 -0
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +1 -17
- package/dist/schemas/scraper/scrape-payload.js +1 -7
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/upwork-account/index.d.ts +1 -1
- package/dist/schemas/upwork-account/index.js +1 -1
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
- package/dist/schemas/upwork-account/upwork-scraping-account.js +4 -3
- package/dist/schemas/user/index.d.ts +24 -26
- package/dist/schemas/user/index.js +6 -7
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -0
- package/dist/types/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/scraper/scrape-payload.d.ts +2 -4
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const upworkScraperAccountSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
email: z.ZodString;
|
|
5
|
+
password: z.ZodString;
|
|
6
|
+
cookies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7
|
+
proxy_credentials: z.ZodString;
|
|
8
|
+
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
10
|
+
lastUsed: z.ZodNumber;
|
|
11
|
+
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
12
|
+
verified: z.ZodBoolean;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
id: string;
|
|
15
|
+
email: string;
|
|
16
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
17
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
18
|
+
cookies: Record<string, string>;
|
|
19
|
+
password: string;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
verified: boolean;
|
|
22
|
+
lastUsed: number;
|
|
23
|
+
proxy_credentials: string;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
email: string;
|
|
27
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
29
|
+
cookies: Record<string, string>;
|
|
30
|
+
password: string;
|
|
31
|
+
isActive: boolean;
|
|
32
|
+
verified: boolean;
|
|
33
|
+
lastUsed: number;
|
|
34
|
+
proxy_credentials: string;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
email: z.ZodString;
|
|
39
|
+
password: z.ZodString;
|
|
40
|
+
cookies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
41
|
+
proxy_credentials: z.ZodString;
|
|
42
|
+
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
43
|
+
isActive: z.ZodBoolean;
|
|
44
|
+
lastUsed: z.ZodNumber;
|
|
45
|
+
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
46
|
+
verified: z.ZodBoolean;
|
|
47
|
+
}, "email" | "region" | "password" | "isActive" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
|
|
48
|
+
email: string;
|
|
49
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
50
|
+
password: string;
|
|
51
|
+
isActive: boolean;
|
|
52
|
+
verified: boolean;
|
|
53
|
+
proxy_credentials: string;
|
|
54
|
+
}, {
|
|
55
|
+
email: string;
|
|
56
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
57
|
+
password: string;
|
|
58
|
+
isActive: boolean;
|
|
59
|
+
verified: boolean;
|
|
60
|
+
proxy_credentials: string;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
|
|
63
|
+
email: z.ZodOptional<z.ZodString>;
|
|
64
|
+
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
65
|
+
region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
|
|
66
|
+
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
|
+
password: z.ZodOptional<z.ZodString>;
|
|
68
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
lastUsed: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
proxy_credentials: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
email?: string | undefined;
|
|
74
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
75
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
76
|
+
cookies?: Record<string, string> | undefined;
|
|
77
|
+
password?: string | undefined;
|
|
78
|
+
isActive?: boolean | undefined;
|
|
79
|
+
verified?: boolean | undefined;
|
|
80
|
+
lastUsed?: number | undefined;
|
|
81
|
+
proxy_credentials?: string | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
email?: string | undefined;
|
|
84
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
85
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
86
|
+
cookies?: Record<string, string> | undefined;
|
|
87
|
+
password?: string | undefined;
|
|
88
|
+
isActive?: boolean | undefined;
|
|
89
|
+
verified?: boolean | undefined;
|
|
90
|
+
lastUsed?: number | undefined;
|
|
91
|
+
proxy_credentials?: string | undefined;
|
|
92
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScraperAccountSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const upwork_account_status_1 = require("./upwork-account-status");
|
|
6
|
+
const job_filters_1 = require("../job-filters");
|
|
7
|
+
exports.upworkScraperAccountSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
email: zod_1.z.string().email(),
|
|
10
|
+
password: zod_1.z.string(),
|
|
11
|
+
cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
12
|
+
proxy_credentials: zod_1.z.string(),
|
|
13
|
+
region: job_filters_1.regionEnum,
|
|
14
|
+
isActive: zod_1.z.boolean(),
|
|
15
|
+
lastUsed: zod_1.z.number(),
|
|
16
|
+
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
17
|
+
verified: zod_1.z.boolean(),
|
|
18
|
+
});
|
|
19
|
+
exports.createUpworkScraperAccountSchema = exports.upworkScraperAccountSchema.pick({
|
|
20
|
+
email: true,
|
|
21
|
+
password: true,
|
|
22
|
+
proxy_credentials: true,
|
|
23
|
+
region: true,
|
|
24
|
+
verified: true,
|
|
25
|
+
isActive: true,
|
|
26
|
+
});
|
|
27
|
+
exports.updateUpworkScraperAccountSchema = exports.upworkScraperAccountSchema
|
|
28
|
+
.omit({
|
|
29
|
+
id: true,
|
|
30
|
+
})
|
|
31
|
+
.partial();
|
|
@@ -5,32 +5,32 @@ export declare const upworkScrapingAccountSchema: z.ZodObject<{
|
|
|
5
5
|
password: z.ZodString;
|
|
6
6
|
cookies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
7
7
|
proxy_credentials: z.ZodString;
|
|
8
|
-
region: z.
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
9
|
+
isActive: z.ZodBoolean;
|
|
10
|
+
lastUsed: z.ZodNumber;
|
|
11
11
|
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
12
12
|
verified: z.ZodBoolean;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
id: string;
|
|
15
15
|
email: string;
|
|
16
16
|
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
17
|
-
region:
|
|
17
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
18
18
|
cookies: Record<string, string>;
|
|
19
19
|
password: string;
|
|
20
|
+
isActive: boolean;
|
|
20
21
|
verified: boolean;
|
|
21
|
-
|
|
22
|
-
last_used: number;
|
|
22
|
+
lastUsed: number;
|
|
23
23
|
proxy_credentials: string;
|
|
24
24
|
}, {
|
|
25
25
|
id: string;
|
|
26
26
|
email: string;
|
|
27
27
|
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
|
-
region:
|
|
28
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
29
29
|
cookies: Record<string, string>;
|
|
30
30
|
password: string;
|
|
31
|
+
isActive: boolean;
|
|
31
32
|
verified: boolean;
|
|
32
|
-
|
|
33
|
-
last_used: number;
|
|
33
|
+
lastUsed: number;
|
|
34
34
|
proxy_credentials: string;
|
|
35
35
|
}>;
|
|
36
36
|
export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
|
|
@@ -39,20 +39,20 @@ export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
|
|
|
39
39
|
password: z.ZodString;
|
|
40
40
|
cookies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
41
41
|
proxy_credentials: z.ZodString;
|
|
42
|
-
region: z.
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
43
|
+
isActive: z.ZodBoolean;
|
|
44
|
+
lastUsed: z.ZodNumber;
|
|
45
45
|
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
46
46
|
verified: z.ZodBoolean;
|
|
47
47
|
}, "email" | "region" | "password" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
|
|
48
48
|
email: string;
|
|
49
|
-
region:
|
|
49
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
50
50
|
password: string;
|
|
51
51
|
verified: boolean;
|
|
52
52
|
proxy_credentials: string;
|
|
53
53
|
}, {
|
|
54
54
|
email: string;
|
|
55
|
-
region:
|
|
55
|
+
region: "all" | "USOnly" | "UKOnly" | "Worldwide";
|
|
56
56
|
password: string;
|
|
57
57
|
verified: boolean;
|
|
58
58
|
proxy_credentials: string;
|
|
@@ -60,31 +60,31 @@ export declare const createUpworkScraperAccountSchema: z.ZodObject<Pick<{
|
|
|
60
60
|
export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
|
|
61
61
|
email: z.ZodOptional<z.ZodString>;
|
|
62
62
|
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
63
|
-
region: z.ZodOptional<z.
|
|
63
|
+
region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
|
|
64
64
|
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
65
|
password: z.ZodOptional<z.ZodString>;
|
|
66
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
66
67
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
-
|
|
68
|
-
last_used: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
lastUsed: z.ZodOptional<z.ZodNumber>;
|
|
69
69
|
proxy_credentials: z.ZodOptional<z.ZodString>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
email?: string | undefined;
|
|
72
72
|
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
73
|
-
region?:
|
|
73
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
74
74
|
cookies?: Record<string, string> | undefined;
|
|
75
75
|
password?: string | undefined;
|
|
76
|
+
isActive?: boolean | undefined;
|
|
76
77
|
verified?: boolean | undefined;
|
|
77
|
-
|
|
78
|
-
last_used?: number | undefined;
|
|
78
|
+
lastUsed?: number | undefined;
|
|
79
79
|
proxy_credentials?: string | undefined;
|
|
80
80
|
}, {
|
|
81
81
|
email?: string | undefined;
|
|
82
82
|
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
83
|
-
region?:
|
|
83
|
+
region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
|
|
84
84
|
cookies?: Record<string, string> | undefined;
|
|
85
85
|
password?: string | undefined;
|
|
86
|
+
isActive?: boolean | undefined;
|
|
86
87
|
verified?: boolean | undefined;
|
|
87
|
-
|
|
88
|
-
last_used?: number | undefined;
|
|
88
|
+
lastUsed?: number | undefined;
|
|
89
89
|
proxy_credentials?: string | undefined;
|
|
90
90
|
}>;
|
|
@@ -3,15 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const upwork_account_status_1 = require("./upwork-account-status");
|
|
6
|
+
const job_filters_1 = require("../job-filters");
|
|
6
7
|
exports.upworkScrapingAccountSchema = zod_1.z.object({
|
|
7
8
|
id: zod_1.z.string(),
|
|
8
9
|
email: zod_1.z.string().email(),
|
|
9
10
|
password: zod_1.z.string(),
|
|
10
11
|
cookies: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
11
12
|
proxy_credentials: zod_1.z.string(),
|
|
12
|
-
region:
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
region: job_filters_1.regionEnum,
|
|
14
|
+
isActive: zod_1.z.boolean(),
|
|
15
|
+
lastUsed: zod_1.z.number(),
|
|
15
16
|
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
16
17
|
verified: zod_1.z.boolean(),
|
|
17
18
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
createdAt:
|
|
10
|
-
updatedAt:
|
|
11
|
-
}, "strip",
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const userSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
firstName: z.ZodString;
|
|
5
|
+
lastName: z.ZodString;
|
|
6
|
+
displayName: z.ZodString;
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
organizationIds: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
createdAt: z.ZodNumber;
|
|
10
|
+
updatedAt: z.ZodNumber;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
13
|
email: string;
|
|
14
14
|
createdAt: number;
|
|
@@ -16,8 +16,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
16
16
|
firstName: string;
|
|
17
17
|
lastName: string;
|
|
18
18
|
displayName: string;
|
|
19
|
-
|
|
20
|
-
proposalPrompt: string;
|
|
19
|
+
organizationIds: string[];
|
|
21
20
|
}, {
|
|
22
21
|
id: string;
|
|
23
22
|
email: string;
|
|
@@ -26,26 +25,25 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
26
25
|
firstName: string;
|
|
27
26
|
lastName: string;
|
|
28
27
|
displayName: string;
|
|
29
|
-
|
|
30
|
-
proposalPrompt: string;
|
|
28
|
+
organizationIds: string[];
|
|
31
29
|
}>;
|
|
32
|
-
export declare const loginSchema:
|
|
33
|
-
email:
|
|
34
|
-
password:
|
|
35
|
-
}, "strip",
|
|
30
|
+
export declare const loginSchema: z.ZodObject<{
|
|
31
|
+
email: z.ZodString;
|
|
32
|
+
password: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
34
|
email: string;
|
|
37
35
|
password: string;
|
|
38
36
|
}, {
|
|
39
37
|
email: string;
|
|
40
38
|
password: string;
|
|
41
39
|
}>;
|
|
42
|
-
export declare const registerSchema:
|
|
43
|
-
firstName:
|
|
44
|
-
lastName:
|
|
45
|
-
email:
|
|
46
|
-
password:
|
|
47
|
-
confirmPassword:
|
|
48
|
-
}, "strip",
|
|
40
|
+
export declare const registerSchema: z.ZodEffects<z.ZodObject<{
|
|
41
|
+
firstName: z.ZodString;
|
|
42
|
+
lastName: z.ZodString;
|
|
43
|
+
email: z.ZodString;
|
|
44
|
+
password: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
|
|
45
|
+
confirmPassword: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
47
|
email: string;
|
|
50
48
|
password: string;
|
|
51
49
|
firstName: string;
|
|
@@ -9,8 +9,7 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
9
9
|
lastName: (0, zod_1.string)(),
|
|
10
10
|
displayName: (0, zod_1.string)(),
|
|
11
11
|
email: (0, zod_1.string)(),
|
|
12
|
-
|
|
13
|
-
proposalPrompt: (0, zod_1.string)(),
|
|
12
|
+
organizationIds: zod_1.z.array((0, zod_1.string)()),
|
|
14
13
|
createdAt: (0, zod_1.number)(),
|
|
15
14
|
updatedAt: (0, zod_1.number)(),
|
|
16
15
|
});
|
|
@@ -19,15 +18,15 @@ exports.loginSchema = (0, zod_1.object)({
|
|
|
19
18
|
password: shared_1.passwordSchema,
|
|
20
19
|
});
|
|
21
20
|
exports.registerSchema = (0, zod_1.object)({
|
|
22
|
-
firstName: (0, zod_1.string)().min(1,
|
|
23
|
-
lastName: (0, zod_1.string)().min(1,
|
|
21
|
+
firstName: (0, zod_1.string)().min(1, 'First name is required').max(255),
|
|
22
|
+
lastName: (0, zod_1.string)().min(1, 'Last name is required').max(255),
|
|
24
23
|
email: (0, zod_1.string)()
|
|
25
|
-
.email(
|
|
24
|
+
.email('Must be a valid email address')
|
|
26
25
|
.max(255)
|
|
27
|
-
.min(1,
|
|
26
|
+
.min(1, 'Email address is required'),
|
|
28
27
|
password: shared_1.passwordSchema,
|
|
29
28
|
confirmPassword: shared_1.passwordSchema,
|
|
30
29
|
}).refine(({ password, confirmPassword }) => password === confirmPassword, {
|
|
31
30
|
message: `Passwords don't match.`,
|
|
32
|
-
path: [
|
|
31
|
+
path: ['confirmPassword'],
|
|
33
32
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ai-config';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-config"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { bidSuccessSchema, bidFailedSchema } from '../../schemas/bid/bid-status';
|
|
3
|
+
export type BidSuccess = z.infer<typeof bidSuccessSchema>;
|
|
4
|
+
export type BidFailed = z.infer<typeof bidFailedSchema>;
|
|
5
|
+
export type BidStatus = BidSuccess | BidFailed;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './knowledge-object';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./knowledge-object"), exports);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { scrapePayloadSchema
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { scrapePayloadSchema } from '../../schemas';
|
|
3
3
|
export interface ScrapePayload extends z.infer<typeof scrapePayloadSchema> {
|
|
4
4
|
}
|
|
5
|
-
export interface ScrapeUserProfilePayload extends z.infer<typeof scrapeUserProfilePayloadSchema> {
|
|
6
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema,
|
|
3
|
-
export type
|
|
2
|
+
import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScraperAccountSchema } from '../../schemas';
|
|
3
|
+
export type UpworkScraperAccount = z.infer<typeof upworkScraperAccountSchema>;
|
|
4
4
|
export type CreateUpworkScraperAccount = z.infer<typeof createUpworkScraperAccountSchema>;
|
|
5
5
|
export type UpdateUpworkScraperAccount = z.infer<typeof updateUpworkScraperAccountSchema>;
|