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.
package/dist/constants/index.js
CHANGED
|
@@ -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
|
|
9
|
+
readonly LEADS: {
|
|
10
10
|
readonly BASE: (campaignId: string) => string;
|
|
11
|
-
readonly BY_ID: (campaignId: string,
|
|
11
|
+
readonly BY_ID: (campaignId: string, leadId: string) => string;
|
|
12
12
|
readonly SYNC: (campaignId: string) => string;
|
|
13
|
-
readonly NOTES: (campaignId: 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
|
-
|
|
59
|
+
leadId?: string;
|
|
60
60
|
};
|
|
61
61
|
export declare const buildRoute: (route: string, params?: RouteParams) => string;
|
package/dist/constants/routes.js
CHANGED
|
@@ -9,11 +9,11 @@ exports.ROUTES = {
|
|
|
9
9
|
CAMPAIGNS: {
|
|
10
10
|
BASE: "campaigns",
|
|
11
11
|
BY_ID: (id) => `campaigns/${id}`,
|
|
12
|
-
|
|
12
|
+
LEADS: {
|
|
13
13
|
BASE: (campaignId) => `campaigns/${campaignId}/leads`,
|
|
14
|
-
BY_ID: (campaignId,
|
|
14
|
+
BY_ID: (campaignId, leadId) => `campaigns/${campaignId}/leads/${leadId}`,
|
|
15
15
|
SYNC: (campaignId) => `campaigns/${campaignId}/leads/sync`,
|
|
16
|
-
NOTES: (campaignId,
|
|
16
|
+
NOTES: (campaignId, leadId, noteId) => `campaigns/${campaignId}/leads/${leadId}/notes/${noteId}`,
|
|
17
17
|
},
|
|
18
18
|
INSIGHTS: (campaignId) => `campaigns/${campaignId}/insights`,
|
|
19
19
|
INTEGRATIONS: {
|