@gravity-rail/cli 0.5.1 → 0.6.0
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/dist/gr.js +5 -34
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +9 -10
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +1 -1
- package/package.json +2 -2
package/dist/gr.js
CHANGED
|
@@ -2352,7 +2352,7 @@ function parsePhoneNumber4() {
|
|
|
2352
2352
|
return withMetadataArgument(parsePhoneNumber3, arguments);
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
|
-
// ../sdk/dist/chunk-
|
|
2355
|
+
// ../sdk/dist/chunk-DX42AMVM.js
|
|
2356
2356
|
function getCookieValue(name) {
|
|
2357
2357
|
if (typeof document === "undefined") return void 0;
|
|
2358
2358
|
const cookies = document.cookie.split(";");
|
|
@@ -6748,7 +6748,7 @@ var OrgApi = class extends BaseApiClient {
|
|
|
6748
6748
|
);
|
|
6749
6749
|
}
|
|
6750
6750
|
/**
|
|
6751
|
-
* Purchase a phone number from Twilio for this org.
|
|
6751
|
+
* Purchase a phone number from Twilio for this org inventory (org admin only).
|
|
6752
6752
|
*/
|
|
6753
6753
|
async purchasePhoneNumber(orgUuid, phoneNumber, numberType) {
|
|
6754
6754
|
return this.fetch(`o/${orgUuid}/phone-numbers/purchase`, {
|
|
@@ -7171,31 +7171,6 @@ var PhoneNumbersApi = class extends BaseApiClient {
|
|
|
7171
7171
|
body: JSON.stringify({ providerPhoneUuid })
|
|
7172
7172
|
});
|
|
7173
7173
|
}
|
|
7174
|
-
async searchAvailablePhoneNumbers(wid, params) {
|
|
7175
|
-
const searchParams = new URLSearchParams();
|
|
7176
|
-
if (params.country) searchParams.set("country", params.country);
|
|
7177
|
-
if (params.numberType) searchParams.set("number_type", params.numberType);
|
|
7178
|
-
if (params.areaCode) searchParams.set("area_code", params.areaCode);
|
|
7179
|
-
if (params.contains) searchParams.set("contains", params.contains);
|
|
7180
|
-
if (params.city) searchParams.set("city", params.city);
|
|
7181
|
-
if (params.state) searchParams.set("state", params.state);
|
|
7182
|
-
if (params.limit) searchParams.set("limit", String(params.limit));
|
|
7183
|
-
const qs = searchParams.toString();
|
|
7184
|
-
return this.fetch(
|
|
7185
|
-
`w/${wid}/phone-numbers/search${qs ? `?${qs}` : ""}`
|
|
7186
|
-
);
|
|
7187
|
-
}
|
|
7188
|
-
async purchasePhoneNumber(wid, request, idempotencyKey) {
|
|
7189
|
-
const headers2 = {};
|
|
7190
|
-
if (idempotencyKey) {
|
|
7191
|
-
headers2["Idempotency-Key"] = idempotencyKey;
|
|
7192
|
-
}
|
|
7193
|
-
return this.fetch(`w/${wid}/phone-numbers/purchase`, {
|
|
7194
|
-
method: "POST",
|
|
7195
|
-
body: JSON.stringify(request),
|
|
7196
|
-
headers: headers2
|
|
7197
|
-
});
|
|
7198
|
-
}
|
|
7199
7174
|
async releasePhoneNumber(wid, id) {
|
|
7200
7175
|
return this.fetch(`w/${wid}/phone-numbers/${id}/release`, {
|
|
7201
7176
|
method: "POST"
|
|
@@ -9951,8 +9926,6 @@ function bindCommunicationsMethods(target, phoneNumbers, inboxes, notificationRu
|
|
|
9951
9926
|
target.getPhoneNumberVoicemails = phoneNumbers.getPhoneNumberVoicemails.bind(phoneNumbers);
|
|
9952
9927
|
target.fetchVoicemailAudio = phoneNumbers.fetchVoicemailAudio.bind(phoneNumbers);
|
|
9953
9928
|
target.updateVoicemailStatus = phoneNumbers.updateVoicemailStatus.bind(phoneNumbers);
|
|
9954
|
-
target.searchAvailablePhoneNumbers = phoneNumbers.searchAvailablePhoneNumbers.bind(phoneNumbers);
|
|
9955
|
-
target.purchasePhoneNumber = phoneNumbers.purchasePhoneNumber.bind(phoneNumbers);
|
|
9956
9929
|
target.releasePhoneNumber = phoneNumbers.releasePhoneNumber.bind(phoneNumbers);
|
|
9957
9930
|
target.getLinkablePhones = phoneNumbers.getLinkablePhones.bind(phoneNumbers);
|
|
9958
9931
|
target.linkPhoneNumber = phoneNumbers.linkPhoneNumber.bind(phoneNumbers);
|
|
@@ -10900,8 +10873,6 @@ var GravityRailClient = class {
|
|
|
10900
10873
|
getPhoneNumberVoicemails;
|
|
10901
10874
|
fetchVoicemailAudio;
|
|
10902
10875
|
updateVoicemailStatus;
|
|
10903
|
-
searchAvailablePhoneNumbers;
|
|
10904
|
-
purchasePhoneNumber;
|
|
10905
10876
|
releasePhoneNumber;
|
|
10906
10877
|
getLinkablePhones;
|
|
10907
10878
|
linkPhoneNumber;
|
|
@@ -20189,8 +20160,8 @@ var commands2 = [
|
|
|
20189
20160
|
outputSingle(result2, hctx.ctx, PROVIDER_PHONE_COLUMNS);
|
|
20190
20161
|
process.stdout.write(
|
|
20191
20162
|
`
|
|
20192
|
-
|
|
20193
|
-
gr phone-numbers
|
|
20163
|
+
Create a workspace phone linked to this provider number (sets Twilio webhooks):
|
|
20164
|
+
gr phone-numbers create -w ${workspaceUuid} --allow-write --data '{"name":"\u2026","providerPhoneUuid":"${providerPhoneUuid}"}'
|
|
20194
20165
|
`
|
|
20195
20166
|
);
|
|
20196
20167
|
}
|
|
@@ -24968,7 +24939,7 @@ async function whoamiCommand(ctx) {
|
|
|
24968
24939
|
|
|
24969
24940
|
// package.json
|
|
24970
24941
|
var package_default = {
|
|
24971
|
-
version: "0.
|
|
24942
|
+
version: "0.6.0"};
|
|
24972
24943
|
|
|
24973
24944
|
// src/gr.ts
|
|
24974
24945
|
var VERSION = package_default.version;
|