lancer-shared 1.0.132 → 1.0.133

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.
@@ -0,0 +1,116 @@
1
+ import { z } from 'zod';
2
+ export declare const bidderAccountProvider: z.ZodEnum<["user-provided", "lancer-provided"]>;
3
+ export declare const bidderAccountSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
6
+ email: z.ZodString;
7
+ password: z.ZodString;
8
+ cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
9
+ proxy: z.ZodString;
10
+ status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
11
+ verified: z.ZodBoolean;
12
+ isActive: z.ZodBoolean;
13
+ assignedOrganizations: z.ZodArray<z.ZodString, "many">;
14
+ lastUsed: z.ZodNullable<z.ZodNumber>;
15
+ createdAt: z.ZodNumber;
16
+ updatedAt: z.ZodNumber;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ email: string;
20
+ status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
21
+ createdAt: number;
22
+ updatedAt: number;
23
+ cookies: any[] | null;
24
+ password: string;
25
+ isActive: boolean;
26
+ provider: "user-provided" | "lancer-provided";
27
+ proxy: string;
28
+ verified: boolean;
29
+ assignedOrganizations: string[];
30
+ lastUsed: number | null;
31
+ }, {
32
+ id: string;
33
+ email: string;
34
+ status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
35
+ createdAt: number;
36
+ updatedAt: number;
37
+ cookies: any[] | null;
38
+ password: string;
39
+ isActive: boolean;
40
+ provider: "user-provided" | "lancer-provided";
41
+ proxy: string;
42
+ verified: boolean;
43
+ assignedOrganizations: string[];
44
+ lastUsed: number | null;
45
+ }>;
46
+ export declare const createBidderAccountSchema: z.ZodObject<Pick<{
47
+ id: z.ZodString;
48
+ provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
49
+ email: z.ZodString;
50
+ password: z.ZodString;
51
+ cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
52
+ proxy: z.ZodString;
53
+ status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
54
+ verified: z.ZodBoolean;
55
+ isActive: z.ZodBoolean;
56
+ assignedOrganizations: z.ZodArray<z.ZodString, "many">;
57
+ lastUsed: z.ZodNullable<z.ZodNumber>;
58
+ createdAt: z.ZodNumber;
59
+ updatedAt: z.ZodNumber;
60
+ }, "email" | "status" | "password" | "isActive" | "provider" | "proxy" | "verified">, "strip", z.ZodTypeAny, {
61
+ email: string;
62
+ status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
63
+ password: string;
64
+ isActive: boolean;
65
+ provider: "user-provided" | "lancer-provided";
66
+ proxy: string;
67
+ verified: boolean;
68
+ }, {
69
+ email: string;
70
+ status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
71
+ password: string;
72
+ isActive: boolean;
73
+ provider: "user-provided" | "lancer-provided";
74
+ proxy: string;
75
+ verified: boolean;
76
+ }>;
77
+ export declare const updateBidderAccountSchema: z.ZodObject<{
78
+ email: z.ZodOptional<z.ZodString>;
79
+ status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
80
+ createdAt: z.ZodOptional<z.ZodNumber>;
81
+ updatedAt: z.ZodOptional<z.ZodNumber>;
82
+ cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
83
+ password: z.ZodOptional<z.ZodString>;
84
+ isActive: z.ZodOptional<z.ZodBoolean>;
85
+ provider: z.ZodOptional<z.ZodEnum<["user-provided", "lancer-provided"]>>;
86
+ proxy: z.ZodOptional<z.ZodString>;
87
+ verified: z.ZodOptional<z.ZodBoolean>;
88
+ assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
+ lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ email?: string | undefined;
92
+ status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
93
+ createdAt?: number | undefined;
94
+ updatedAt?: number | undefined;
95
+ cookies?: any[] | null | undefined;
96
+ password?: string | undefined;
97
+ isActive?: boolean | undefined;
98
+ provider?: "user-provided" | "lancer-provided" | undefined;
99
+ proxy?: string | undefined;
100
+ verified?: boolean | undefined;
101
+ assignedOrganizations?: string[] | undefined;
102
+ lastUsed?: number | null | undefined;
103
+ }, {
104
+ email?: string | undefined;
105
+ status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
106
+ createdAt?: number | undefined;
107
+ updatedAt?: number | undefined;
108
+ cookies?: any[] | null | undefined;
109
+ password?: string | undefined;
110
+ isActive?: boolean | undefined;
111
+ provider?: "user-provided" | "lancer-provided" | undefined;
112
+ proxy?: string | undefined;
113
+ verified?: boolean | undefined;
114
+ assignedOrganizations?: string[] | undefined;
115
+ lastUsed?: number | null | undefined;
116
+ }>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateBidderAccountSchema = exports.createBidderAccountSchema = exports.bidderAccountSchema = exports.bidderAccountProvider = void 0;
4
+ const zod_1 = require("zod");
5
+ const account_status_1 = require("./account-status");
6
+ exports.bidderAccountProvider = zod_1.z.enum([
7
+ 'user-provided',
8
+ 'lancer-provided',
9
+ ]);
10
+ exports.bidderAccountSchema = zod_1.z.object({
11
+ id: zod_1.z.string(),
12
+ provider: exports.bidderAccountProvider,
13
+ email: zod_1.z.string().email(),
14
+ password: zod_1.z.string(),
15
+ cookies: zod_1.z.array(zod_1.z.any()).nullable(),
16
+ proxy: zod_1.z.string(),
17
+ status: account_status_1.accountStatusSchema,
18
+ verified: zod_1.z.boolean(),
19
+ isActive: zod_1.z.boolean(),
20
+ assignedOrganizations: zod_1.z.array(zod_1.z.string()),
21
+ lastUsed: zod_1.z.number().nullable(),
22
+ createdAt: zod_1.z.number(),
23
+ updatedAt: zod_1.z.number(),
24
+ });
25
+ exports.createBidderAccountSchema = exports.bidderAccountSchema.pick({
26
+ email: true,
27
+ password: true,
28
+ provider: true,
29
+ proxy: true,
30
+ status: true,
31
+ verified: true,
32
+ isActive: true,
33
+ });
34
+ exports.updateBidderAccountSchema = exports.bidderAccountSchema
35
+ .omit({
36
+ id: true,
37
+ })
38
+ .partial();
@@ -1,3 +1,3 @@
1
1
  export * from './account-status';
2
- export * from './manager-account';
2
+ export * from './bidder-account';
3
3
  export * from './scraper-account';
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-status"), exports);
18
- __exportStar(require("./manager-account"), exports);
18
+ __exportStar(require("./bidder-account"), exports);
19
19
  __exportStar(require("./scraper-account"), exports);
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { createBidderAccountSchema, updateBidderAccountSchema, bidderAccountProvider, bidderAccountSchema } from '../../schemas';
3
+ export interface BidderAccount extends z.infer<typeof bidderAccountSchema> {
4
+ }
5
+ export type BidderAccountProvider = z.infer<typeof bidderAccountProvider>;
6
+ export type CreateBidderAccount = z.infer<typeof createBidderAccountSchema>;
7
+ export type UpdateBidderAccount = z.infer<typeof updateBidderAccountSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,3 @@
1
1
  export * from './account-status';
2
- export * from './manager-account';
2
+ export * from './bidder-account';
3
3
  export * from './scraper-account';
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-status"), exports);
18
- __exportStar(require("./manager-account"), exports);
18
+ __exportStar(require("./bidder-account"), exports);
19
19
  __exportStar(require("./scraper-account"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.132",
4
+ "version": "1.0.133",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",