lancer-shared 1.0.63 → 1.0.64
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/schemas/upwork-account/upwork-business-manager-account.d.ts +62 -3
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +17 -2
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +58 -3
- package/dist/schemas/upwork-account/upwork-scraping-account.js +15 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +3 -1
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const upworkBusinessManagerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
3
3
|
export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
4
5
|
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
5
6
|
email: z.ZodString;
|
|
6
7
|
password: z.ZodString;
|
|
7
8
|
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
8
9
|
proxy: z.ZodString;
|
|
9
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy"]>;
|
|
10
|
+
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
10
11
|
verified: z.ZodBoolean;
|
|
11
12
|
is_active: z.ZodBoolean;
|
|
12
13
|
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
13
14
|
last_used: z.ZodNullable<z.ZodNumber>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
15
17
|
email: string;
|
|
16
|
-
status: "verification_required" | "shadow_banned" | "healthy";
|
|
18
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
17
19
|
cookies: any[] | null;
|
|
18
20
|
password: string;
|
|
19
21
|
provider: "user_provided" | "lancer_provided";
|
|
@@ -23,8 +25,9 @@ export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
|
23
25
|
assignedOrganizations: string[];
|
|
24
26
|
last_used: number | null;
|
|
25
27
|
}, {
|
|
28
|
+
id: string;
|
|
26
29
|
email: string;
|
|
27
|
-
status: "verification_required" | "shadow_banned" | "healthy";
|
|
30
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
31
|
cookies: any[] | null;
|
|
29
32
|
password: string;
|
|
30
33
|
provider: "user_provided" | "lancer_provided";
|
|
@@ -34,3 +37,59 @@ export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
|
34
37
|
assignedOrganizations: string[];
|
|
35
38
|
last_used: number | null;
|
|
36
39
|
}>;
|
|
40
|
+
export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
43
|
+
email: z.ZodString;
|
|
44
|
+
password: z.ZodString;
|
|
45
|
+
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
46
|
+
proxy: z.ZodString;
|
|
47
|
+
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
48
|
+
verified: z.ZodBoolean;
|
|
49
|
+
is_active: z.ZodBoolean;
|
|
50
|
+
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
51
|
+
last_used: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
}, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
|
|
53
|
+
email: string;
|
|
54
|
+
password: string;
|
|
55
|
+
provider: "user_provided" | "lancer_provided";
|
|
56
|
+
proxy: string;
|
|
57
|
+
assignedOrganizations: string[];
|
|
58
|
+
}, {
|
|
59
|
+
email: string;
|
|
60
|
+
password: string;
|
|
61
|
+
provider: "user_provided" | "lancer_provided";
|
|
62
|
+
proxy: string;
|
|
63
|
+
assignedOrganizations: string[];
|
|
64
|
+
}>;
|
|
65
|
+
export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
66
|
+
email: z.ZodOptional<z.ZodString>;
|
|
67
|
+
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
68
|
+
cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
69
|
+
password: z.ZodOptional<z.ZodString>;
|
|
70
|
+
proxy: z.ZodOptional<z.ZodString>;
|
|
71
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
+
last_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
email?: string | undefined;
|
|
77
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
78
|
+
cookies?: any[] | null | undefined;
|
|
79
|
+
password?: string | undefined;
|
|
80
|
+
proxy?: string | undefined;
|
|
81
|
+
verified?: boolean | undefined;
|
|
82
|
+
is_active?: boolean | undefined;
|
|
83
|
+
assignedOrganizations?: string[] | undefined;
|
|
84
|
+
last_used?: number | null | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
email?: string | undefined;
|
|
87
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
88
|
+
cookies?: any[] | null | undefined;
|
|
89
|
+
password?: string | undefined;
|
|
90
|
+
proxy?: string | undefined;
|
|
91
|
+
verified?: boolean | undefined;
|
|
92
|
+
is_active?: boolean | undefined;
|
|
93
|
+
assignedOrganizations?: string[] | undefined;
|
|
94
|
+
last_used?: number | null | undefined;
|
|
95
|
+
}>;
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountProvider = void 0;
|
|
3
|
+
exports.updateUpworkBusinessManagerAccountSchema = exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountProvider = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const upwork_account_status_1 = require("./upwork-account-status");
|
|
5
6
|
exports.upworkBusinessManagerAccountProvider = zod_1.z.enum([
|
|
6
7
|
'user_provided',
|
|
7
8
|
'lancer_provided',
|
|
8
9
|
]);
|
|
9
10
|
exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
|
|
11
|
+
id: zod_1.z.string(),
|
|
10
12
|
provider: exports.upworkBusinessManagerAccountProvider,
|
|
11
13
|
email: zod_1.z.string().email(),
|
|
12
14
|
password: zod_1.z.string(),
|
|
13
15
|
cookies: zod_1.z.array(zod_1.z.any()).nullable(),
|
|
14
16
|
proxy: zod_1.z.string(),
|
|
15
|
-
status:
|
|
17
|
+
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
16
18
|
verified: zod_1.z.boolean(),
|
|
17
19
|
is_active: zod_1.z.boolean(),
|
|
18
20
|
assignedOrganizations: zod_1.z.array(zod_1.z.string()),
|
|
19
21
|
last_used: zod_1.z.number().nullable(),
|
|
20
22
|
});
|
|
23
|
+
exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
|
|
24
|
+
email: true,
|
|
25
|
+
password: true,
|
|
26
|
+
proxy: true,
|
|
27
|
+
assignedOrganizations: true,
|
|
28
|
+
provider: true,
|
|
29
|
+
});
|
|
30
|
+
exports.updateUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema
|
|
31
|
+
.omit({
|
|
32
|
+
id: true,
|
|
33
|
+
provider: true,
|
|
34
|
+
})
|
|
35
|
+
.partial();
|
|
@@ -8,12 +8,12 @@ export declare const upworkScrapingAccountSchema: z.ZodObject<{
|
|
|
8
8
|
region: z.ZodString;
|
|
9
9
|
is_active: z.ZodBoolean;
|
|
10
10
|
last_used: z.ZodNumber;
|
|
11
|
-
status: z.ZodEnum<["
|
|
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
|
-
status: "suspended" | "verification_required" | "healthy" | "banned";
|
|
16
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
17
17
|
region: string;
|
|
18
18
|
cookies: Record<string, string>;
|
|
19
19
|
password: string;
|
|
@@ -24,7 +24,7 @@ export declare const upworkScrapingAccountSchema: z.ZodObject<{
|
|
|
24
24
|
}, {
|
|
25
25
|
id: string;
|
|
26
26
|
email: string;
|
|
27
|
-
status: "suspended" | "verification_required" | "healthy" | "banned";
|
|
27
|
+
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
28
28
|
region: string;
|
|
29
29
|
cookies: Record<string, string>;
|
|
30
30
|
password: string;
|
|
@@ -33,3 +33,58 @@ export declare const upworkScrapingAccountSchema: z.ZodObject<{
|
|
|
33
33
|
last_used: number;
|
|
34
34
|
proxy_credentials: string;
|
|
35
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.ZodString;
|
|
43
|
+
is_active: z.ZodBoolean;
|
|
44
|
+
last_used: z.ZodNumber;
|
|
45
|
+
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
46
|
+
verified: z.ZodBoolean;
|
|
47
|
+
}, "email" | "region" | "password" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
|
|
48
|
+
email: string;
|
|
49
|
+
region: string;
|
|
50
|
+
password: string;
|
|
51
|
+
verified: boolean;
|
|
52
|
+
proxy_credentials: string;
|
|
53
|
+
}, {
|
|
54
|
+
email: string;
|
|
55
|
+
region: string;
|
|
56
|
+
password: string;
|
|
57
|
+
verified: boolean;
|
|
58
|
+
proxy_credentials: string;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const updateUpworkScraperAccountSchema: z.ZodObject<{
|
|
61
|
+
email: z.ZodOptional<z.ZodString>;
|
|
62
|
+
status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
|
|
63
|
+
region: z.ZodOptional<z.ZodString>;
|
|
64
|
+
cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
|
+
password: z.ZodOptional<z.ZodString>;
|
|
66
|
+
verified: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
last_used: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
proxy_credentials: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
email?: string | undefined;
|
|
72
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
73
|
+
region?: string | undefined;
|
|
74
|
+
cookies?: Record<string, string> | undefined;
|
|
75
|
+
password?: string | undefined;
|
|
76
|
+
verified?: boolean | undefined;
|
|
77
|
+
is_active?: boolean | undefined;
|
|
78
|
+
last_used?: number | undefined;
|
|
79
|
+
proxy_credentials?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
email?: string | undefined;
|
|
82
|
+
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
83
|
+
region?: string | undefined;
|
|
84
|
+
cookies?: Record<string, string> | undefined;
|
|
85
|
+
password?: string | undefined;
|
|
86
|
+
verified?: boolean | undefined;
|
|
87
|
+
is_active?: boolean | undefined;
|
|
88
|
+
last_used?: number | undefined;
|
|
89
|
+
proxy_credentials?: string | undefined;
|
|
90
|
+
}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upworkScrapingAccountSchema = void 0;
|
|
3
|
+
exports.updateUpworkScraperAccountSchema = exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const upwork_account_status_1 = require("./upwork-account-status");
|
|
5
6
|
exports.upworkScrapingAccountSchema = zod_1.z.object({
|
|
6
7
|
id: zod_1.z.string(),
|
|
7
8
|
email: zod_1.z.string().email(),
|
|
@@ -11,6 +12,18 @@ exports.upworkScrapingAccountSchema = zod_1.z.object({
|
|
|
11
12
|
region: zod_1.z.string(),
|
|
12
13
|
is_active: zod_1.z.boolean(),
|
|
13
14
|
last_used: zod_1.z.number(),
|
|
14
|
-
status:
|
|
15
|
+
status: upwork_account_status_1.upworkAccountStatusSchema,
|
|
15
16
|
verified: zod_1.z.boolean(),
|
|
16
17
|
});
|
|
18
|
+
exports.createUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema.pick({
|
|
19
|
+
email: true,
|
|
20
|
+
password: true,
|
|
21
|
+
proxy_credentials: true,
|
|
22
|
+
region: true,
|
|
23
|
+
verified: true,
|
|
24
|
+
});
|
|
25
|
+
exports.updateUpworkScraperAccountSchema = exports.upworkScrapingAccountSchema
|
|
26
|
+
.omit({
|
|
27
|
+
id: true,
|
|
28
|
+
})
|
|
29
|
+
.partial();
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { upworkBusinessManagerAccountProvider, upworkBusinessManagerAccountSchema } from '../../schemas';
|
|
2
|
+
import { createUpworkBusinessManagerAccountSchema, updateUpworkBusinessManagerAccountSchema, upworkBusinessManagerAccountProvider, upworkBusinessManagerAccountSchema } from '../../schemas';
|
|
3
3
|
export interface UpworkBusinessManagerAccount extends z.infer<typeof upworkBusinessManagerAccountSchema> {
|
|
4
4
|
}
|
|
5
5
|
export type UpworkBusinessManagerAccountProvider = z.infer<typeof upworkBusinessManagerAccountProvider>;
|
|
6
|
+
export type CreateUpworkBusinessManagerAccount = z.infer<typeof createUpworkBusinessManagerAccountSchema>;
|
|
7
|
+
export type UpdateUpworkBusinessManagerAccount = z.infer<typeof updateUpworkBusinessManagerAccountSchema>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { upworkScrapingAccountSchema } from '../../schemas';
|
|
2
|
+
import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScrapingAccountSchema } from '../../schemas';
|
|
3
3
|
export type UpworkScrapingAccount = z.infer<typeof upworkScrapingAccountSchema>;
|
|
4
|
+
export type CreateUpworkScraperAccount = z.infer<typeof createUpworkScraperAccountSchema>;
|
|
5
|
+
export type UpdateUpworkScraperAccount = z.infer<typeof updateUpworkScraperAccountSchema>;
|