lancer-shared 1.0.160 → 1.0.161
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.
|
@@ -29,7 +29,33 @@ export declare const proxySchema: z.ZodObject<{
|
|
|
29
29
|
password: string;
|
|
30
30
|
bidderId: string | null;
|
|
31
31
|
}>;
|
|
32
|
+
export declare const externalProxySchema: z.ZodObject<Omit<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
host: z.ZodString;
|
|
35
|
+
port: z.ZodNumber;
|
|
36
|
+
username: z.ZodString;
|
|
37
|
+
password: z.ZodString;
|
|
38
|
+
provider: z.ZodEnum<["webshare"]>;
|
|
39
|
+
country: z.ZodEnum<["USA"]>;
|
|
40
|
+
bidderId: z.ZodNullable<z.ZodString>;
|
|
41
|
+
}, "id" | "bidderId">, "strip", z.ZodTypeAny, {
|
|
42
|
+
port: number;
|
|
43
|
+
country: "USA";
|
|
44
|
+
username: string;
|
|
45
|
+
host: string;
|
|
46
|
+
provider: "webshare";
|
|
47
|
+
password: string;
|
|
48
|
+
}, {
|
|
49
|
+
port: number;
|
|
50
|
+
country: "USA";
|
|
51
|
+
username: string;
|
|
52
|
+
host: string;
|
|
53
|
+
provider: "webshare";
|
|
54
|
+
password: string;
|
|
55
|
+
}>;
|
|
32
56
|
export type ProxyProvider = z.infer<typeof proxyProviderSchema>;
|
|
33
57
|
export type ProxyCountry = z.infer<typeof proxyCountrySchema>;
|
|
34
58
|
export interface Proxy extends z.infer<typeof proxySchema> {
|
|
35
59
|
}
|
|
60
|
+
export interface ExternalProxy extends z.infer<typeof externalProxySchema> {
|
|
61
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
|
|
3
|
+
exports.externalProxySchema = exports.proxySchema = exports.proxyCountrySchema = exports.proxyProviderSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.proxyProviderSchema = zod_1.z.enum(['webshare']);
|
|
6
6
|
exports.proxyCountrySchema = zod_1.z.enum(['USA']);
|
|
@@ -14,3 +14,7 @@ exports.proxySchema = zod_1.z.object({
|
|
|
14
14
|
country: exports.proxyCountrySchema,
|
|
15
15
|
bidderId: zod_1.z.string().nullable(),
|
|
16
16
|
});
|
|
17
|
+
exports.externalProxySchema = exports.proxySchema.omit({
|
|
18
|
+
id: true,
|
|
19
|
+
bidderId: true,
|
|
20
|
+
});
|