@ecodrix/erix-api 1.0.7 → 1.0.8

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.
@@ -14,20 +14,21 @@ export class Scoring extends APIResource {
14
14
  * Retrieve the tenant's global lead scoring configuration.
15
15
  */
16
16
  async getConfig<T = any>() {
17
- return this.get<T>("/api/saas/crm/scoring");
17
+ return this.get<T>("/api/crm/scoring");
18
18
  }
19
19
 
20
20
  /**
21
21
  * Update scoring configuration.
22
22
  */
23
23
  async updateConfig<T = any>(payload: Partial<ScoringConfig>) {
24
- return this.patch<T>("/api/saas/crm/scoring", payload as any);
24
+ return this.patch<T>("/api/crm/scoring", payload as any);
25
25
  }
26
26
 
27
27
  /**
28
28
  * Force recalculate the score for a specific lead.
29
29
  */
30
30
  async recalculate<T = any>(leadId: string) {
31
- return this.post<T>(`/api/saas/crm/scoring/${leadId}/recalculate`, {});
31
+ return this.post<T>(`/api/crm/scoring/${leadId}/recalculate`, {});
32
32
  }
33
+
33
34
  }
@@ -9,20 +9,21 @@ export class Sequences extends APIResource {
9
9
  ruleId: string;
10
10
  variables?: Record<string, any>;
11
11
  }) {
12
- return this.post<T>("/api/saas/crm/sequences/enroll", payload);
12
+ return this.post<T>("/api/crm/sequences/enroll", payload);
13
13
  }
14
14
 
15
15
  /**
16
16
  * Unenroll a lead from a running sequence.
17
17
  */
18
18
  async unenroll<T = any>(enrollmentId: string) {
19
- return this.deleteRequest<T>(`/api/saas/crm/sequences/unenroll/${enrollmentId}`);
19
+ return this.deleteRequest(`/api/crm/sequences/unenroll/${enrollmentId}`);
20
20
  }
21
21
 
22
22
  /**
23
23
  * List active sequence enrollments for a specific lead.
24
24
  */
25
25
  async listForLead<T = any>(leadId: string) {
26
- return this.get<T>(`/api/saas/crm/sequences/lead/${leadId}`);
26
+ return this.get<T>(`/api/crm/sequences/lead/${leadId}`);
27
27
  }
28
+
28
29
  }