@signalhousellc/sdk 1.0.6 → 1.0.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalhousellc/sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Signal House SDK for use with the Signal House platform",
5
5
  "type": "module",
6
6
  "main": "src/SignalHouseSDK.js",
@@ -127,4 +127,17 @@ export class Numbers {
127
127
  this.client._require({ phoneNumbers });
128
128
  return this.client(`/number`, { method: "DELETE", body: { phoneNumbers }, ...options });
129
129
  }
130
- }
130
+
131
+ /**
132
+ * Transfer unassigned phone numbers from one subgroup to another.
133
+ * @async
134
+ * @param {Object} params - The parameters for transferring phone numbers
135
+ * @param {string[]} params.phoneNumbers - The list of phone numbers to transfer
136
+ * @param {string} params.newSubgroupId - The ID of the new subgroup to transfer the phone numbers to
137
+ * @param {import('../SignalHouseSDK').RequestOptions} [params.options] - Additional options for the request
138
+ * @returns {Promise<Object>} A promise that resolves to the result of the transfer operation
139
+ */
140
+ async transferPhoneNumbers({ phoneNumbers, newSubgroupId, options = {} }) {
141
+ return this.client(`/number/transfer`, { method: "POST", body: { phoneNumbers, newSubgroupId }, ...options });
142
+ }
143
+ }