@signalhousellc/sdk 1.0.6 → 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.
- package/package.json +1 -1
- package/src/domains/Groups.js +1 -1
- package/src/domains/Numbers.js +14 -1
package/package.json
CHANGED
package/src/domains/Groups.js
CHANGED
|
@@ -19,7 +19,7 @@ export class Groups {
|
|
|
19
19
|
getGroups: async ({ page, limit, options = {} }) => {
|
|
20
20
|
const filters = { page, limit };
|
|
21
21
|
const queryString = this.client._getQueryString(filters);
|
|
22
|
-
return this.client(`/
|
|
22
|
+
return this.client(`/group${queryString}`, { method: "GET", ...options });
|
|
23
23
|
},
|
|
24
24
|
|
|
25
25
|
/**
|
package/src/domains/Numbers.js
CHANGED
|
@@ -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
|
+
}
|