lancer-shared 1.0.70 → 1.0.72

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.
@@ -1,3 +1,3 @@
1
1
  export * from './upwork-account-status';
2
2
  export * from './upwork-business-manager-account';
3
- export * from './upwork-scraping-account';
3
+ export * from './upwork-scraper-account';
@@ -16,4 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./upwork-account-status"), exports);
18
18
  __exportStar(require("./upwork-business-manager-account"), exports);
19
- __exportStar(require("./upwork-scraping-account"), exports);
19
+ __exportStar(require("./upwork-scraper-account"), exports);
@@ -9,33 +9,33 @@ export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
9
9
  proxy: z.ZodString;
10
10
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
11
11
  verified: z.ZodBoolean;
12
- is_active: z.ZodBoolean;
12
+ isActive: z.ZodBoolean;
13
13
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
14
- last_used: z.ZodNullable<z.ZodNumber>;
14
+ lastUsed: z.ZodNullable<z.ZodNumber>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  id: string;
17
17
  email: string;
18
18
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
19
19
  cookies: any[] | null;
20
20
  password: string;
21
+ isActive: boolean;
21
22
  provider: "user_provided" | "lancer_provided";
22
23
  proxy: string;
23
24
  verified: boolean;
24
- is_active: boolean;
25
25
  assignedOrganizations: string[];
26
- last_used: number | null;
26
+ lastUsed: number | null;
27
27
  }, {
28
28
  id: string;
29
29
  email: string;
30
30
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
31
31
  cookies: any[] | null;
32
32
  password: string;
33
+ isActive: boolean;
33
34
  provider: "user_provided" | "lancer_provided";
34
35
  proxy: string;
35
36
  verified: boolean;
36
- is_active: boolean;
37
37
  assignedOrganizations: string[];
38
- last_used: number | null;
38
+ lastUsed: number | null;
39
39
  }>;
40
40
  export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<{
41
41
  id: z.ZodString;
@@ -46,9 +46,9 @@ export declare const createUpworkBusinessManagerAccountSchema: z.ZodObject<Pick<
46
46
  proxy: z.ZodString;
47
47
  status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
48
48
  verified: z.ZodBoolean;
49
- is_active: z.ZodBoolean;
49
+ isActive: z.ZodBoolean;
50
50
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
51
- last_used: z.ZodNullable<z.ZodNumber>;
51
+ lastUsed: z.ZodNullable<z.ZodNumber>;
52
52
  }, "email" | "password" | "provider" | "proxy" | "assignedOrganizations">, "strip", z.ZodTypeAny, {
53
53
  email: string;
54
54
  password: string;
@@ -67,29 +67,29 @@ export declare const updateUpworkBusinessManagerAccountSchema: z.ZodObject<{
67
67
  status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
68
68
  cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
69
69
  password: z.ZodOptional<z.ZodString>;
70
+ isActive: z.ZodOptional<z.ZodBoolean>;
70
71
  proxy: z.ZodOptional<z.ZodString>;
71
72
  verified: z.ZodOptional<z.ZodBoolean>;
72
- is_active: z.ZodOptional<z.ZodBoolean>;
73
73
  assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
- last_used: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  email?: string | undefined;
77
77
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
78
78
  cookies?: any[] | null | undefined;
79
79
  password?: string | undefined;
80
+ isActive?: boolean | undefined;
80
81
  proxy?: string | undefined;
81
82
  verified?: boolean | undefined;
82
- is_active?: boolean | undefined;
83
83
  assignedOrganizations?: string[] | undefined;
84
- last_used?: number | null | undefined;
84
+ lastUsed?: number | null | undefined;
85
85
  }, {
86
86
  email?: string | undefined;
87
87
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
88
88
  cookies?: any[] | null | undefined;
89
89
  password?: string | undefined;
90
+ isActive?: boolean | undefined;
90
91
  proxy?: string | undefined;
91
92
  verified?: boolean | undefined;
92
- is_active?: boolean | undefined;
93
93
  assignedOrganizations?: string[] | undefined;
94
- last_used?: number | null | undefined;
94
+ lastUsed?: number | null | undefined;
95
95
  }>;
@@ -16,9 +16,9 @@ exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
16
16
  proxy: zod_1.z.string(),
17
17
  status: upwork_account_status_1.upworkAccountStatusSchema,
18
18
  verified: zod_1.z.boolean(),
19
- is_active: zod_1.z.boolean(),
19
+ isActive: zod_1.z.boolean(),
20
20
  assignedOrganizations: zod_1.z.array(zod_1.z.string()),
21
- last_used: zod_1.z.number().nullable(),
21
+ lastUsed: zod_1.z.number().nullable(),
22
22
  });
23
23
  exports.createUpworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountSchema.pick({
24
24
  email: true,
@@ -0,0 +1,90 @@
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" | "verified" | "proxy_credentials">, "strip", z.ZodTypeAny, {
48
+ email: string;
49
+ region: "all" | "USOnly" | "UKOnly" | "Worldwide";
50
+ password: string;
51
+ verified: boolean;
52
+ proxy_credentials: string;
53
+ }, {
54
+ email: string;
55
+ region: "all" | "USOnly" | "UKOnly" | "Worldwide";
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.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
64
+ cookies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
+ password: z.ZodOptional<z.ZodString>;
66
+ isActive: z.ZodOptional<z.ZodBoolean>;
67
+ verified: z.ZodOptional<z.ZodBoolean>;
68
+ lastUsed: 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?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
74
+ cookies?: Record<string, string> | undefined;
75
+ password?: string | undefined;
76
+ isActive?: boolean | undefined;
77
+ verified?: boolean | undefined;
78
+ lastUsed?: number | undefined;
79
+ proxy_credentials?: string | undefined;
80
+ }, {
81
+ email?: string | undefined;
82
+ status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
83
+ region?: "all" | "USOnly" | "UKOnly" | "Worldwide" | undefined;
84
+ cookies?: Record<string, string> | undefined;
85
+ password?: string | undefined;
86
+ isActive?: boolean | undefined;
87
+ verified?: boolean | undefined;
88
+ lastUsed?: number | undefined;
89
+ proxy_credentials?: string | undefined;
90
+ }>;
@@ -0,0 +1,30 @@
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
+ });
26
+ exports.updateUpworkScraperAccountSchema = exports.upworkScraperAccountSchema
27
+ .omit({
28
+ id: true,
29
+ })
30
+ .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.ZodString;
9
- is_active: z.ZodBoolean;
10
- last_used: z.ZodNumber;
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: string;
17
+ region: "all" | "USOnly" | "UKOnly" | "Worldwide";
18
18
  cookies: Record<string, string>;
19
19
  password: string;
20
+ isActive: boolean;
20
21
  verified: boolean;
21
- is_active: boolean;
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: string;
28
+ region: "all" | "USOnly" | "UKOnly" | "Worldwide";
29
29
  cookies: Record<string, string>;
30
30
  password: string;
31
+ isActive: boolean;
31
32
  verified: boolean;
32
- is_active: boolean;
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.ZodString;
43
- is_active: z.ZodBoolean;
44
- last_used: z.ZodNumber;
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: string;
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: string;
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.ZodString>;
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
- is_active: z.ZodOptional<z.ZodBoolean>;
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?: string | undefined;
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
- is_active?: boolean | undefined;
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?: string | undefined;
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
- is_active?: boolean | undefined;
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: zod_1.z.string(),
13
- is_active: zod_1.z.boolean(),
14
- last_used: zod_1.z.number(),
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,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { createUpworkScraperAccountSchema, updateUpworkScraperAccountSchema, upworkScrapingAccountSchema } from '../../schemas';
3
- export type UpworkScrapingAccount = z.infer<typeof upworkScrapingAccountSchema>;
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>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.70",
4
+ "version": "1.0.72",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",