telnyx 2.0.0-beta.3 → 2.0.0-beta.5
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/CHANGELOG.md +18 -0
- package/README.md +16 -2
- package/VERSION +1 -1
- package/dist/TelnyxMethod.basic.js +1 -1
- package/dist/TelnyxMethod.js +3 -3
- package/dist/TelnyxResource.js +4 -4
- package/dist/Webhooks.js +1 -1
- package/dist/autoPagination.js +2 -2
- package/dist/makeRequest.js +1 -1
- package/dist/multipart.js +1 -1
- package/dist/resources/AccessIpAddress.js +1 -1
- package/dist/resources/AccessIpRanges.js +1 -1
- package/dist/resources/Actions.js +2 -2
- package/dist/resources/ActionsSimCards.js +1 -1
- package/dist/resources/ActivateDeactivateBulkCredentials.js +2 -2
- package/dist/resources/Addresses.js +2 -2
- package/dist/resources/AiAssistants.js +1 -1
- package/dist/resources/AiAudioTranscriptions.js +1 -1
- package/dist/resources/AiChatCompletions.js +1 -1
- package/dist/resources/AiEmbeddings.js +1 -1
- package/dist/resources/AiEmbeddingsBuckets.js +1 -1
- package/dist/resources/AiEmbeddingsSimilaritySearch.js +1 -1
- package/dist/resources/AiModels.js +1 -1
- package/dist/resources/AiSummarize.js +1 -1
- package/dist/resources/AuditEvents.js +1 -1
- package/dist/resources/AuthenticationProviders.js +1 -1
- package/dist/resources/AvailablePhoneNumbers.js +1 -1
- package/dist/resources/AvailablePhoneNumbersBlocks.js +1 -1
- package/dist/resources/Balance.js +1 -1
- package/dist/resources/BillingGroups.js +1 -1
- package/dist/resources/Brands.js +1 -1
- package/dist/resources/BulkCredentials.js +1 -1
- package/dist/resources/BulkSoleProprietorCreation.js +1 -1
- package/dist/resources/BulkTelephonyCredentials.js +2 -2
- package/dist/resources/CallControlApplications.js +2 -2
- package/dist/resources/CallEvents.js +1 -1
- package/dist/resources/CallRecordings.js +1 -1
- package/dist/resources/Calls.js +2 -2
- package/dist/resources/Campaign.js +2 -2
- package/dist/resources/CampaignBuilder.js +2 -2
- package/dist/resources/CdrUsageReports.js +1 -1
- package/dist/resources/Channelzones.js +1 -1
- package/dist/resources/Conferences.js +2 -2
- package/dist/resources/Connections.js +1 -1
- package/dist/resources/CredentialConnections.js +1 -1
- package/dist/resources/CustomerServiceRecords.js +1 -1
- package/dist/resources/DetailRecords.js +1 -1
- package/dist/resources/DialogflowConnections.js +1 -1
- package/dist/resources/DocumentLinks.js +1 -1
- package/dist/resources/Documents.js +1 -1
- package/dist/resources/DynamicEmergency.js +3 -3
- package/dist/resources/DynamicEmergencyAddresses.js +1 -1
- package/dist/resources/DynamicEmergencyEndpoints.js +1 -1
- package/dist/resources/ExternalConnections.js +1 -1
- package/dist/resources/FaxApplications.js +2 -2
- package/dist/resources/Faxes.js +2 -2
- package/dist/resources/FqdnConnections.js +2 -2
- package/dist/resources/Fqdns.js +2 -2
- package/dist/resources/GlobalIps.js +1 -1
- package/dist/resources/InventoryCoverage.js +1 -1
- package/dist/resources/IpConnections.js +2 -2
- package/dist/resources/Ips.js +2 -3
- package/dist/resources/ManagedAccounts.js +2 -3
- package/dist/resources/MdrDetailReports.js +1 -1
- package/dist/resources/MdrUsageReports.js +1 -1
- package/dist/resources/MediaStorageApi.js +1 -1
- package/dist/resources/Messages.js +1 -1
- package/dist/resources/MessagingHostedNumberOrders.js +1 -1
- package/dist/resources/MessagingHostedNumbers.js +1 -1
- package/dist/resources/MessagingProfileMetrics.js +1 -1
- package/dist/resources/MessagingProfiles.js +2 -2
- package/dist/resources/MessagingShortCodes.js +1 -1
- package/dist/resources/MessagingTollfreeVerification.js +1 -1
- package/dist/resources/MessagingUrlDomains.js +1 -1
- package/dist/resources/MobileNetworkOperators.js +1 -1
- package/dist/resources/MobileOperatorNetworks.js +1 -1
- package/dist/resources/Networks.js +1 -1
- package/dist/resources/NotificationEvents.js +1 -1
- package/dist/resources/NumberBackgroundJobs.js +1 -1
- package/dist/resources/NumberLookup.js +1 -1
- package/dist/resources/NumberOrders.js +2 -2
- package/dist/resources/NumberPortouts.js +2 -4
- package/dist/resources/NumberReservations.js +2 -2
- package/dist/resources/NumbersFeatures.js +1 -1
- package/dist/resources/Object.js +1 -1
- package/dist/resources/OtaUpdates.js +1 -1
- package/dist/resources/OutboundVoiceProfiles.js +2 -2
- package/dist/resources/Payment.js +1 -1
- package/dist/resources/PhoneNumberAssignmentByProfile.js +2 -2
- package/dist/resources/PhoneNumberBlockOrders.js +1 -1
- package/dist/resources/PhoneNumberBlocksBackgroundJobs.js +1 -1
- package/dist/resources/PhoneNumberCampaigns.js +1 -1
- package/dist/resources/PhoneNumbers.js +5 -5
- package/dist/resources/PhoneNumbersCsvDownloads.js +1 -1
- package/dist/resources/PhoneNumbersInboundChannels.js +1 -1
- package/dist/resources/PhoneNumbersMessaging.js +1 -1
- package/dist/resources/PhoneNumbersRegulatoryRequirements.js +1 -1
- package/dist/resources/PhoneNumbersSlim.js +1 -1
- package/dist/resources/PhoneNumbersVoice.js +1 -1
- package/dist/resources/PortabilityChecks.js +2 -1
- package/dist/resources/PortingEvents.js +7 -1
- package/dist/resources/PortingLoaConfigurations.js +12 -0
- package/dist/resources/PortingOrders.js +170 -17
- package/dist/resources/PortingPhoneNumbers.js +1 -1
- package/dist/resources/PortingReports.js +5 -0
- package/dist/resources/PortoutEvents.js +2 -2
- package/dist/resources/PortoutRequests.js +1 -1
- package/dist/resources/PresignedObjectUrls.js +1 -1
- package/dist/resources/PrivateWirelessGateways.js +1 -1
- package/dist/resources/PublicInternetGateways.js +1 -1
- package/dist/resources/PushCredentials.js +1 -1
- package/dist/resources/Queues.js +2 -2
- package/dist/resources/RecordingsCommands.js +1 -1
- package/dist/resources/Regions.js +1 -1
- package/dist/resources/RegulatoryRequirements.js +1 -1
- package/dist/resources/Reporting.js +1 -1
- package/dist/resources/Reports.js +1 -1
- package/dist/resources/ReportsMdrs.js +1 -1
- package/dist/resources/RequirementTypes.js +1 -1
- package/dist/resources/Requirements.js +1 -1
- package/dist/resources/RoomCompositions.js +1 -1
- package/dist/resources/RoomParticipants.js +1 -1
- package/dist/resources/RoomRecordings.js +1 -1
- package/dist/resources/RoomSessions.js +1 -1
- package/dist/resources/Rooms.js +1 -1
- package/dist/resources/RoomsClientToken.js +1 -1
- package/dist/resources/RoomsClientTokens.js +1 -1
- package/dist/resources/SharedCampaigns.js +1 -1
- package/dist/resources/ShortCodes.js +2 -2
- package/dist/resources/SimCardActions.js +1 -1
- package/dist/resources/SimCardGroupActions.js +1 -1
- package/dist/resources/SimCardGroups.js +2 -3
- package/dist/resources/SimCardOrders.js +1 -1
- package/dist/resources/SimCards.js +2 -24
- package/dist/resources/StorageBuckets.js +1 -1
- package/dist/resources/TelephonyCredentials.js +2 -6
- package/dist/resources/Texml.js +1 -1
- package/dist/resources/TexmlApplications.js +2 -2
- package/dist/resources/Verifications.js +2 -2
- package/dist/resources/VerifiedNumbers.js +2 -2
- package/dist/resources/VerifyProfiles.js +1 -1
- package/dist/resources/VirtualCrossConnects.js +1 -1
- package/dist/resources/WdrDetailReports.js +1 -1
- package/dist/resources/Webhooks.js +1 -1
- package/dist/resources/WireguardInterfaces.js +1 -1
- package/dist/resources/WirelessDetailRecordReports.js +1 -1
- package/dist/telnyx.js +142 -142
- package/dist/telnyx.node.js +1 -1
- package/dist/types/Events.d.ts +10 -11
- package/dist/types/PortabilityChecksResource.d.ts +18 -0
- package/dist/types/PortingEventsResource.d.ts +5 -0
- package/dist/types/PortingLoaConfigurationsResource.d.ts +91 -0
- package/dist/types/PortingOrdersResource.d.ts +72 -0
- package/dist/types/PortingPhoneNumbersResource.d.ts +18 -0
- package/dist/types/PortingReportsResource.d.ts +40 -0
- package/dist/types/PortoutEventsResource.d.ts +5 -5
- package/dist/types/TelephonyCredentialsResource.d.ts +0 -11
- package/dist/types/TelnyxAPI.d.ts +4717 -2358
- package/dist/types/index.d.ts +10 -0
- package/package.json +1 -1
- package/dist/resources/NumberOrderDocuments.js +0 -10
- package/dist/resources/PhoneNumberOrderDocuments.js +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
const MESSAGING_PROFILES_COMMANDS = ['phone_numbers', 'short_codes'];
|
|
5
5
|
function getSpec(messagingProfileId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
function transformResponseData(response, telnyx) {
|
|
5
5
|
return utils.addResourceToResponseData(response, telnyx, 'numberOrders', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
function transformResponseData(response, telnyx) {
|
|
5
5
|
return utils.addResourceToResponseData(response, telnyx, 'numberPortouts', {
|
|
@@ -23,7 +23,6 @@ export const NumberPortouts = TelnyxResource.extend({
|
|
|
23
23
|
path: 'portouts',
|
|
24
24
|
list: telnyxMethod({
|
|
25
25
|
method: 'GET',
|
|
26
|
-
transformResponseData: transformResponseData,
|
|
27
26
|
}),
|
|
28
27
|
retrieve: telnyxMethod({
|
|
29
28
|
method: 'GET',
|
|
@@ -47,7 +46,6 @@ export const NumberPortouts = TelnyxResource.extend({
|
|
|
47
46
|
method: 'GET',
|
|
48
47
|
path: '/{id}/supporting_documents',
|
|
49
48
|
urlParams: ['id'],
|
|
50
|
-
transformResponseData: transformResponseData,
|
|
51
49
|
}),
|
|
52
50
|
createListOfSupportingDocuments: telnyxMethod({
|
|
53
51
|
method: 'POST',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
export const NumberReservations = TelnyxResource.extend({
|
|
5
5
|
path: 'number_reservations',
|
package/dist/resources/Object.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
function transformResponseData(response, telnyx) {
|
|
5
5
|
return utils.addResourceToResponseData(response, telnyx, 'outboundVoiceProfiles', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
function transformResponseData(response, telnyx) {
|
|
5
5
|
return utils.addResourceToResponseData(response, telnyx, 'phoneNumberAssignmentByProfile', {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
3
|
-
import { PhoneNumbersMessaging } from './PhoneNumbersMessaging';
|
|
4
|
-
import { PhoneNumbersVoice } from './PhoneNumbersVoice';
|
|
5
|
-
import { PhoneNumbersInboundChannels } from './PhoneNumbersInboundChannels';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
|
+
import { PhoneNumbersMessaging } from './PhoneNumbersMessaging.js';
|
|
4
|
+
import { PhoneNumbersVoice } from './PhoneNumbersVoice.js';
|
|
5
|
+
import { PhoneNumbersInboundChannels } from './PhoneNumbersInboundChannels.js';
|
|
6
6
|
const telnyxMethod = TelnyxResource.method;
|
|
7
7
|
function transformResponseData(response, telnyx) {
|
|
8
8
|
return utils.addResourceToResponseData(response, telnyx, 'phoneNumbers', {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
2
|
const telnyxMethod = TelnyxResource.method;
|
|
3
3
|
export const PortabilityChecks = TelnyxResource.extend({
|
|
4
4
|
path: 'portability_checks',
|
|
5
|
+
includeBasic: ['create'],
|
|
5
6
|
run: telnyxMethod({
|
|
6
7
|
method: 'POST',
|
|
7
8
|
}),
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
2
|
const telnyxMethod = TelnyxResource.method;
|
|
3
3
|
export const PortingEvents = TelnyxResource.extend({
|
|
4
4
|
path: 'porting/events',
|
|
5
5
|
includeBasic: ['list', 'retrieve'],
|
|
6
|
+
show: telnyxMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
path: '/{id}',
|
|
9
|
+
urlParams: ['id'],
|
|
10
|
+
methodType: 'retrieve',
|
|
11
|
+
}),
|
|
6
12
|
republish: telnyxMethod({
|
|
7
13
|
method: 'POST',
|
|
8
14
|
path: '/{id}/republish',
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
const telnyxMethod = TelnyxResource.method;
|
|
3
|
+
export const PortingLoaConfigurations = TelnyxResource.extend({
|
|
4
|
+
path: 'porting/loa_configurations',
|
|
5
|
+
includeBasic: ['list', 'create', 'retrieve', 'del', 'update'],
|
|
6
|
+
preview: telnyxMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
path: '/{id}/preview',
|
|
9
|
+
urlParams: ['id'],
|
|
10
|
+
methodType: 'retrieve',
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
function transformResponseData(response, telnyx) {
|
|
5
5
|
return utils.addResourceToResponseData(response, telnyx, 'portingOrders', {
|
|
@@ -17,14 +17,43 @@ function transformResponseData(response, telnyx) {
|
|
|
17
17
|
paramsValues: [response.data.id],
|
|
18
18
|
paramsNames: ['portingOrderId'],
|
|
19
19
|
}),
|
|
20
|
+
activate: telnyxMethod({
|
|
21
|
+
method: 'POST',
|
|
22
|
+
path: '/{porting_order_id}/actions/activate',
|
|
23
|
+
urlParams: ['porting_order_id'],
|
|
24
|
+
paramsValues: [response.data.id],
|
|
25
|
+
paramsNames: ['porting_order_id'],
|
|
26
|
+
methodType: 'create',
|
|
27
|
+
}),
|
|
28
|
+
cancel: telnyxMethod({
|
|
29
|
+
method: 'POST',
|
|
30
|
+
path: '/{porting_order_id}/actions/activate',
|
|
31
|
+
urlParams: ['porting_order_id'],
|
|
32
|
+
paramsValues: [response.data.id],
|
|
33
|
+
paramsNames: ['porting_order_id'],
|
|
34
|
+
methodType: 'create',
|
|
35
|
+
}),
|
|
36
|
+
confirm: telnyxMethod({
|
|
37
|
+
method: 'POST',
|
|
38
|
+
path: '/{porting_order_id}/actions/activate',
|
|
39
|
+
urlParams: ['porting_order_id'],
|
|
40
|
+
paramsValues: [response.data.id],
|
|
41
|
+
paramsNames: ['porting_order_id'],
|
|
42
|
+
methodType: 'create',
|
|
43
|
+
}),
|
|
44
|
+
share: telnyxMethod({
|
|
45
|
+
method: 'POST',
|
|
46
|
+
path: '/{porting_order_id}/actions/activate',
|
|
47
|
+
urlParams: ['porting_order_id'],
|
|
48
|
+
paramsValues: [response.data.id],
|
|
49
|
+
paramsNames: ['porting_order_id'],
|
|
50
|
+
methodType: 'create',
|
|
51
|
+
}),
|
|
20
52
|
});
|
|
21
53
|
}
|
|
22
54
|
export const PortingOrders = TelnyxResource.extend({
|
|
23
55
|
path: 'porting_orders',
|
|
24
|
-
|
|
25
|
-
method: 'GET',
|
|
26
|
-
methodType: 'list',
|
|
27
|
-
}),
|
|
56
|
+
includeBasic: ['list', 'del', 'update'],
|
|
28
57
|
create: telnyxMethod({
|
|
29
58
|
method: 'POST',
|
|
30
59
|
methodType: 'create',
|
|
@@ -41,40 +70,94 @@ export const PortingOrders = TelnyxResource.extend({
|
|
|
41
70
|
path: '/exception_types',
|
|
42
71
|
methodType: 'list',
|
|
43
72
|
}),
|
|
44
|
-
|
|
73
|
+
listPhoneNumberConfigurations: telnyxMethod({
|
|
45
74
|
method: 'GET',
|
|
46
|
-
path: '/
|
|
75
|
+
path: '/phone_number_configurations',
|
|
47
76
|
methodType: 'list',
|
|
48
77
|
urlParams: ['id'],
|
|
49
78
|
}),
|
|
50
|
-
|
|
79
|
+
createPhoneNumberConfigurations: telnyxMethod({
|
|
51
80
|
method: 'POST',
|
|
52
|
-
path: '/
|
|
53
|
-
urlParams: ['orderId'],
|
|
54
|
-
paramsNames: ['orderId'],
|
|
81
|
+
path: '/phone_number_configurations',
|
|
55
82
|
methodType: 'create',
|
|
56
83
|
}),
|
|
84
|
+
listActivationJobs: telnyxMethod({
|
|
85
|
+
method: 'GET',
|
|
86
|
+
path: '/{id}/activation_jobs',
|
|
87
|
+
methodType: 'list',
|
|
88
|
+
urlParams: ['id'],
|
|
89
|
+
}),
|
|
90
|
+
retrieveActivationJob: telnyxMethod({
|
|
91
|
+
method: 'GET',
|
|
92
|
+
path: '/{id}/activation_jobs/{activationJobId}',
|
|
93
|
+
urlParams: ['id', 'activationJobId'],
|
|
94
|
+
paramsNames: ['id', 'activationJobId'],
|
|
95
|
+
}),
|
|
57
96
|
listAllowedFocWindows: telnyxMethod({
|
|
58
97
|
method: 'GET',
|
|
59
98
|
path: '/{id}/allowed_foc_windows',
|
|
60
99
|
methodType: 'list',
|
|
61
100
|
urlParams: ['id'],
|
|
62
101
|
}),
|
|
102
|
+
listAdditionalDocuments: telnyxMethod({
|
|
103
|
+
method: 'GET',
|
|
104
|
+
path: '/{id}/additional_documents',
|
|
105
|
+
methodType: 'list',
|
|
106
|
+
urlParams: ['id'],
|
|
107
|
+
}),
|
|
108
|
+
createAdditionalDocuments: telnyxMethod({
|
|
109
|
+
method: 'POST',
|
|
110
|
+
path: '/{porting_order_id}/additional_documents',
|
|
111
|
+
urlParams: ['porting_order_id'],
|
|
112
|
+
paramsNames: ['porting_order_id'],
|
|
113
|
+
methodType: 'create',
|
|
114
|
+
}),
|
|
115
|
+
delAdditionalDocuments: telnyxMethod({
|
|
116
|
+
method: 'DELETE',
|
|
117
|
+
path: '/{porting_order_id}/additional_documents/{additional_document_id}',
|
|
118
|
+
urlParams: ['porting_order_id', 'additional_document_id'],
|
|
119
|
+
paramsNames: ['porting_order_id', 'additional_document_id'],
|
|
120
|
+
}),
|
|
63
121
|
retrieveLoaTemplate: telnyxMethod({
|
|
64
122
|
method: 'GET',
|
|
65
123
|
path: '/{id}/loa_template',
|
|
66
124
|
urlParams: ['id'],
|
|
125
|
+
methodType: 'retrieve',
|
|
67
126
|
}),
|
|
68
|
-
|
|
127
|
+
activate: telnyxMethod({
|
|
69
128
|
method: 'POST',
|
|
70
|
-
path: '/{
|
|
71
|
-
urlParams: ['
|
|
129
|
+
path: '/{porting_order_id}/actions/activate',
|
|
130
|
+
urlParams: ['porting_order_id'],
|
|
131
|
+
paramsNames: ['porting_order_id'],
|
|
132
|
+
methodType: 'create',
|
|
133
|
+
}),
|
|
134
|
+
cancel: telnyxMethod({
|
|
135
|
+
method: 'POST',
|
|
136
|
+
path: '/{porting_order_id}/actions/cancel',
|
|
137
|
+
urlParams: ['porting_order_id'],
|
|
138
|
+
paramsNames: ['porting_order_id'],
|
|
139
|
+
methodType: 'create',
|
|
140
|
+
}),
|
|
141
|
+
confirm: telnyxMethod({
|
|
142
|
+
method: 'POST',
|
|
143
|
+
path: '/{porting_order_id}/actions/confirm',
|
|
144
|
+
urlParams: ['porting_order_id'],
|
|
145
|
+
paramsNames: ['porting_order_id'],
|
|
146
|
+
methodType: 'create',
|
|
147
|
+
}),
|
|
148
|
+
share: telnyxMethod({
|
|
149
|
+
method: 'POST',
|
|
150
|
+
path: '/{porting_order_id}/actions/share',
|
|
151
|
+
urlParams: ['porting_order_id'],
|
|
152
|
+
paramsNames: ['porting_order_id'],
|
|
153
|
+
methodType: 'create',
|
|
72
154
|
}),
|
|
73
155
|
createComment: telnyxMethod({
|
|
74
156
|
method: 'POST',
|
|
75
|
-
path: '/{
|
|
157
|
+
path: '/{porting_order_id}/comments',
|
|
76
158
|
methodType: 'create',
|
|
77
|
-
urlParams: ['
|
|
159
|
+
urlParams: ['porting_order_id'],
|
|
160
|
+
paramsNames: ['porting_order_id'],
|
|
78
161
|
}),
|
|
79
162
|
listComments: telnyxMethod({
|
|
80
163
|
method: 'GET',
|
|
@@ -82,4 +165,74 @@ export const PortingOrders = TelnyxResource.extend({
|
|
|
82
165
|
methodType: 'list',
|
|
83
166
|
urlParams: ['id'],
|
|
84
167
|
}),
|
|
168
|
+
listRequirements: telnyxMethod({
|
|
169
|
+
method: 'GET',
|
|
170
|
+
path: '/{id}/requirements',
|
|
171
|
+
methodType: 'list',
|
|
172
|
+
urlParams: ['id'],
|
|
173
|
+
}),
|
|
174
|
+
listVerificationCodes: telnyxMethod({
|
|
175
|
+
method: 'GET',
|
|
176
|
+
path: '/{id}/verification_codes',
|
|
177
|
+
methodType: 'list',
|
|
178
|
+
urlParams: ['id'],
|
|
179
|
+
}),
|
|
180
|
+
retrieveSubRequest: telnyxMethod({
|
|
181
|
+
method: 'GET',
|
|
182
|
+
path: '/{id}/sub_request',
|
|
183
|
+
methodType: 'retrieve',
|
|
184
|
+
urlParams: ['id'],
|
|
185
|
+
}),
|
|
186
|
+
sendVerificationCode: telnyxMethod({
|
|
187
|
+
method: 'POST',
|
|
188
|
+
path: '/{porting_order_id}/verification_codes/send',
|
|
189
|
+
methodType: 'create',
|
|
190
|
+
urlParams: ['porting_order_id'],
|
|
191
|
+
paramsNames: ['porting_order_id'],
|
|
192
|
+
}),
|
|
193
|
+
verifyVerificationCode: telnyxMethod({
|
|
194
|
+
method: 'POST',
|
|
195
|
+
path: '/{porting_order_id}/verification_codes/verify',
|
|
196
|
+
methodType: 'create',
|
|
197
|
+
urlParams: ['porting_order_id'],
|
|
198
|
+
paramsNames: ['porting_order_id'],
|
|
199
|
+
}),
|
|
200
|
+
listPhoneNumberBlocks: telnyxMethod({
|
|
201
|
+
method: 'GET',
|
|
202
|
+
path: '/{porting_order_id}/phone_number_blocks',
|
|
203
|
+
methodType: 'list',
|
|
204
|
+
urlParams: ['porting_order_id'],
|
|
205
|
+
}),
|
|
206
|
+
createPhoneNumberBlock: telnyxMethod({
|
|
207
|
+
method: 'POST',
|
|
208
|
+
path: '/{porting_order_id}/phone_number_blocks',
|
|
209
|
+
methodType: 'create',
|
|
210
|
+
urlParams: ['porting_order_id'],
|
|
211
|
+
paramsNames: ['porting_order_id'],
|
|
212
|
+
}),
|
|
213
|
+
delPhoneNumberBlock: telnyxMethod({
|
|
214
|
+
method: 'DELETE',
|
|
215
|
+
path: '/{porting_order_id}/phone_number_blocks/{id}',
|
|
216
|
+
urlParams: ['porting_order_id', 'id'],
|
|
217
|
+
paramsNames: ['porting_order_id', 'id'],
|
|
218
|
+
}),
|
|
219
|
+
listPhoneNumberExtensions: telnyxMethod({
|
|
220
|
+
method: 'GET',
|
|
221
|
+
path: '/{porting_order_id}/phone_number_extensions',
|
|
222
|
+
methodType: 'list',
|
|
223
|
+
urlParams: ['porting_order_id'],
|
|
224
|
+
}),
|
|
225
|
+
createPhoneNumberExtension: telnyxMethod({
|
|
226
|
+
method: 'POST',
|
|
227
|
+
path: '/{porting_order_id}/phone_number_extensions',
|
|
228
|
+
methodType: 'create',
|
|
229
|
+
urlParams: ['porting_order_id'],
|
|
230
|
+
paramsNames: ['porting_order_id'],
|
|
231
|
+
}),
|
|
232
|
+
delPhoneNumberExtension: telnyxMethod({
|
|
233
|
+
method: 'DELETE',
|
|
234
|
+
path: '/{porting_order_id}/phone_number_extensions/{id}',
|
|
235
|
+
urlParams: ['porting_order_id', 'id'],
|
|
236
|
+
paramsNames: ['porting_order_id', 'id'],
|
|
237
|
+
}),
|
|
85
238
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
2
|
const telnyxMethod = TelnyxResource.method;
|
|
3
3
|
export const PortoutEvents = TelnyxResource.extend({
|
|
4
|
-
path: '
|
|
4
|
+
path: 'portouts/events',
|
|
5
5
|
includeBasic: ['list', 'retrieve'],
|
|
6
6
|
republish: telnyxMethod({
|
|
7
7
|
method: 'POST',
|
package/dist/resources/Queues.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import TelnyxResource from '../TelnyxResource';
|
|
2
|
-
import * as utils from '../utils';
|
|
1
|
+
import TelnyxResource from '../TelnyxResource.js';
|
|
2
|
+
import * as utils from '../utils.js';
|
|
3
3
|
const telnyxMethod = TelnyxResource.method;
|
|
4
4
|
const ACTIONS = ['calls'];
|
|
5
5
|
function getSpec(queueName) {
|