lancer-shared 1.0.113 → 1.0.114

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.
@@ -6,4 +6,5 @@ export declare const COLLECTIONS: {
6
6
  readonly EVENTS: "events";
7
7
  readonly SCRAPER_ACCOUNTS: "system/accounts/scrapers";
8
8
  readonly MANAGER_ACCOUNTS: "system/accounts/managers";
9
+ readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
9
10
  };
@@ -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: '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',
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<["pending", "active", "completed", "failed"]>;
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: "failed" | "active" | "pending" | "completed";
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: "failed" | "active" | "pending" | "completed";
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: zod_1.z.enum(["pending", "active", "completed", "failed"]),
16
+ status: lead_1.leadStatusSchema,
17
17
  job: lead_1.upworkJobSchema.pick({
18
18
  id: true,
19
19
  title: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.113",
4
+ "version": "1.0.114",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",