lancer-shared 1.0.71 → 1.0.73

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);
@@ -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();
@@ -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.71",
4
+ "version": "1.0.73",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",