lancer-shared 1.2.118 → 1.2.120

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.
Files changed (73) hide show
  1. package/dist/bundle.cjs.js +903 -322
  2. package/dist/constants/organization.d.ts +2 -2
  3. package/dist/constants/proxies.d.ts +4 -0
  4. package/dist/constants/routes.d.ts +3 -2
  5. package/dist/constants/routes.js +6 -0
  6. package/dist/constants/upwork-filters.d.ts +5 -0
  7. package/dist/constants/upwork-filters.js +75 -0
  8. package/dist/schemas/account/bidder-account.d.ts +19 -7
  9. package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
  10. package/dist/schemas/account/scraper-account.d.ts +21 -16
  11. package/dist/schemas/ai-config/ai-config.d.ts +39 -0
  12. package/dist/schemas/ai-config/ai-config.js +12 -0
  13. package/dist/schemas/ai-config/index.d.ts +1 -0
  14. package/dist/schemas/ai-config/index.js +17 -0
  15. package/dist/schemas/bid/bid-status.d.ts +30 -0
  16. package/dist/schemas/bid/bid-status.js +15 -0
  17. package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
  18. package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
  19. package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
  20. package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
  21. package/dist/schemas/bidding/proposal-dto.js +18 -0
  22. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
  23. package/dist/schemas/job/feed-job.d.ts +842 -0
  24. package/dist/schemas/job/index.d.ts +3 -0
  25. package/dist/schemas/job/job-details.d.ts +5711 -305
  26. package/dist/schemas/job/job-exceptions.d.ts +10 -0
  27. package/dist/schemas/job/job-pipeline.d.ts +74 -0
  28. package/dist/schemas/job/job-pipeline.js +29 -0
  29. package/dist/schemas/job/job-suitability.d.ts +12 -0
  30. package/dist/schemas/job/job-suitability.js +13 -0
  31. package/dist/schemas/job/job.d.ts +16 -16
  32. package/dist/schemas/job/pipeline-job.d.ts +9 -3
  33. package/dist/schemas/job/pipeline-job.js +1 -0
  34. package/dist/schemas/knowledge-object/index.d.ts +1 -0
  35. package/dist/schemas/knowledge-object/index.js +17 -0
  36. package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
  37. package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
  38. package/dist/schemas/logger/log-event.d.ts +290 -36
  39. package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
  40. package/dist/schemas/proxy/proxy.d.ts +20 -9
  41. package/dist/schemas/proxy/proxy.js +3 -1
  42. package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
  43. package/dist/schemas/scraper/scrape-response.d.ts +345 -0
  44. package/dist/schemas/scraper/scrape-response.js +9 -0
  45. package/dist/schemas/upwork-account/index.d.ts +1 -1
  46. package/dist/schemas/upwork-account/index.js +1 -1
  47. package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +14 -14
  48. package/dist/schemas/upwork-account/upwork-business-manager-account.js +2 -2
  49. package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
  50. package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
  51. package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +23 -23
  52. package/dist/schemas/upwork-account/upwork-scraping-account.js +4 -3
  53. package/dist/types/ai-config/ai-config.d.ts +6 -0
  54. package/dist/types/ai-config/ai-config.js +2 -0
  55. package/dist/types/ai-config/index.d.ts +1 -0
  56. package/dist/types/ai-config/index.js +17 -0
  57. package/dist/types/bid/bid-status.d.ts +5 -0
  58. package/dist/types/bid/bid-status.js +2 -0
  59. package/dist/types/bidding/proposal-dto.d.ts +3 -0
  60. package/dist/types/bidding/proposal-dto.js +2 -0
  61. package/dist/types/job/job-pipeline.d.ts +4 -0
  62. package/dist/types/job/job-pipeline.js +2 -0
  63. package/dist/types/job/job-suitability.d.ts +3 -0
  64. package/dist/types/job/job-suitability.js +2 -0
  65. package/dist/types/knowledge-object/index.d.ts +1 -0
  66. package/dist/types/knowledge-object/index.js +17 -0
  67. package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
  68. package/dist/types/knowledge-object/knowledge-object.js +2 -0
  69. package/dist/types/scraper/scrape-response.d.ts +4 -0
  70. package/dist/types/scraper/scrape-response.js +2 -0
  71. package/dist/types/upwork-account/upwork-scraping-account.d.ts +2 -2
  72. package/package.json +1 -1
  73. package/dist/schemas/account/bidder-account-rental.d.ts +0 -91
@@ -1,2 +1,2 @@
1
- import { TrackUsageEventType } from "../schemas";
2
- export declare const creditDeductionAmountMap: Record<TrackUsageEventType, number>;
1
+ import { CreditDeductionEventType } from "../schemas";
2
+ export declare const creditDeductionAmountMap: Record<CreditDeductionEventType, number>;
@@ -0,0 +1,4 @@
1
+ import { ProxyCountry } from '../schemas';
2
+ export declare const countryToWebshareCountryCode: (country: ProxyCountry) => string;
3
+ export declare const webshareCountryCodeToCountry: (countryCode: string) => ProxyCountry;
4
+ export declare const IPQualityScoreCountryCodeToCountry: (countryCode: string) => ProxyCountry;
@@ -1,5 +1,5 @@
1
- import { Moment } from "moment";
2
- import { ChatbotPlatform } from "../schemas/campaign/campaign-chat-bot";
1
+ import { Moment } from 'moment';
2
+ import { ChatbotPlatform } from '../schemas/campaign/campaign-chat-bot';
3
3
  export declare const ROUTES: {
4
4
  readonly AUTH: {
5
5
  readonly BASE: "auth";
@@ -68,6 +68,7 @@ export declare const ROUTES: {
68
68
  readonly BY_ID: (id: string) => string;
69
69
  readonly BY_PROVIDER: (provider: string) => string;
70
70
  readonly BY_PROVIDER_AND_ID: (provider: string, id: string) => string;
71
+ readonly REFRESH_ROTATING_PROXIES: (provider: string) => string;
71
72
  };
72
73
  readonly PROXIES: {
73
74
  readonly BASE: "admin/proxies";
@@ -91,6 +91,12 @@ exports.ROUTES = {
91
91
  BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
92
92
  BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
93
93
  },
94
+ PROXIES: {
95
+ BASE: 'admin/proxies',
96
+ BY_ID: (id) => `admin/proxies/${id}`,
97
+ REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
98
+ SYNC: 'admin/proxies/sync',
99
+ },
94
100
  },
95
101
  BID: {
96
102
  BASE: 'bid',
@@ -0,0 +1,5 @@
1
+ import { KnowledgeObject } from '../types/knowledge-object';
2
+ export declare const CATEGORIES: string[];
3
+ export declare const EXPERIENCE_LEVELS: string[];
4
+ export declare const CLIENT_HISTORY: string[];
5
+ export declare const emptyKnowledgeObject: KnowledgeObject;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.emptyKnowledgeObject = exports.CLIENT_HISTORY = exports.EXPERIENCE_LEVELS = exports.CATEGORIES = void 0;
4
+ exports.CATEGORIES = [
5
+ 'Accounting',
6
+ 'Business Analysis & Strategy',
7
+ 'Financial Analysis & Modeling',
8
+ 'HR Administration',
9
+ 'Management Consulting',
10
+ 'Tax Preparation',
11
+ 'Data Entry',
12
+ 'Personal/Virtual Assistance',
13
+ 'Project Management',
14
+ 'Research',
15
+ 'Customer Service',
16
+ 'Technical Support',
17
+ 'Data Analytics',
18
+ 'Data Processing',
19
+ 'Data Engineering',
20
+ 'Machine Learning',
21
+ 'AI Development',
22
+ 'Art & Illustration',
23
+ 'Audio Production',
24
+ 'Brand Design',
25
+ 'Logo Design',
26
+ 'Graphics Design',
27
+ 'Video Production',
28
+ 'Voice Acting',
29
+ 'Architecture',
30
+ 'Chemical Engineering',
31
+ 'Civil Engineering',
32
+ 'Electrical Engineering',
33
+ 'Interior Design',
34
+ 'Mechanical Engineering',
35
+ 'Database Administration',
36
+ 'Information Security',
37
+ 'Network Administration',
38
+ 'Systems Administration',
39
+ 'DevOps Engineering',
40
+ 'Business Law',
41
+ 'Immigration Law',
42
+ 'Tax Law',
43
+ 'Regulatory Law',
44
+ 'Paralegal Services',
45
+ 'Digital Marketing',
46
+ 'Lead Generation',
47
+ 'Marketing Strategy',
48
+ 'Social Media Marketing',
49
+ 'SEO',
50
+ 'Language Translation',
51
+ 'Legal Translation',
52
+ 'Technical Translation',
53
+ 'Medical Translation',
54
+ 'Desktop Development',
55
+ 'Mobile Development',
56
+ 'Web Development',
57
+ 'Game Development',
58
+ 'QA & Testing',
59
+ 'Content Writing',
60
+ 'Copywriting',
61
+ 'Technical Writing',
62
+ 'Creative Writing',
63
+ 'Editing',
64
+ ];
65
+ exports.EXPERIENCE_LEVELS = ['Entry Level', 'Mid Level', 'Senior Level'];
66
+ exports.CLIENT_HISTORY = ['No hires', '1-9 hires', '10+ hires'];
67
+ // Default knowledge object with all null values
68
+ exports.emptyKnowledgeObject = {
69
+ categories: exports.CATEGORIES.reduce((acc, category) => (Object.assign(Object.assign({}, acc), { [category]: null })), {}),
70
+ experienceLevels: exports.EXPERIENCE_LEVELS.reduce((acc, level) => (Object.assign(Object.assign({}, acc), { [level]: null })), {}),
71
+ minHourlyRate: null,
72
+ fixedPriceMin: null,
73
+ clientHistory: exports.CLIENT_HISTORY.reduce((acc, history) => (Object.assign(Object.assign({}, acc), { [history]: null })), {}),
74
+ keywords: [],
75
+ };
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
- import { Proxy } from "../proxy";
1
+ import { z } from 'zod';
2
+ import { Proxy } from '../proxy';
3
3
  export declare const bidderAccountProvider: z.ZodEnum<["user-provided", "lancer-provided"]>;
4
4
  export declare const bidderAccountAgencySchema: z.ZodObject<{
5
5
  name: z.ZodString;
@@ -50,6 +50,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
50
50
  createdAt: z.ZodNumber;
51
51
  updatedAt: z.ZodNumber;
52
52
  region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
53
+ isProtected: z.ZodOptional<z.ZodBoolean>;
53
54
  }, "strip", z.ZodTypeAny, {
54
55
  name: string | null;
55
56
  id: string;
@@ -73,6 +74,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
73
74
  updatedAt: number;
74
75
  region: "all" | "Worldwide" | "UKOnly" | "USOnly";
75
76
  googleOauthTokens?: any;
77
+ isProtected?: boolean | undefined;
76
78
  }, {
77
79
  name: string | null;
78
80
  id: string;
@@ -96,6 +98,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
96
98
  updatedAt: number;
97
99
  region: "all" | "Worldwide" | "UKOnly" | "USOnly";
98
100
  googleOauthTokens?: any;
101
+ isProtected?: boolean | undefined;
99
102
  }>;
100
103
  export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
101
104
  id: z.ZodString;
@@ -130,6 +133,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
130
133
  createdAt: z.ZodNumber;
131
134
  updatedAt: z.ZodNumber;
132
135
  region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
136
+ isProtected: z.ZodOptional<z.ZodBoolean>;
133
137
  }, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies" | "region">, {
134
138
  proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
135
139
  }>, "strip", z.ZodTypeAny, {
@@ -197,6 +201,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
197
201
  createdAt: z.ZodOptional<z.ZodNumber>;
198
202
  updatedAt: z.ZodOptional<z.ZodNumber>;
199
203
  region: z.ZodOptional<z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>>;
204
+ isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
200
205
  }, "strip", z.ZodTypeAny, {
201
206
  name?: string | null | undefined;
202
207
  provider?: "user-provided" | "lancer-provided" | undefined;
@@ -219,6 +224,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
219
224
  createdAt?: number | undefined;
220
225
  updatedAt?: number | undefined;
221
226
  region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
227
+ isProtected?: boolean | undefined;
222
228
  }, {
223
229
  name?: string | null | undefined;
224
230
  provider?: "user-provided" | "lancer-provided" | undefined;
@@ -241,6 +247,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
241
247
  createdAt?: number | undefined;
242
248
  updatedAt?: number | undefined;
243
249
  region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
250
+ isProtected?: boolean | undefined;
244
251
  }>;
245
252
  export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
246
253
  email: z.ZodString;
@@ -254,16 +261,18 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
254
261
  port: z.ZodNumber;
255
262
  username: z.ZodString;
256
263
  password: z.ZodString;
257
- provider: z.ZodEnum<["webshare", "decodo"]>;
264
+ provider: z.ZodEnum<["webshare", "decodo", "proxy-cheap"]>;
258
265
  fraudScore: z.ZodNullable<z.ZodNumber>;
259
266
  claimedCountry: z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
260
267
  status: z.ZodNullable<z.ZodEnum<["invalid", "valid", "pending_validation"]>>;
261
268
  country: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
262
269
  accountId: z.ZodNullable<z.ZodString>;
270
+ type: z.ZodEnum<["rotating", "static"]>;
263
271
  }, "strip", z.ZodTypeAny, {
264
272
  status: "valid" | "invalid" | "pending_validation" | null;
273
+ type: "rotating" | "static";
265
274
  id: string;
266
- provider: "webshare" | "decodo";
275
+ provider: "webshare" | "decodo" | "proxy-cheap";
267
276
  password: string;
268
277
  externalId: string;
269
278
  host: string;
@@ -275,8 +284,9 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
275
284
  accountId: string | null;
276
285
  }, {
277
286
  status: "valid" | "invalid" | "pending_validation" | null;
287
+ type: "rotating" | "static";
278
288
  id: string;
279
- provider: "webshare" | "decodo";
289
+ provider: "webshare" | "decodo" | "proxy-cheap";
280
290
  password: string;
281
291
  externalId: string;
282
292
  host: string;
@@ -294,8 +304,9 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
294
304
  multiloginProfileId: string;
295
305
  proxy: {
296
306
  status: "valid" | "invalid" | "pending_validation" | null;
307
+ type: "rotating" | "static";
297
308
  id: string;
298
- provider: "webshare" | "decodo";
309
+ provider: "webshare" | "decodo" | "proxy-cheap";
299
310
  password: string;
300
311
  externalId: string;
301
312
  host: string;
@@ -313,8 +324,9 @@ export declare const verifyBidderAccountCredentialsSchema: z.ZodObject<{
313
324
  multiloginProfileId: string;
314
325
  proxy: {
315
326
  status: "valid" | "invalid" | "pending_validation" | null;
327
+ type: "rotating" | "static";
316
328
  id: string;
317
- provider: "webshare" | "decodo";
329
+ provider: "webshare" | "decodo" | "proxy-cheap";
318
330
  password: string;
319
331
  externalId: string;
320
332
  host: string;
@@ -0,0 +1,5 @@
1
+ export declare class NoBidderAccountsAvailableException extends Error {
2
+ readonly code = "NO_BIDDER_ACCOUNTS_AVAILABLE";
3
+ constructor(message: string);
4
+ }
5
+ export declare const noBidderAccountsAvailableException: (message: string) => NoBidderAccountsAvailableException;
@@ -1,6 +1,6 @@
1
- import { z } from "zod";
2
- import { Proxy } from "../proxy";
3
- export declare const scraperAccountType: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
1
+ import { z } from 'zod';
2
+ import { Proxy } from '../proxy';
3
+ export declare const scraperAccountType: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
4
4
  export declare const scraperAccountSchema: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  isActive: z.ZodBoolean;
@@ -11,9 +11,10 @@ export declare const scraperAccountSchema: z.ZodObject<{
11
11
  lastUsed: z.ZodNullable<z.ZodNumber>;
12
12
  multiloginProfileId: z.ZodNullable<z.ZodString>;
13
13
  proxyId: z.ZodNullable<z.ZodString>;
14
- type: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
14
+ type: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
15
15
  createdAt: z.ZodNumber;
16
16
  updatedAt: z.ZodNumber;
17
+ isProtected: z.ZodOptional<z.ZodBoolean>;
17
18
  }, "strip", z.ZodTypeAny, {
18
19
  id: string;
19
20
  isActive: boolean;
@@ -24,9 +25,10 @@ export declare const scraperAccountSchema: z.ZodObject<{
24
25
  lastUsed: number | null;
25
26
  multiloginProfileId: string | null;
26
27
  proxyId: string | null;
27
- type: "feed" | "job" | "status" | "activity" | "profile";
28
+ type: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated";
28
29
  createdAt: number;
29
30
  updatedAt: number;
31
+ isProtected?: boolean | undefined;
30
32
  }, {
31
33
  id: string;
32
34
  isActive: boolean;
@@ -37,11 +39,12 @@ export declare const scraperAccountSchema: z.ZodObject<{
37
39
  lastUsed: number | null;
38
40
  multiloginProfileId: string | null;
39
41
  proxyId: string | null;
40
- type: "feed" | "job" | "status" | "activity" | "profile";
42
+ type: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated";
41
43
  createdAt: number;
42
44
  updatedAt: number;
45
+ isProtected?: boolean | undefined;
43
46
  }>;
44
- export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
47
+ export declare const createScraperAccountSchema: z.ZodObject<Pick<{
45
48
  id: z.ZodString;
46
49
  isActive: z.ZodBoolean;
47
50
  region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
@@ -51,25 +54,24 @@ export declare const createScraperAccountSchema: z.ZodObject<z.objectUtil.extend
51
54
  lastUsed: z.ZodNullable<z.ZodNumber>;
52
55
  multiloginProfileId: z.ZodNullable<z.ZodString>;
53
56
  proxyId: z.ZodNullable<z.ZodString>;
54
- type: z.ZodEnum<["feed", "job", "status", "activity", "profile"]>;
57
+ type: z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>;
55
58
  createdAt: z.ZodNumber;
56
59
  updatedAt: z.ZodNumber;
57
- }, "isActive" | "region" | "email" | "password" | "securityQuestionAnswer">, {
58
- proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
59
- }>, "strip", z.ZodTypeAny, {
60
+ isProtected: z.ZodOptional<z.ZodBoolean>;
61
+ }, "isActive" | "region" | "email" | "password" | "securityQuestionAnswer" | "type">, "strip", z.ZodTypeAny, {
60
62
  isActive: boolean;
61
63
  region: "all" | "Worldwide" | "UKOnly" | "USOnly";
62
64
  email: string;
63
65
  password: string;
64
66
  securityQuestionAnswer: string | null;
65
- proxyCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
67
+ type: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated";
66
68
  }, {
67
69
  isActive: boolean;
68
70
  region: "all" | "Worldwide" | "UKOnly" | "USOnly";
69
71
  email: string;
70
72
  password: string;
71
73
  securityQuestionAnswer: string | null;
72
- proxyCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
74
+ type: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated";
73
75
  }>;
74
76
  export declare const updateScraperAccountSchema: z.ZodObject<{
75
77
  isActive: z.ZodOptional<z.ZodBoolean>;
@@ -80,9 +82,10 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
80
82
  lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
83
  multiloginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
84
  proxyId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
- type: z.ZodOptional<z.ZodEnum<["feed", "job", "status", "activity", "profile"]>>;
85
+ type: z.ZodOptional<z.ZodEnum<["feed", "job", "status", "activity", "profile", "unauthenticated"]>>;
84
86
  createdAt: z.ZodOptional<z.ZodNumber>;
85
87
  updatedAt: z.ZodOptional<z.ZodNumber>;
88
+ isProtected: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
86
89
  }, "strip", z.ZodTypeAny, {
87
90
  isActive?: boolean | undefined;
88
91
  region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
@@ -92,9 +95,10 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
92
95
  lastUsed?: number | null | undefined;
93
96
  multiloginProfileId?: string | null | undefined;
94
97
  proxyId?: string | null | undefined;
95
- type?: "feed" | "job" | "status" | "activity" | "profile" | undefined;
98
+ type?: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated" | undefined;
96
99
  createdAt?: number | undefined;
97
100
  updatedAt?: number | undefined;
101
+ isProtected?: boolean | undefined;
98
102
  }, {
99
103
  isActive?: boolean | undefined;
100
104
  region?: "all" | "Worldwide" | "UKOnly" | "USOnly" | undefined;
@@ -104,9 +108,10 @@ export declare const updateScraperAccountSchema: z.ZodObject<{
104
108
  lastUsed?: number | null | undefined;
105
109
  multiloginProfileId?: string | null | undefined;
106
110
  proxyId?: string | null | undefined;
107
- type?: "feed" | "job" | "status" | "activity" | "profile" | undefined;
111
+ type?: "feed" | "job" | "status" | "activity" | "profile" | "unauthenticated" | undefined;
108
112
  createdAt?: number | undefined;
109
113
  updatedAt?: number | undefined;
114
+ isProtected?: boolean | undefined;
110
115
  }>;
111
116
  export type ScraperAccountType = z.infer<typeof scraperAccountType>;
112
117
  export interface ScraperAccount extends z.infer<typeof scraperAccountSchema> {
@@ -0,0 +1,39 @@
1
+ import { z } from 'zod';
2
+ export declare const aiConfigSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ suitabilityPrompt: z.ZodOptional<z.ZodString>;
5
+ proposalPrompt: z.ZodOptional<z.ZodString>;
6
+ questionProposalPrompt: z.ZodOptional<z.ZodString>;
7
+ knowledgeBase: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ suitabilityPrompt?: string | undefined;
11
+ proposalPrompt?: string | undefined;
12
+ questionProposalPrompt?: string | undefined;
13
+ knowledgeBase?: string | undefined;
14
+ }, {
15
+ id: string;
16
+ suitabilityPrompt?: string | undefined;
17
+ proposalPrompt?: string | undefined;
18
+ questionProposalPrompt?: string | undefined;
19
+ knowledgeBase?: string | undefined;
20
+ }>;
21
+ export declare const updateAiConfigSchema: z.ZodObject<{
22
+ id: z.ZodOptional<z.ZodString>;
23
+ suitabilityPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
24
+ proposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
25
+ questionProposalPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
26
+ knowledgeBase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ id?: string | undefined;
29
+ suitabilityPrompt?: string | undefined;
30
+ proposalPrompt?: string | undefined;
31
+ questionProposalPrompt?: string | undefined;
32
+ knowledgeBase?: string | undefined;
33
+ }, {
34
+ id?: string | undefined;
35
+ suitabilityPrompt?: string | undefined;
36
+ proposalPrompt?: string | undefined;
37
+ questionProposalPrompt?: string | undefined;
38
+ knowledgeBase?: string | undefined;
39
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateAiConfigSchema = exports.aiConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.aiConfigSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ suitabilityPrompt: zod_1.z.string().optional(),
8
+ proposalPrompt: zod_1.z.string().optional(),
9
+ questionProposalPrompt: zod_1.z.string().optional(),
10
+ knowledgeBase: zod_1.z.string().optional(),
11
+ });
12
+ exports.updateAiConfigSchema = exports.aiConfigSchema.partial();
@@ -0,0 +1 @@
1
+ export * from './ai-config';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ai-config"), exports);
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare const bidSuccessSchema: z.ZodObject<{
3
+ status: z.ZodLiteral<"success">;
4
+ biddingAmount: z.ZodNumber;
5
+ boosted: z.ZodBoolean;
6
+ boostingAmount: z.ZodNumber;
7
+ cookies: z.ZodArray<z.ZodAny, "many">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ status: "success";
10
+ cookies: any[];
11
+ biddingAmount: number;
12
+ boosted: boolean;
13
+ boostingAmount: number;
14
+ }, {
15
+ status: "success";
16
+ cookies: any[];
17
+ biddingAmount: number;
18
+ boosted: boolean;
19
+ boostingAmount: number;
20
+ }>;
21
+ export declare const bidFailedSchema: z.ZodObject<{
22
+ status: z.ZodLiteral<"failed">;
23
+ errorMessage: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ status: "failed";
26
+ errorMessage: string;
27
+ }, {
28
+ status: "failed";
29
+ errorMessage: string;
30
+ }>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bidFailedSchema = exports.bidSuccessSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.bidSuccessSchema = zod_1.z.object({
6
+ status: zod_1.z.literal('success'),
7
+ biddingAmount: zod_1.z.number(),
8
+ boosted: zod_1.z.boolean(),
9
+ boostingAmount: zod_1.z.number(),
10
+ cookies: zod_1.z.array(zod_1.z.any()),
11
+ });
12
+ exports.bidFailedSchema = zod_1.z.object({
13
+ status: zod_1.z.literal('failed'),
14
+ errorMessage: zod_1.z.string(),
15
+ });
@@ -0,0 +1,4 @@
1
+ export declare abstract class BaseException extends Error {
2
+ abstract readonly code: string;
3
+ constructor(message: string);
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare class EvaluateElementException extends Error {
2
+ readonly code = "EVALUATE_ELEMENT_EXCEPTION";
3
+ constructor(element: any, message: string);
4
+ }
5
+ export declare function evaluateElementException(element: any, message: string): EvaluateElementException;
@@ -0,0 +1,5 @@
1
+ export declare class WaitForFunctionTimeoutError extends Error {
2
+ readonly code = "WAIT_FOR_FUNCTION_TIMEOUT_ERROR";
3
+ constructor(fn: Function, timeout: number);
4
+ }
5
+ export declare const waitForFunctionTimeoutError: (fn: Function, timeout: number) => WaitForFunctionTimeoutError;
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ export declare const proposalDtoSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3
+ status: z.ZodLiteral<"success">;
4
+ biddingAmount: z.ZodNumber;
5
+ boosted: z.ZodBoolean;
6
+ boostingAmount: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ status: "success";
9
+ biddingAmount: number;
10
+ boosted: boolean;
11
+ boostingAmount: number;
12
+ }, {
13
+ status: "success";
14
+ biddingAmount: number;
15
+ boosted: boolean;
16
+ boostingAmount: number;
17
+ }>, z.ZodObject<{
18
+ status: z.ZodLiteral<"failed">;
19
+ errorMessage: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ status: "failed";
22
+ errorMessage: string;
23
+ }, {
24
+ status: "failed";
25
+ errorMessage: string;
26
+ }>]>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.proposalDtoSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.proposalDtoSchema = zod_1.z.discriminatedUnion('status', [
6
+ // Success case
7
+ zod_1.z.object({
8
+ status: zod_1.z.literal('success'),
9
+ biddingAmount: zod_1.z.number(),
10
+ boosted: zod_1.z.boolean(),
11
+ boostingAmount: zod_1.z.number(),
12
+ }),
13
+ // Failed case
14
+ zod_1.z.object({
15
+ status: zod_1.z.literal('failed'),
16
+ errorMessage: zod_1.z.string(),
17
+ }),
18
+ ]);
@@ -80,8 +80,3 @@ export declare const updateCampaignIntegrationsSchema: z.ZodObject<{
80
80
  slack: string | null;
81
81
  } | undefined;
82
82
  }>;
83
- export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
84
- export interface CampaignIntegrations extends z.infer<typeof campaignIntegrationsSchema> {
85
- }
86
- export interface UpdateCampaignIntegrations extends z.infer<typeof updateCampaignIntegrationsSchema> {
87
- }