lancer-shared 1.0.14 → 1.0.16

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.
@@ -0,0 +1,6 @@
1
+ export declare const COLLECTIONS: {
2
+ readonly USERS: "users";
3
+ readonly SETTINGS: "settings";
4
+ readonly CAMPAIGNS: "campaigns";
5
+ readonly LEADS: "leads";
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COLLECTIONS = void 0;
4
+ // Base collection names
5
+ exports.COLLECTIONS = {
6
+ USERS: "users",
7
+ SETTINGS: "settings",
8
+ CAMPAIGNS: "campaigns",
9
+ LEADS: "leads",
10
+ };
@@ -14,3 +14,4 @@ export * from "./job-filter-options";
14
14
  export * from "./common-questions";
15
15
  export * from "./job-status";
16
16
  export * from "./routes";
17
+ export * from "./collections";
@@ -36,3 +36,4 @@ __exportStar(require("./job-filter-options"), exports);
36
36
  __exportStar(require("./common-questions"), exports);
37
37
  __exportStar(require("./job-status"), exports);
38
38
  __exportStar(require("./routes"), exports);
39
+ __exportStar(require("./collections"), exports);
@@ -6,11 +6,11 @@ export declare const ROUTES: {
6
6
  readonly CAMPAIGNS: {
7
7
  readonly BASE: "campaigns";
8
8
  readonly BY_ID: (id: string) => string;
9
- readonly JOBS: {
9
+ readonly LEADS: {
10
10
  readonly BASE: (campaignId: string) => string;
11
- readonly BY_ID: (campaignId: string, jobId: string) => string;
11
+ readonly BY_ID: (campaignId: string, leadId: string) => string;
12
12
  readonly SYNC: (campaignId: string) => string;
13
- readonly NOTES: (campaignId: string, jobId: string, noteId: string) => string;
13
+ readonly NOTES: (campaignId: string, leadId: string, noteId: string) => string;
14
14
  };
15
15
  readonly INSIGHTS: (campaignId: string) => string;
16
16
  readonly INTEGRATIONS: {
@@ -56,6 +56,6 @@ export declare const ROUTES: {
56
56
  export type RouteParams = {
57
57
  id?: string;
58
58
  campaignId?: string;
59
- jobId?: string;
59
+ leadId?: string;
60
60
  };
61
61
  export declare const buildRoute: (route: string, params?: RouteParams) => string;
@@ -9,11 +9,11 @@ exports.ROUTES = {
9
9
  CAMPAIGNS: {
10
10
  BASE: "campaigns",
11
11
  BY_ID: (id) => `campaigns/${id}`,
12
- JOBS: {
12
+ LEADS: {
13
13
  BASE: (campaignId) => `campaigns/${campaignId}/leads`,
14
- BY_ID: (campaignId, jobId) => `campaigns/${campaignId}/jobs/${jobId}`,
14
+ BY_ID: (campaignId, leadId) => `campaigns/${campaignId}/leads/${leadId}`,
15
15
  SYNC: (campaignId) => `campaigns/${campaignId}/leads/sync`,
16
- NOTES: (campaignId, jobId, noteId) => `campaigns/${campaignId}/leads/${jobId}/notes/${noteId}`,
16
+ NOTES: (campaignId, leadId, noteId) => `campaigns/${campaignId}/leads/${leadId}/notes/${noteId}`,
17
17
  },
18
18
  INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
19
19
  INTEGRATIONS: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",