lancer-shared 1.0.153 → 1.0.155
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.
- package/dist/constants/routes.d.ts +3 -2
- package/dist/constants/routes.js +30 -29
- package/dist/schemas/campaign/campaign-ai-metrics.d.ts +13 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -0
- package/dist/schemas/campaign/index.d.ts +7 -6
- package/dist/schemas/campaign/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LeadStatus, TimeFilter } from
|
|
1
|
+
import { LeadStatus, TimeFilter } from '../types';
|
|
2
2
|
export declare const ROUTES: {
|
|
3
3
|
readonly AUTH: {
|
|
4
4
|
readonly BASE: "auth";
|
|
@@ -19,9 +19,10 @@ export declare const ROUTES: {
|
|
|
19
19
|
readonly SEARCH: (campaignId: string) => string;
|
|
20
20
|
};
|
|
21
21
|
readonly INSIGHTS: (campaignId: string) => string;
|
|
22
|
+
readonly AI_METRICS: (campaignId: string) => string;
|
|
22
23
|
readonly CONNECT_SAVED: (campaignId: string) => string;
|
|
23
24
|
readonly ANALYTICS: (campaignId: string, timeFilter: TimeFilter) => string;
|
|
24
|
-
readonly ACTIVITY: (campaignId: string, status: LeadStatus |
|
|
25
|
+
readonly ACTIVITY: (campaignId: string, status: LeadStatus | 'all', offset: string, limit: string) => string;
|
|
25
26
|
readonly INTEGRATIONS: {
|
|
26
27
|
readonly BASE: (campaignId: string) => string;
|
|
27
28
|
readonly TEST_SUITABILITY_WEBHOOK: (campaignId: string, integrationId: string) => string;
|
package/dist/constants/routes.js
CHANGED
|
@@ -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:
|
|
7
|
-
REGISTER:
|
|
6
|
+
BASE: 'auth',
|
|
7
|
+
REGISTER: 'auth/register',
|
|
8
8
|
},
|
|
9
9
|
EVENTS: {
|
|
10
|
-
BASE:
|
|
10
|
+
BASE: 'events',
|
|
11
11
|
BY_ID: (id) => `events/${id}`,
|
|
12
12
|
},
|
|
13
13
|
CAMPAIGNS: {
|
|
14
|
-
BASE:
|
|
14
|
+
BASE: 'campaigns',
|
|
15
15
|
BY_ID: (id) => `campaigns/${id}`,
|
|
16
16
|
LEADS: {
|
|
17
17
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
@@ -21,6 +21,7 @@ exports.ROUTES = {
|
|
|
21
21
|
SEARCH: (campaignId) => `campaigns/${campaignId}/leads/search`,
|
|
22
22
|
},
|
|
23
23
|
INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
|
|
24
|
+
AI_METRICS: (campaignId) => `campaigns/${campaignId}/ai-metrics`,
|
|
24
25
|
CONNECT_SAVED: (campaignId) => `campaigns/${campaignId}/get-connects-saved`,
|
|
25
26
|
ANALYTICS: (campaignId, timeFilter) => `campaigns/${campaignId}/analytics?createdAt=${timeFilter}`,
|
|
26
27
|
ACTIVITY: (campaignId, status, offset, limit) => `campaigns/${campaignId}/activity?status=${status}&offset=${offset}&limit=${limit}`,
|
|
@@ -43,56 +44,56 @@ exports.ROUTES = {
|
|
|
43
44
|
},
|
|
44
45
|
},
|
|
45
46
|
JOBS: {
|
|
46
|
-
BASE:
|
|
47
|
+
BASE: 'jobs',
|
|
47
48
|
BY_ID: (id) => `jobs/${id}`,
|
|
48
|
-
IMPORT:
|
|
49
|
-
FILTER_OPTIONS:
|
|
50
|
-
TOTAL_JOBS:
|
|
49
|
+
IMPORT: 'jobs/import',
|
|
50
|
+
FILTER_OPTIONS: 'jobs/filter-options',
|
|
51
|
+
TOTAL_JOBS: 'jobs/total-jobs',
|
|
51
52
|
GET_JOB_TITLE: (jobId) => `jobs/get-job-title/${jobId}`,
|
|
52
|
-
SEARCH:
|
|
53
|
+
SEARCH: 'jobs/search',
|
|
53
54
|
},
|
|
54
55
|
USERS: {
|
|
55
|
-
BASE:
|
|
56
|
+
BASE: 'users',
|
|
56
57
|
BY_ID: (id) => `users/${id}`,
|
|
57
58
|
},
|
|
58
59
|
AI_CONFIG: {
|
|
59
|
-
BASE:
|
|
60
|
-
GENERATE_KNOWLEDGE_BASE:
|
|
60
|
+
BASE: 'ai-config',
|
|
61
|
+
GENERATE_KNOWLEDGE_BASE: 'ai-config/generate-knowledge-base',
|
|
61
62
|
},
|
|
62
63
|
COOKIES: {
|
|
63
|
-
BASE:
|
|
64
|
-
SCRAPE:
|
|
64
|
+
BASE: 'cookies',
|
|
65
|
+
SCRAPE: 'cookies/scrape-cookies',
|
|
65
66
|
},
|
|
66
67
|
SCRAPING: {
|
|
67
|
-
BASE:
|
|
68
|
-
START_SCRAPING:
|
|
69
|
-
START_WORLDWIDE_SCRAPING:
|
|
70
|
-
START_US_SCRAPING:
|
|
71
|
-
START_UK_SCRAPING:
|
|
72
|
-
UPDATE_ACTIVITY_4H_WORLDWIDE:
|
|
73
|
-
UPDATE_ACTIVITY_4H_UK:
|
|
74
|
-
UPDATE_ACTIVITY_4H_US:
|
|
75
|
-
UPDATE_ACTIVITY_24H_WORLDWIDE:
|
|
76
|
-
UPDATE_ACTIVITY_24H_UK:
|
|
77
|
-
UPDATE_ACTIVITY_24H_US:
|
|
68
|
+
BASE: 'scraping',
|
|
69
|
+
START_SCRAPING: 'scraping/start',
|
|
70
|
+
START_WORLDWIDE_SCRAPING: 'scraping/start-worldwide',
|
|
71
|
+
START_US_SCRAPING: 'scraping/start-us',
|
|
72
|
+
START_UK_SCRAPING: 'scraping/start-uk',
|
|
73
|
+
UPDATE_ACTIVITY_4H_WORLDWIDE: 'scraping/update-activity/4h',
|
|
74
|
+
UPDATE_ACTIVITY_4H_UK: 'scraping/update-activity/4h/uk',
|
|
75
|
+
UPDATE_ACTIVITY_4H_US: 'scraping/update-activity/4h/us',
|
|
76
|
+
UPDATE_ACTIVITY_24H_WORLDWIDE: 'scraping/update-activity/24h',
|
|
77
|
+
UPDATE_ACTIVITY_24H_UK: 'scraping/update-activity/24h/uk',
|
|
78
|
+
UPDATE_ACTIVITY_24H_US: 'scraping/update-activity/24h/us',
|
|
78
79
|
},
|
|
79
80
|
ADMIN: {
|
|
80
|
-
BASE:
|
|
81
|
+
BASE: 'admin',
|
|
81
82
|
BIDDER_ACCOUNTS: {
|
|
82
|
-
BASE:
|
|
83
|
+
BASE: 'admin/bidder-accounts',
|
|
83
84
|
BY_ID: (id) => `admin/bidder-accounts/${id}`,
|
|
84
85
|
BY_PROVIDER: (provider) => `admin/bidder-accounts/${provider}`,
|
|
85
86
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/bidder-accounts/${provider}/${id}`,
|
|
86
87
|
},
|
|
87
88
|
SCRAPER_ACCOUNTS: {
|
|
88
|
-
BASE:
|
|
89
|
+
BASE: 'admin/scraper-accounts',
|
|
89
90
|
BY_ID: (id) => `admin/scraper-accounts/${id}`,
|
|
90
91
|
BY_PROVIDER: (provider) => `admin/scraper-accounts/${provider}`,
|
|
91
92
|
BY_PROVIDER_AND_ID: (provider, id) => `admin/scraper-accounts/${provider}/${id}`,
|
|
92
93
|
},
|
|
93
94
|
},
|
|
94
95
|
BID: {
|
|
95
|
-
BASE:
|
|
96
|
+
BASE: 'bid',
|
|
96
97
|
BID_ON_JOB: (userId, campaignId, leadId) => `bid/${userId}/${campaignId}/${leadId}`,
|
|
97
98
|
},
|
|
98
99
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const campaignAIMetricsSchema: z.ZodObject<{
|
|
3
|
+
suitabilityCompleteCount: z.ZodNumber;
|
|
4
|
+
proposalCompleteCount: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
suitabilityCompleteCount: number;
|
|
7
|
+
proposalCompleteCount: number;
|
|
8
|
+
}, {
|
|
9
|
+
suitabilityCompleteCount: number;
|
|
10
|
+
proposalCompleteCount: number;
|
|
11
|
+
}>;
|
|
12
|
+
export interface CampaignAIMetrics extends z.infer<typeof campaignAIMetricsSchema> {
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignAIMetricsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.campaignAIMetricsSchema = zod_1.z.object({
|
|
6
|
+
suitabilityCompleteCount: zod_1.z.number(),
|
|
7
|
+
proposalCompleteCount: zod_1.z.number(),
|
|
8
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './campaign';
|
|
2
|
+
export * from './campaign-insights';
|
|
3
|
+
export * from './campaign-job-count';
|
|
4
|
+
export * from './campaign-expenses';
|
|
5
|
+
export * from './campaign-integrations';
|
|
6
|
+
export * from './campaign-analytics';
|
|
7
|
+
export * from './campaign-ai-metrics';
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./campaign-job-count"), exports);
|
|
|
20
20
|
__exportStar(require("./campaign-expenses"), exports);
|
|
21
21
|
__exportStar(require("./campaign-integrations"), exports);
|
|
22
22
|
__exportStar(require("./campaign-analytics"), exports);
|
|
23
|
+
__exportStar(require("./campaign-ai-metrics"), exports);
|