Skip to content

Commit e2fd090

Browse files
Fix: Use propDefinition for leadId in create-or-update-lead action
- Use propDefinition pattern for consistency with other actions - Removed PR_STEPS.md from tracked files
1 parent 18c0f54 commit e2fd090

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

components/adversus/adversus.app.mjs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,64 +44,34 @@ export default {
4444
...opts,
4545
});
4646
},
47-
/**
48-
* Create a new lead in Adversus
49-
* @param {Object} opts - Request options including data payload
50-
* @returns {Promise} The created lead response
51-
*/
5247
async createLead(opts) {
5348
return this._makeRequest({
5449
path: "/leads",
5550
method: "POST",
5651
...opts,
5752
});
5853
},
59-
/**
60-
* Update an existing lead in Adversus
61-
* @param {string} leadId - The ID of the lead to update
62-
* @param {Object} opts - Request options including data payload
63-
* @returns {Promise} The updated lead response
64-
*/
6554
async updateLead(leadId, opts) {
6655
return this._makeRequest({
6756
path: `/leads/${leadId}`,
6857
method: "PUT",
6958
...opts,
7059
});
7160
},
72-
/**
73-
* Add a note to a lead in Adversus
74-
* @param {string} leadId - The ID of the lead
75-
* @param {Object} opts - Request options including note data
76-
* @returns {Promise} The response from adding the note
77-
*/
7861
async addNoteToLead(leadId, opts) {
7962
return this._makeRequest({
8063
path: `/leads/${leadId}/notes`,
8164
method: "POST",
8265
...opts,
8366
});
8467
},
85-
/**
86-
* Add an activity to a lead in Adversus
87-
* @param {string} leadId - The ID of the lead
88-
* @param {Object} opts - Request options including activity data
89-
* @returns {Promise} The response from adding the activity
90-
*/
9168
async addActivityToLead(leadId, opts) {
9269
return this._makeRequest({
9370
path: `/leads/${leadId}/activities`,
9471
method: "POST",
9572
...opts,
9673
});
9774
},
98-
/**
99-
* Change the status of a lead in Adversus
100-
* @param {string} leadId - The ID of the lead
101-
* @param {string} statusId - The ID of the new status
102-
* @param {Object} opts - Additional request options
103-
* @returns {Promise} The response from changing the status
104-
*/
10575
async changeLeadStatus(leadId, statusId, opts = {}) {
10676
const { data: optsData, ...restOpts } = opts;
10777
return this._makeRequest({
@@ -114,13 +84,6 @@ export default {
11484
...restOpts,
11585
});
11686
},
117-
/**
118-
* Assign a lead to a campaign in Adversus
119-
* @param {string} leadId - The ID of the lead
120-
* @param {string} campaignId - The ID of the campaign
121-
* @param {Object} opts - Additional request options
122-
* @returns {Promise} The response from assigning the lead
123-
*/
12487
async assignLeadToCampaign(leadId, campaignId, opts = {}) {
12588
const { data: optsData, ...restOpts } = opts;
12689
return this._makeRequest({

0 commit comments

Comments
 (0)