Skip to content

Commit d6fe2c3

Browse files
rewrite exponental backoff into each function
1 parent 330cd0b commit d6fe2c3

27 files changed

Lines changed: 7619 additions & 5076 deletions

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## [2.0.0] - revision: 2023-01-24
4+
## [2.0.0] - revision 2023-01-24
55

66
- Added the following endpoints (which were previously in our Beta API/SDKs):
77
- Data Privacy
88
- All Tags endpoints, as well as the following related resource-specific endpoints:
99
- Get Flow Tags
1010
- Get List Tags
1111
- Get Segment Tags
12-
- Reworked the response object returned by SDK methods
12+
- Reworked the response object from returned by SDK methods
1313
- instead of only returning the response payload, the status code and headers are now also returned
1414
- The API response payload is now nested under `body` within the API response returned by SDK methods. You can get the `id` of the returned resource by calling `response.body.data.id` instead of `response.data.id` from previous releases. You can get response headers and status with `response.headers` and `response.status` respectively.
1515

dist/ApiClient.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
2828
var ApiClient = /*#__PURE__*/function () {
2929
function ApiClient() {
3030
_classCallCheck(this, ApiClient);
31+
this.RETRY_CODES = [429, 503, 504];
32+
this.RETRY_MAX_ATTEMPTS = 3;
33+
this.TIME_MULTIPLE = 5;
34+
this.STARTING_DELAY = 500;
3135
/**
3236
* The base URL against which to resolve every API call's (relative) path.
3337
* @type {String}

dist/api/CatalogsApi.js

Lines changed: 849 additions & 318 deletions
Large diffs are not rendered by default.

dist/api/ClientApi.js

Lines changed: 49 additions & 18 deletions
Large diffs are not rendered by default.

dist/api/DataPrivacyApi.js

Lines changed: 17 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)