Skip to content

Commit

Permalink
fix: done callback execution when each method limit reached
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunga1 committed Jan 5, 2022
1 parent db533d8 commit f27fb59
Show file tree
Hide file tree
Showing 321 changed files with 696 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rest/accounts/v1/credential/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ AwsList = function AwsList(version) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/accounts/v1/credential/publicKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ PublicKeyList = function PublicKeyList(version) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ AccountList = function AccountList(version) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ AddressList = function AddressList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/address/dependentPhoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ DependentPhoneNumberList = function DependentPhoneNumberList(version,
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ ApplicationList = function ApplicationList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/authorizedConnectApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ AuthorizedConnectAppList = function AuthorizedConnectAppList(version,
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ AvailablePhoneNumberCountryList = function
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ LocalList = function LocalList(version, accountSid, countryCode) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ MachineToMachineList = function MachineToMachineList(version, accountSid,
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ MobileList = function MobileList(version, accountSid, countryCode) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber/national.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ NationalList = function NationalList(version, accountSid, countryCode) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber/sharedCost.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ SharedCostList = function SharedCostList(version, accountSid, countryCode) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber/tollFree.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ TollFreeList = function TollFreeList(version, accountSid, countryCode) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/availablePhoneNumber/voip.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ VoipList = function VoipList(version, accountSid, countryCode) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ CallList = function CallList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/call/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ EventList = function EventList(version, accountSid, callSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/call/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ NotificationList = function NotificationList(version, accountSid, callSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/call/recording.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ RecordingList = function RecordingList(version, accountSid, callSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ ConferenceList = function ConferenceList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/conference/participant.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ ParticipantList = function ParticipantList(version, accountSid, conferenceSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/conference/recording.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ RecordingList = function RecordingList(version, accountSid, conferenceSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/connectApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ ConnectAppList = function ConnectAppList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/incomingPhoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ IncomingPhoneNumberList = function IncomingPhoneNumberList(version, accountSid)
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ AssignedAddOnList = function AssignedAddOnList(version, accountSid, resourceSid)
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ AssignedAddOnExtensionList = function AssignedAddOnExtensionList(version,
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/incomingPhoneNumber/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ LocalList = function LocalList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ MobileList = function MobileList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ TollFreeList = function TollFreeList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ KeyList = function KeyList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ MessageList = function MessageList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/message/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ MediaList = function MediaList(version, accountSid, messageSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ NotificationList = function NotificationList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/outgoingCallerId.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ OutgoingCallerIdList = function OutgoingCallerIdList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ QueueList = function QueueList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/queue/member.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ MemberList = function MemberList(version, accountSid, queueSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/recording.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ RecordingList = function RecordingList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/recording/addOnResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ AddOnResultList = function AddOnResultList(version, accountSid, referenceSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/recording/addOnResult/payload.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ PayloadList = function PayloadList(version, accountSid, referenceSid,
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/recording/transcription.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ TranscriptionList = function TranscriptionList(version, accountSid,
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/shortCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ ShortCodeList = function ShortCodeList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/signingKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ SigningKeyList = function SigningKeyList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/sip/credentialList.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ CredentialListList = function CredentialListList(version, accountSid) {
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/api/v2010/account/sip/credentialList/credential.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ CredentialList = function CredentialList(version, accountSid, credentialListSid)
if (!done) {
currentPage++;
fetchNextPage(_.bind(page.nextPage, page));
} else {
onComplete();
}
});

Expand Down
Loading

0 comments on commit f27fb59

Please sign in to comment.