lancer-shared 1.0.133 → 1.0.134

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,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";
@@ -21,7 +21,7 @@ export declare const ROUTES: {
21
21
  readonly INSIGHTS: (campaignId: string) => string;
22
22
  readonly CONNECT_SAVED: (campaignId: string) => string;
23
23
  readonly ANALYTICS: (campaignId: string, timeFilter: TimeFilter) => string;
24
- readonly ACTIVITY: (campaignId: string, status: LeadStatus | "all", offset: string, limit: string) => string;
24
+ readonly ACTIVITY: (campaignId: string, status: LeadStatus | 'all', offset: string, limit: string) => string;
25
25
  readonly INTEGRATIONS: {
26
26
  readonly BASE: (campaignId: string) => string;
27
27
  readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
@@ -75,8 +75,8 @@ export declare const ROUTES: {
75
75
  };
76
76
  readonly ADMIN: {
77
77
  readonly BASE: "admin";
78
- readonly MANAGER_ACCOUNTS: {
79
- readonly BASE: "admin/manager-accounts";
78
+ readonly BIDDER_ACCOUNTS: {
79
+ readonly BASE: "admin/bidder-accounts";
80
80
  readonly BY_ID: (id: string) => string;
81
81
  readonly BY_PROVIDER: (provider: string) => string;
82
82
  readonly BY_PROVIDER_AND_ID: (provider: string, id: string) => string;
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildRoute = exports.ROUTES = void 0;
4
4
  exports.ROUTES = {
5
5
  AUTH: {
6
- BASE: "auth",
7
- REGISTER: "auth/register",
6
+ BASE: 'auth',
7
+ REGISTER: 'auth/register',
8
8
  },
9
9
  EVENTS: {
10
- BASE: "events",
10
+ BASE: 'events',
11
11
  BY_ID: (id) => `events/${id}`,
12
12
  },
13
13
  CAMPAIGNS: {
14
- BASE: "campaigns",
14
+ BASE: 'campaigns',
15
15
  BY_ID: (id) => `campaigns/${id}`,
16
16
  LEADS: {
17
17
  BASE: (campaignId) => `campaigns/${campaignId}/leads`,
@@ -43,55 +43,55 @@ exports.ROUTES = {
43
43
  },
44
44
  },
45
45
  JOBS: {
46
- BASE: "jobs",
46
+ BASE: 'jobs',
47
47
  BY_ID: (id) => `jobs/${id}`,
48
- IMPORT: "jobs/import",
49
- FILTER_OPTIONS: "jobs/filter-options",
50
- TOTAL_JOBS: "jobs/total-jobs",
48
+ IMPORT: 'jobs/import',
49
+ FILTER_OPTIONS: 'jobs/filter-options',
50
+ TOTAL_JOBS: 'jobs/total-jobs',
51
51
  GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
52
- SEARCH: "jobs/search",
52
+ SEARCH: 'jobs/search',
53
53
  },
54
54
  USERS: {
55
- BASE: "users",
55
+ BASE: 'users',
56
56
  BY_ID: (id) => `users/${id}`,
57
57
  },
58
58
  AI_CONFIG: {
59
- BASE: "ai-config",
59
+ BASE: 'ai-config',
60
60
  },
61
61
  COOKIES: {
62
- BASE: "cookies",
63
- SCRAPE: "cookies/scrape-cookies",
62
+ BASE: 'cookies',
63
+ SCRAPE: 'cookies/scrape-cookies',
64
64
  },
65
65
  SCRAPING: {
66
- BASE: "scraping",
67
- START_SCRAPING: "scraping/start",
68
- START_WORLDWIDE_SCRAPING: "scraping/start-worldwide",
69
- START_US_SCRAPING: "scraping/start-us",
70
- START_UK_SCRAPING: "scraping/start-uk",
71
- UPDATE_ACTIVITY_4H_WORLDWIDE: "scraping/update-activity/4h",
72
- UPDATE_ACTIVITY_4H_UK: "scraping/update-activity/4h/uk",
73
- UPDATE_ACTIVITY_4H_US: "scraping/update-activity/4h/us",
74
- UPDATE_ACTIVITY_24H_WORLDWIDE: "scraping/update-activity/24h",
75
- UPDATE_ACTIVITY_24H_UK: "scraping/update-activity/24h/uk",
76
- UPDATE_ACTIVITY_24H_US: "scraping/update-activity/24h/us",
66
+ BASE: 'scraping',
67
+ START_SCRAPING: 'scraping/start',
68
+ START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
69
+ START_US_SCRAPING: 'scraping/start-us',
70
+ START_UK_SCRAPING: 'scraping/start-uk',
71
+ UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
72
+ UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
73
+ UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
74
+ UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
75
+ UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
76
+ UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
77
77
  },
78
78
  ADMIN: {
79
- BASE: "admin",
80
- MANAGER_ACCOUNTS: {
81
- BASE: "admin/manager-accounts",
82
- BY_ID: (id) => `admin/manager-accounts/${id}`,
83
- BY_PROVIDER: (provider) => `admin/manager-accounts/${provider}`,
84
- BY_PROVIDER_AND_ID: (provider, id) => `admin/manager-accounts/${provider}/${id}`,
79
+ BASE: 'admin',
80
+ BIDDER_ACCOUNTS: {
81
+ BASE: 'admin/bidder-accounts',
82
+ BY_ID: (id) => `admin/bidder-accounts/${id}`,
83
+ BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
84
+ BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
85
85
  },
86
86
  SCRAPER_ACCOUNTS: {
87
- BASE: "admin/scraper-accounts",
87
+ BASE: 'admin/scraper-accounts',
88
88
  BY_ID: (id) => `admin/scraper-accounts/${id}`,
89
89
  BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
90
90
  BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
91
91
  },
92
92
  },
93
93
  BID: {
94
- BASE: "bid",
94
+ BASE: 'bid',
95
95
  BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
96
96
  },
97
97
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.133",
4
+ "version": "1.0.134",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",