@signalhousellc/sdk 1.0.32 → 1.0.34
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/package.json
CHANGED
package/src/domains/Campaigns.js
CHANGED
|
@@ -94,7 +94,7 @@ export class Campaigns {
|
|
|
94
94
|
* @roles signalhouse
|
|
95
95
|
* @param {Object} params - The parameters for rejecting the campaign
|
|
96
96
|
* @param {string} params.campaignId - The ID of the campaign to reject
|
|
97
|
-
* @param {import('../SignalHouseSDK').RequestOptions} [params.options] - Additional options for the request
|
|
97
|
+
* @param {import('../SignalHouseSDK').RequestOptions} [params.options] - Additional options for the request (body should include { rejectionReason })
|
|
98
98
|
* @throws {Error} Throws an error if the campaignId parameter is missing
|
|
99
99
|
* @returns {Promise<Object>} The response from the server
|
|
100
100
|
*/
|
package/src/domains/Messages.js
CHANGED
|
@@ -19,6 +19,8 @@ export class Messages {
|
|
|
19
19
|
* @param {string} [params.direction] - Filter messages by their direction (INBOUND, OUTBOUND)
|
|
20
20
|
* @param {string} [params.messageType] - Filter messages by their type (SMS, MMS)
|
|
21
21
|
* @param {string} [params.carrier] - Filter messages by the carrier used for sending
|
|
22
|
+
* @param {string} [params.senderPhoneNumber] - Filter messages by the sender's phone number
|
|
23
|
+
* @param {string} [params.recipientPhoneNumber] - Filter messages by the recipient's phone number
|
|
22
24
|
* @param {string} [params.startDate] - Filter messages by their start date
|
|
23
25
|
* @param {string} [params.endDate] - Filter messages by their end date
|
|
24
26
|
* @param {string} [params.sortField] - The field to sort the messages by
|
|
@@ -35,6 +37,8 @@ export class Messages {
|
|
|
35
37
|
subgroupId,
|
|
36
38
|
groupId,
|
|
37
39
|
phoneNumber,
|
|
40
|
+
senderPhoneNumber,
|
|
41
|
+
recipientPhoneNumber,
|
|
38
42
|
status,
|
|
39
43
|
direction,
|
|
40
44
|
messageType,
|
|
@@ -47,7 +51,7 @@ export class Messages {
|
|
|
47
51
|
limit,
|
|
48
52
|
options = {},
|
|
49
53
|
}) {
|
|
50
|
-
const filters = { id, campaignId, brandId, subgroupId, groupId, phoneNumber, status, direction, messageType, carrier, startDate, endDate, sortField, sortOrder, page, limit };
|
|
54
|
+
const filters = { id, campaignId, brandId, subgroupId, groupId, phoneNumber, senderPhoneNumber, recipientPhoneNumber, status, direction, messageType, carrier, startDate, endDate, sortField, sortOrder, page, limit };
|
|
51
55
|
const queryString = this.client._getQueryString(filters);
|
|
52
56
|
return this.client(`/message${queryString}`, { method: "GET", ...options });
|
|
53
57
|
}
|