lancer-shared 1.0.113 → 1.0.115
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/collections.d.ts +1 -0
- package/dist/constants/collections.js +8 -7
- package/dist/schemas/campaign/campaign-analytics.d.ts +3 -3
- package/dist/schemas/campaign/campaign-analytics.js +1 -1
- package/dist/schemas/index.d.ts +14 -13
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/time-filter/index.d.ts +8 -0
- package/dist/schemas/time-filter/index.js +7 -0
- package/dist/types/index.d.ts +13 -12
- package/dist/types/index.js +1 -0
- package/dist/types/time-filter/index.d.ts +3 -0
- package/dist/types/time-filter/index.js +2 -0
- package/package.json +1 -1
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.COLLECTIONS = void 0;
|
|
4
4
|
// Base collection names
|
|
5
5
|
exports.COLLECTIONS = {
|
|
6
|
-
USERS:
|
|
7
|
-
SETTINGS:
|
|
8
|
-
CAMPAIGNS:
|
|
9
|
-
LEADS:
|
|
10
|
-
EVENTS:
|
|
11
|
-
SCRAPER_ACCOUNTS:
|
|
12
|
-
MANAGER_ACCOUNTS:
|
|
6
|
+
USERS: "users",
|
|
7
|
+
SETTINGS: "settings",
|
|
8
|
+
CAMPAIGNS: "campaigns",
|
|
9
|
+
LEADS: "leads",
|
|
10
|
+
EVENTS: "events",
|
|
11
|
+
SCRAPER_ACCOUNTS: "system/accounts/scrapers",
|
|
12
|
+
MANAGER_ACCOUNTS: "system/accounts/managers",
|
|
13
|
+
CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
|
|
13
14
|
};
|
|
@@ -23,7 +23,7 @@ export declare const campaignAnalyticsResponseSchema: z.ZodObject<{
|
|
|
23
23
|
}>;
|
|
24
24
|
export declare const campaignActivitySchema: z.ZodObject<{
|
|
25
25
|
createdAt: z.ZodNumber;
|
|
26
|
-
status: z.ZodEnum<["
|
|
26
|
+
status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>;
|
|
27
27
|
job: z.ZodObject<Pick<{
|
|
28
28
|
id: z.ZodNullable<z.ZodString>;
|
|
29
29
|
createdAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -267,7 +267,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
267
267
|
jobUrl: string | null;
|
|
268
268
|
}>;
|
|
269
269
|
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
status: "
|
|
270
|
+
status: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost";
|
|
271
271
|
createdAt: number;
|
|
272
272
|
job: {
|
|
273
273
|
id: string | null;
|
|
@@ -276,7 +276,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
|
|
|
276
276
|
jobUrl: string | null;
|
|
277
277
|
};
|
|
278
278
|
}, {
|
|
279
|
-
status: "
|
|
279
|
+
status: "leads" | "contacted" | "viewed" | "replied" | "negotiations" | "won" | "lost";
|
|
280
280
|
createdAt: number;
|
|
281
281
|
job: {
|
|
282
282
|
id: string | null;
|
|
@@ -13,7 +13,7 @@ exports.campaignAnalyticsResponseSchema = zod_1.z.object({
|
|
|
13
13
|
});
|
|
14
14
|
exports.campaignActivitySchema = zod_1.z.object({
|
|
15
15
|
createdAt: zod_1.z.number(),
|
|
16
|
-
status:
|
|
16
|
+
status: lead_1.leadStatusSchema,
|
|
17
17
|
job: lead_1.upworkJobSchema.pick({
|
|
18
18
|
id: true,
|
|
19
19
|
title: true,
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from "./lead";
|
|
2
|
+
export * from "./saved-search";
|
|
3
|
+
export * from "./shared";
|
|
4
|
+
export * from "./user";
|
|
5
|
+
export * from "./chat-message";
|
|
6
|
+
export * from "./job-filters";
|
|
7
|
+
export * from "./campaign";
|
|
8
|
+
export * from "./ai";
|
|
9
|
+
export * from "./bid";
|
|
10
|
+
export * from "./scraper";
|
|
11
|
+
export * from "./config";
|
|
12
|
+
export * from "./logger";
|
|
13
|
+
export * from "./account";
|
|
14
|
+
export * from "./time-filter";
|
package/dist/schemas/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const timeFilterSchema: z.ZodObject<{
|
|
3
|
+
timeFilter: z.ZodEnum<["last_7_days", "last_30_days", "all_time"]>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
timeFilter: "last_7_days" | "last_30_days" | "all_time";
|
|
6
|
+
}, {
|
|
7
|
+
timeFilter: "last_7_days" | "last_30_days" | "all_time";
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.timeFilterSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.timeFilterSchema = zod_1.z.object({
|
|
6
|
+
timeFilter: zod_1.z.enum(["last_7_days", "last_30_days", "all_time"]),
|
|
7
|
+
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
1
|
+
export * from "./chat-message";
|
|
2
|
+
export * from "./job";
|
|
3
|
+
export * from "./saved-search";
|
|
4
|
+
export * from "./user";
|
|
5
|
+
export * from "./job-filters";
|
|
6
|
+
export * from "./campaign";
|
|
7
|
+
export * from "./ai";
|
|
8
|
+
export * from "./scraper";
|
|
9
|
+
export * from "./config";
|
|
10
|
+
export * from "./logger";
|
|
11
|
+
export * from "./account";
|
|
12
|
+
export * from "./bid";
|
|
13
|
+
export * from "./time-filter";
|
package/dist/types/index.js
CHANGED