lancer-shared 1.0.172 → 1.0.174

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.
@@ -5120,6 +5120,7 @@ const jobListingSchema = objectType({
5120
5120
  });
5121
5121
  const jobActivityOffsetHourSchema = custom((val) => jobActivityOffsetHours.includes(val));
5122
5122
  const jobActivityUpdateSchema = objectType({
5123
+ jobUrl: stringType(),
5123
5124
  data: jobActivitySchema,
5124
5125
  offsetHour: jobActivityOffsetHourSchema,
5125
5126
  scrapedAt: numberType(),
@@ -6241,15 +6242,15 @@ const regionMapping = {
6241
6242
 
6242
6243
  const ROUTES = {
6243
6244
  AUTH: {
6244
- BASE: 'auth',
6245
- REGISTER: 'auth/register',
6245
+ BASE: "auth",
6246
+ REGISTER: "auth/register",
6246
6247
  },
6247
6248
  EVENTS: {
6248
- BASE: 'events',
6249
+ BASE: "events",
6249
6250
  BY_ID: (id) => `events/${id}`,
6250
6251
  },
6251
6252
  CAMPAIGNS: {
6252
- BASE: 'campaigns',
6253
+ BASE: "campaigns",
6253
6254
  BY_ID: (id) => `campaigns/${id}`,
6254
6255
  LEADS: {
6255
6256
  BASE: (campaignId) => `campaigns/${campaignId}/leads`,
@@ -6282,69 +6283,69 @@ const ROUTES = {
6282
6283
  },
6283
6284
  },
6284
6285
  JOBS: {
6285
- BASE: 'jobs',
6286
+ BASE: "jobs",
6286
6287
  BY_ID: (id) => `jobs/${id}`,
6287
- BY_URL: (url) => `jobs/${encodeURIComponent(url)}`,
6288
- IMPORT: 'jobs/import',
6289
- FILTER_OPTIONS: 'jobs/filter-options',
6290
- TOTAL_JOBS: 'jobs/total-jobs',
6288
+ UPDATE_ACTIVITY: `jobs/update-activity`,
6289
+ IMPORT: "jobs/import",
6290
+ FILTER_OPTIONS: "jobs/filter-options",
6291
+ TOTAL_JOBS: "jobs/total-jobs",
6291
6292
  GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
6292
- SEARCH: 'jobs/search',
6293
+ SEARCH: "jobs/search",
6293
6294
  },
6294
6295
  USERS: {
6295
- BASE: 'users',
6296
+ BASE: "users",
6296
6297
  BY_ID: (id) => `users/${id}`,
6297
6298
  },
6298
6299
  AI_CONFIG: {
6299
- BASE: 'ai-config',
6300
- GENERATE_KNOWLEDGE_BASE: 'ai-config/generate-knowledge-base',
6300
+ BASE: "ai-config",
6301
+ GENERATE_KNOWLEDGE_BASE: "ai-config/generate-knowledge-base",
6301
6302
  },
6302
6303
  COOKIES: {
6303
- BASE: 'cookies',
6304
- SCRAPE: 'cookies/scrape-cookies',
6304
+ BASE: "cookies",
6305
+ SCRAPE: "cookies/scrape-cookies",
6305
6306
  },
6306
6307
  SCRAPING: {
6307
- BASE: 'scraping',
6308
- START_SCRAPING: 'scraping/start',
6309
- START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
6310
- START_US_SCRAPING: 'scraping/start-us',
6311
- START_UK_SCRAPING: 'scraping/start-uk',
6312
- UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
6313
- UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
6314
- UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
6315
- UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
6316
- UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
6317
- UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
6318
- SCRAPE_FEED_WORLDWIDE: 'scraping/feed-worldwide',
6319
- SCRAPE_FEED_UK: 'scraping/feed-uk',
6320
- SCRAPE_FEED_US: 'scraping/feed-us',
6321
- SCRAPE_JOB: 'scraping/job',
6322
- SCRAPE_JOB_ACTIVITY: 'scraping/job-activity',
6308
+ BASE: "scraping",
6309
+ START_SCRAPING: "scraping/start",
6310
+ START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
6311
+ START_US_SCRAPING: "scraping/start-us",
6312
+ START_UK_SCRAPING: "scraping/start-uk",
6313
+ UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
6314
+ UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
6315
+ UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
6316
+ UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
6317
+ UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
6318
+ UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
6319
+ SCRAPE_FEED_WORLDWIDE: "scraping/feed-worldwide",
6320
+ SCRAPE_FEED_UK: "scraping/feed-uk",
6321
+ SCRAPE_FEED_US: "scraping/feed-us",
6322
+ SCRAPE_JOB: "scraping/job",
6323
+ SCRAPE_JOB_ACTIVITY: "scraping/job-activity",
6323
6324
  },
6324
6325
  ADMIN: {
6325
- BASE: 'admin',
6326
+ BASE: "admin",
6326
6327
  BIDDER_ACCOUNTS: {
6327
- BASE: 'admin/bidder-accounts',
6328
+ BASE: "admin/bidder-accounts",
6328
6329
  BY_ID: (id) => `admin/bidder-accounts/${id}`,
6329
6330
  BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
6330
6331
  BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
6331
6332
  },
6332
6333
  SCRAPER_ACCOUNTS: {
6333
- BASE: 'admin/scraper-accounts',
6334
+ BASE: "admin/scraper-accounts",
6334
6335
  BY_ID: (id) => `admin/scraper-accounts/${id}`,
6335
6336
  BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
6336
6337
  BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
6337
6338
  },
6338
6339
  PROXIES: {
6339
- BASE: 'admin/proxies',
6340
+ BASE: "admin/proxies",
6340
6341
  BY_ID: (id) => `admin/proxies/${id}`,
6341
6342
  REPLACE_PROXY: (id) => `admin/proxies/${id}/replace`,
6342
- SYNC: 'admin/proxies/sync',
6343
- AVAILABLE_REPLACEMENTS: 'admin/proxies/available-replacements',
6343
+ SYNC: "admin/proxies/sync",
6344
+ AVAILABLE_REPLACEMENTS: "admin/proxies/available-replacements",
6344
6345
  },
6345
6346
  },
6346
6347
  BID: {
6347
- BASE: 'bid',
6348
+ BASE: "bid",
6348
6349
  BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
6349
6350
  },
6350
6351
  };
@@ -1,4 +1,4 @@
1
- import { LeadStatus, TimeFilter } from '../types';
1
+ import { LeadStatus, TimeFilter } from "../types";
2
2
  export declare const ROUTES: {
3
3
  readonly AUTH: {
4
4
  readonly BASE: "auth";
@@ -22,7 +22,7 @@ export declare const ROUTES: {
22
22
  readonly AI_METRICS: (campaignId: string) => string;
23
23
  readonly CONNECT_SAVED: (campaignId: string) => string;
24
24
  readonly ANALYTICS: (campaignId: string, timeFilter: TimeFilter) => string;
25
- readonly ACTIVITY: (campaignId: string, status: LeadStatus | 'all', offset: string, limit: string) => string;
25
+ readonly ACTIVITY: (campaignId: string, status: LeadStatus | "all", offset: string, limit: string) => string;
26
26
  readonly INTEGRATIONS: {
27
27
  readonly BASE: (campaignId: string) => string;
28
28
  readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
@@ -44,7 +44,7 @@ export declare const ROUTES: {
44
44
  readonly JOBS: {
45
45
  readonly BASE: "jobs";
46
46
  readonly BY_ID: (id: string) => string;
47
- readonly BY_URL: (url: string) => string;
47
+ readonly UPDATE_ACTIVITY: "jobs/update-activity";
48
48
  readonly IMPORT: "jobs/import";
49
49
  readonly FILTER_OPTIONS: "jobs/filter-options";
50
50
  readonly TOTAL_JOBS: "jobs/total-jobs";
@@ -2250,6 +2250,7 @@ export declare const jobListingSchema: z.ZodObject<{
2250
2250
  }>;
2251
2251
  export declare const jobActivityOffsetHourSchema: z.ZodType<4 | 24, z.ZodTypeDef, 4 | 24>;
2252
2252
  export declare const jobActivityUpdateSchema: z.ZodObject<{
2253
+ jobUrl: z.ZodString;
2253
2254
  data: z.ZodObject<{
2254
2255
  proposals: z.ZodObject<{
2255
2256
  min: z.ZodNullable<z.ZodNumber>;
@@ -2293,6 +2294,7 @@ export declare const jobActivityUpdateSchema: z.ZodObject<{
2293
2294
  offsetHour: z.ZodType<4 | 24, z.ZodTypeDef, 4 | 24>;
2294
2295
  scrapedAt: z.ZodNumber;
2295
2296
  }, "strip", z.ZodTypeAny, {
2297
+ jobUrl: string;
2296
2298
  data: {
2297
2299
  proposals: {
2298
2300
  min: number | null;
@@ -2308,6 +2310,7 @@ export declare const jobActivityUpdateSchema: z.ZodObject<{
2308
2310
  offsetHour: 4 | 24;
2309
2311
  scrapedAt: number;
2310
2312
  }, {
2313
+ jobUrl: string;
2311
2314
  data: {
2312
2315
  proposals: {
2313
2316
  min: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.0.172",
3
+ "version": "1.0.174",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",