@steamsets/client-ts 0.12.8 → 0.13.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/funcs/accountDeleteImages.d.ts.map +1 -1
- package/funcs/accountDeleteImages.js +17 -14
- package/funcs/accountDeleteImages.js.map +1 -1
- package/funcs/accountGetApps.d.ts.map +1 -1
- package/funcs/accountGetApps.js +17 -14
- package/funcs/accountGetApps.js.map +1 -1
- package/funcs/accountGetBadges.d.ts.map +1 -1
- package/funcs/accountGetBadges.js +17 -14
- package/funcs/accountGetBadges.js.map +1 -1
- package/funcs/accountGetDataPoints.d.ts.map +1 -1
- package/funcs/accountGetDataPoints.js +17 -14
- package/funcs/accountGetDataPoints.js.map +1 -1
- package/funcs/accountGetFriends.d.ts.map +1 -1
- package/funcs/accountGetFriends.js +17 -14
- package/funcs/accountGetFriends.js.map +1 -1
- package/funcs/accountGetInfo.d.ts.map +1 -1
- package/funcs/accountGetInfo.js +17 -14
- package/funcs/accountGetInfo.js.map +1 -1
- package/funcs/accountGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/accountGetLeaderboardHistory.js +17 -14
- package/funcs/accountGetLeaderboardHistory.js.map +1 -1
- package/funcs/accountGetStaff.d.ts.map +1 -1
- package/funcs/accountGetStaff.js +17 -14
- package/funcs/accountGetStaff.js.map +1 -1
- package/funcs/accountSendEmailVerification.d.ts.map +1 -1
- package/funcs/accountSendEmailVerification.js +17 -14
- package/funcs/accountSendEmailVerification.js.map +1 -1
- package/funcs/accountUpdateImage.d.ts.map +1 -1
- package/funcs/accountUpdateImage.js +17 -14
- package/funcs/accountUpdateImage.js.map +1 -1
- package/funcs/accountUploadImages.d.ts.map +1 -1
- package/funcs/accountUploadImages.js +17 -14
- package/funcs/accountUploadImages.js.map +1 -1
- package/funcs/accountVerifyEmail.d.ts.map +1 -1
- package/funcs/accountVerifyEmail.js +17 -14
- package/funcs/accountVerifyEmail.js.map +1 -1
- package/funcs/accountsQueue.d.ts.map +1 -1
- package/funcs/accountsQueue.js +17 -14
- package/funcs/accountsQueue.js.map +1 -1
- package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateResources.js +17 -14
- package/funcs/adminAdminV1UpdateResources.js.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -1
- package/funcs/adminAdminV1UpdateRoles.js +17 -14
- package/funcs/adminAdminV1UpdateRoles.js.map +1 -1
- package/funcs/adminGetAccount.d.ts.map +1 -1
- package/funcs/adminGetAccount.js +17 -14
- package/funcs/adminGetAccount.js.map +1 -1
- package/funcs/badgeGetTags.d.ts.map +1 -1
- package/funcs/badgeGetTags.js +17 -14
- package/funcs/badgeGetTags.js.map +1 -1
- package/funcs/badgesTag.d.ts.map +1 -1
- package/funcs/badgesTag.js +17 -14
- package/funcs/badgesTag.js.map +1 -1
- package/funcs/connectionDelete.d.ts.map +1 -1
- package/funcs/connectionDelete.js +17 -14
- package/funcs/connectionDelete.js.map +1 -1
- package/funcs/connectionUpdate.d.ts.map +1 -1
- package/funcs/connectionUpdate.js +17 -14
- package/funcs/connectionUpdate.js.map +1 -1
- package/funcs/connectionVerify.d.ts.map +1 -1
- package/funcs/connectionVerify.js +17 -14
- package/funcs/connectionVerify.js.map +1 -1
- package/funcs/connectionsConnect.d.ts.map +1 -1
- package/funcs/connectionsConnect.js +17 -14
- package/funcs/connectionsConnect.js.map +1 -1
- package/funcs/dataGetApps.d.ts.map +1 -1
- package/funcs/dataGetApps.js +17 -14
- package/funcs/dataGetApps.js.map +1 -1
- package/funcs/dataGetBadges.d.ts.map +1 -1
- package/funcs/dataGetBadges.js +17 -14
- package/funcs/dataGetBadges.js.map +1 -1
- package/funcs/dataGetDataPoints.d.ts.map +1 -1
- package/funcs/dataGetDataPoints.js +17 -14
- package/funcs/dataGetDataPoints.js.map +1 -1
- package/funcs/dataGetFriends.d.ts.map +1 -1
- package/funcs/dataGetFriends.js +17 -14
- package/funcs/dataGetFriends.js.map +1 -1
- package/funcs/dataGetInfo.d.ts.map +1 -1
- package/funcs/dataGetInfo.js +17 -14
- package/funcs/dataGetInfo.js.map +1 -1
- package/funcs/dataGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/dataGetLeaderboardHistory.js +17 -14
- package/funcs/dataGetLeaderboardHistory.js.map +1 -1
- package/funcs/dataGetStaff.d.ts.map +1 -1
- package/funcs/dataGetStaff.js +17 -14
- package/funcs/dataGetStaff.js.map +1 -1
- package/funcs/developerCreateDeveloperApp.d.ts.map +1 -1
- package/funcs/developerCreateDeveloperApp.js +17 -14
- package/funcs/developerCreateDeveloperApp.js.map +1 -1
- package/funcs/developerDeleteDeveloperApp.d.ts.map +1 -1
- package/funcs/developerDeleteDeveloperApp.js +17 -14
- package/funcs/developerDeleteDeveloperApp.js.map +1 -1
- package/funcs/developerUpdateApp.d.ts.map +1 -1
- package/funcs/developerUpdateApp.js +17 -14
- package/funcs/developerUpdateApp.js.map +1 -1
- package/funcs/leaderboardGetAccount.d.ts.map +1 -1
- package/funcs/leaderboardGetAccount.js +17 -14
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetBadges.d.ts.map +1 -1
- package/funcs/leaderboardGetBadges.js +17 -14
- package/funcs/leaderboardGetBadges.js.map +1 -1
- package/funcs/leaderboardGetGroup.d.ts.map +1 -1
- package/funcs/leaderboardGetGroup.js +17 -14
- package/funcs/leaderboardGetGroup.js.map +1 -1
- package/funcs/livenessCheck.d.ts.map +1 -1
- package/funcs/livenessCheck.js +17 -14
- package/funcs/livenessCheck.js.map +1 -1
- package/funcs/locationsGet.d.ts.map +1 -1
- package/funcs/locationsGet.js +17 -14
- package/funcs/locationsGet.js.map +1 -1
- package/funcs/metaAccountV1GetEmbed.d.ts.map +1 -1
- package/funcs/metaAccountV1GetEmbed.js +17 -14
- package/funcs/metaAccountV1GetEmbed.js.map +1 -1
- package/funcs/metaAccountV1GetMeta.d.ts.map +1 -1
- package/funcs/metaAccountV1GetMeta.js +17 -14
- package/funcs/metaAccountV1GetMeta.js.map +1 -1
- package/funcs/publicGetApps.d.ts.map +1 -1
- package/funcs/publicGetApps.js +17 -14
- package/funcs/publicGetApps.js.map +1 -1
- package/funcs/publicGetBadges.d.ts.map +1 -1
- package/funcs/publicGetBadges.js +17 -14
- package/funcs/publicGetBadges.js.map +1 -1
- package/funcs/publicGetDataPoints.d.ts.map +1 -1
- package/funcs/publicGetDataPoints.js +17 -14
- package/funcs/publicGetDataPoints.js.map +1 -1
- package/funcs/publicGetFriends.d.ts.map +1 -1
- package/funcs/publicGetFriends.js +17 -14
- package/funcs/publicGetFriends.js.map +1 -1
- package/funcs/publicGetInfo.d.ts.map +1 -1
- package/funcs/publicGetInfo.js +17 -14
- package/funcs/publicGetInfo.js.map +1 -1
- package/funcs/publicGetLeaderboardHistory.d.ts.map +1 -1
- package/funcs/publicGetLeaderboardHistory.js +17 -14
- package/funcs/publicGetLeaderboardHistory.js.map +1 -1
- package/funcs/sessionCreate.d.ts.map +1 -1
- package/funcs/sessionCreate.js +17 -14
- package/funcs/sessionCreate.js.map +1 -1
- package/funcs/sessionLogin.d.ts.map +1 -1
- package/funcs/sessionLogin.js +17 -14
- package/funcs/sessionLogin.js.map +1 -1
- package/funcs/sessionsDelete.d.ts.map +1 -1
- package/funcs/sessionsDelete.js +17 -14
- package/funcs/sessionsDelete.js.map +1 -1
- package/funcs/sessionsGet.d.ts.map +1 -1
- package/funcs/sessionsGet.js +17 -14
- package/funcs/sessionsGet.js.map +1 -1
- package/funcs/settingsDeleteImages.d.ts.map +1 -1
- package/funcs/settingsDeleteImages.js +17 -14
- package/funcs/settingsDeleteImages.js.map +1 -1
- package/funcs/settingsGet.d.ts.map +1 -1
- package/funcs/settingsGet.js +17 -14
- package/funcs/settingsGet.js.map +1 -1
- package/funcs/settingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/settingsSendEmailVerification.js +17 -14
- package/funcs/settingsSendEmailVerification.js.map +1 -1
- package/funcs/settingsUpdate.d.ts.map +1 -1
- package/funcs/settingsUpdate.js +17 -14
- package/funcs/settingsUpdate.js.map +1 -1
- package/funcs/settingsUpdateImage.d.ts.map +1 -1
- package/funcs/settingsUpdateImage.js +17 -14
- package/funcs/settingsUpdateImage.js.map +1 -1
- package/funcs/settingsUploadImages.d.ts.map +1 -1
- package/funcs/settingsUploadImages.js +17 -14
- package/funcs/settingsUploadImages.js.map +1 -1
- package/funcs/settingsVerifyEmail.d.ts.map +1 -1
- package/funcs/settingsVerifyEmail.js +17 -14
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/retries.d.ts +20 -0
- package/lib/retries.d.ts.map +1 -1
- package/lib/retries.js +51 -26
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts +2 -2
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +14 -12
- package/lib/sdks.js.map +1 -1
- package/models/components/chosenrole.d.ts +104 -0
- package/models/components/chosenrole.d.ts.map +1 -0
- package/models/components/chosenrole.js +87 -0
- package/models/components/chosenrole.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1getsettingsbody.d.ts +3 -0
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +3 -0
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/accountDeleteImages.ts +18 -14
- package/src/funcs/accountGetApps.ts +18 -14
- package/src/funcs/accountGetBadges.ts +18 -14
- package/src/funcs/accountGetDataPoints.ts +18 -14
- package/src/funcs/accountGetFriends.ts +18 -14
- package/src/funcs/accountGetInfo.ts +18 -14
- package/src/funcs/accountGetLeaderboardHistory.ts +18 -14
- package/src/funcs/accountGetStaff.ts +18 -14
- package/src/funcs/accountSendEmailVerification.ts +18 -14
- package/src/funcs/accountUpdateImage.ts +18 -14
- package/src/funcs/accountUploadImages.ts +18 -14
- package/src/funcs/accountVerifyEmail.ts +18 -14
- package/src/funcs/accountsQueue.ts +18 -14
- package/src/funcs/adminAdminV1UpdateResources.ts +18 -14
- package/src/funcs/adminAdminV1UpdateRoles.ts +18 -14
- package/src/funcs/adminGetAccount.ts +18 -14
- package/src/funcs/badgeGetTags.ts +18 -14
- package/src/funcs/badgesTag.ts +18 -14
- package/src/funcs/connectionDelete.ts +18 -14
- package/src/funcs/connectionUpdate.ts +18 -14
- package/src/funcs/connectionVerify.ts +18 -14
- package/src/funcs/connectionsConnect.ts +18 -14
- package/src/funcs/dataGetApps.ts +18 -14
- package/src/funcs/dataGetBadges.ts +18 -14
- package/src/funcs/dataGetDataPoints.ts +18 -14
- package/src/funcs/dataGetFriends.ts +18 -14
- package/src/funcs/dataGetInfo.ts +18 -14
- package/src/funcs/dataGetLeaderboardHistory.ts +18 -14
- package/src/funcs/dataGetStaff.ts +18 -14
- package/src/funcs/developerCreateDeveloperApp.ts +18 -14
- package/src/funcs/developerDeleteDeveloperApp.ts +18 -14
- package/src/funcs/developerUpdateApp.ts +18 -14
- package/src/funcs/leaderboardGetAccount.ts +18 -14
- package/src/funcs/leaderboardGetBadges.ts +18 -14
- package/src/funcs/leaderboardGetGroup.ts +18 -14
- package/src/funcs/livenessCheck.ts +18 -14
- package/src/funcs/locationsGet.ts +18 -14
- package/src/funcs/metaAccountV1GetEmbed.ts +18 -14
- package/src/funcs/metaAccountV1GetMeta.ts +18 -14
- package/src/funcs/publicGetApps.ts +18 -14
- package/src/funcs/publicGetBadges.ts +18 -14
- package/src/funcs/publicGetDataPoints.ts +18 -14
- package/src/funcs/publicGetFriends.ts +18 -14
- package/src/funcs/publicGetInfo.ts +18 -14
- package/src/funcs/publicGetLeaderboardHistory.ts +18 -14
- package/src/funcs/sessionCreate.ts +18 -14
- package/src/funcs/sessionLogin.ts +18 -14
- package/src/funcs/sessionsDelete.ts +18 -14
- package/src/funcs/sessionsGet.ts +18 -14
- package/src/funcs/settingsDeleteImages.ts +18 -14
- package/src/funcs/settingsGet.ts +18 -14
- package/src/funcs/settingsSendEmailVerification.ts +18 -14
- package/src/funcs/settingsUpdate.ts +18 -14
- package/src/funcs/settingsUpdateImage.ts +18 -14
- package/src/funcs/settingsUploadImages.ts +18 -14
- package/src/funcs/settingsVerifyEmail.ts +18 -14
- package/src/hooks/types.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +63 -31
- package/src/lib/sdks.ts +19 -15
- package/src/models/components/chosenrole.ts +96 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/v1getsettingsbody.ts +10 -0
|
@@ -60,12 +60,27 @@ export async function accountsQueue(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.queue",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function accountsQueue(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -61,12 +61,27 @@ export async function adminAdminV1UpdateResources(
|
|
|
61
61
|
|
|
62
62
|
const secConfig = await extractSecurity(client._options.token);
|
|
63
63
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
64
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65
|
+
|
|
64
66
|
const context = {
|
|
65
67
|
operationID: "admin.v1.update-resources",
|
|
66
68
|
oAuth2Scopes: [],
|
|
67
69
|
securitySource: client._options.token,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| {
|
|
73
|
+
strategy: "backoff",
|
|
74
|
+
backoff: {
|
|
75
|
+
initialInterval: 500,
|
|
76
|
+
maxInterval: 60000,
|
|
77
|
+
exponent: 1.5,
|
|
78
|
+
maxElapsedTime: 3600000,
|
|
79
|
+
},
|
|
80
|
+
retryConnectionErrors: true,
|
|
81
|
+
}
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
68
84
|
};
|
|
69
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
85
|
|
|
71
86
|
const requestRes = client._createRequest(context, {
|
|
72
87
|
security: requestSecurity,
|
|
@@ -85,19 +100,8 @@ export async function adminAdminV1UpdateResources(
|
|
|
85
100
|
const doResult = await client._do(req, {
|
|
86
101
|
context,
|
|
87
102
|
errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
|
|
88
|
-
retryConfig:
|
|
89
|
-
|
|
90
|
-
|| {
|
|
91
|
-
strategy: "backoff",
|
|
92
|
-
backoff: {
|
|
93
|
-
initialInterval: 500,
|
|
94
|
-
maxInterval: 60000,
|
|
95
|
-
exponent: 1.5,
|
|
96
|
-
maxElapsedTime: 3600000,
|
|
97
|
-
},
|
|
98
|
-
retryConnectionErrors: true,
|
|
99
|
-
},
|
|
100
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
101
105
|
});
|
|
102
106
|
if (!doResult.ok) {
|
|
103
107
|
return doResult;
|
|
@@ -61,12 +61,27 @@ export async function adminAdminV1UpdateRoles(
|
|
|
61
61
|
|
|
62
62
|
const secConfig = await extractSecurity(client._options.token);
|
|
63
63
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
64
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65
|
+
|
|
64
66
|
const context = {
|
|
65
67
|
operationID: "admin.v1.update-roles",
|
|
66
68
|
oAuth2Scopes: [],
|
|
67
69
|
securitySource: client._options.token,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| {
|
|
73
|
+
strategy: "backoff",
|
|
74
|
+
backoff: {
|
|
75
|
+
initialInterval: 500,
|
|
76
|
+
maxInterval: 60000,
|
|
77
|
+
exponent: 1.5,
|
|
78
|
+
maxElapsedTime: 3600000,
|
|
79
|
+
},
|
|
80
|
+
retryConnectionErrors: true,
|
|
81
|
+
}
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
68
84
|
};
|
|
69
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
85
|
|
|
71
86
|
const requestRes = client._createRequest(context, {
|
|
72
87
|
security: requestSecurity,
|
|
@@ -85,19 +100,8 @@ export async function adminAdminV1UpdateRoles(
|
|
|
85
100
|
const doResult = await client._do(req, {
|
|
86
101
|
context,
|
|
87
102
|
errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
|
|
88
|
-
retryConfig:
|
|
89
|
-
|
|
90
|
-
|| {
|
|
91
|
-
strategy: "backoff",
|
|
92
|
-
backoff: {
|
|
93
|
-
initialInterval: 500,
|
|
94
|
-
maxInterval: 60000,
|
|
95
|
-
exponent: 1.5,
|
|
96
|
-
maxElapsedTime: 3600000,
|
|
97
|
-
},
|
|
98
|
-
retryConnectionErrors: true,
|
|
99
|
-
},
|
|
100
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
101
105
|
});
|
|
102
106
|
if (!doResult.ok) {
|
|
103
107
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function adminGetAccount(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "admin.v1.get-account",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function adminGetAccount(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -47,12 +47,27 @@ export async function badgeGetTags(
|
|
|
47
47
|
|
|
48
48
|
const secConfig = await extractSecurity(client._options.token);
|
|
49
49
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
50
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51
|
+
|
|
50
52
|
const context = {
|
|
51
53
|
operationID: "badge.v1.tags",
|
|
52
54
|
oAuth2Scopes: [],
|
|
53
55
|
securitySource: client._options.token,
|
|
56
|
+
retryConfig: options?.retries
|
|
57
|
+
|| client._options.retryConfig
|
|
58
|
+
|| {
|
|
59
|
+
strategy: "backoff",
|
|
60
|
+
backoff: {
|
|
61
|
+
initialInterval: 500,
|
|
62
|
+
maxInterval: 60000,
|
|
63
|
+
exponent: 1.5,
|
|
64
|
+
maxElapsedTime: 3600000,
|
|
65
|
+
},
|
|
66
|
+
retryConnectionErrors: true,
|
|
67
|
+
}
|
|
68
|
+
|| { strategy: "none" },
|
|
69
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
54
70
|
};
|
|
55
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56
71
|
|
|
57
72
|
const requestRes = client._createRequest(context, {
|
|
58
73
|
security: requestSecurity,
|
|
@@ -70,19 +85,8 @@ export async function badgeGetTags(
|
|
|
70
85
|
const doResult = await client._do(req, {
|
|
71
86
|
context,
|
|
72
87
|
errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
|
|
73
|
-
retryConfig:
|
|
74
|
-
|
|
75
|
-
|| {
|
|
76
|
-
strategy: "backoff",
|
|
77
|
-
backoff: {
|
|
78
|
-
initialInterval: 500,
|
|
79
|
-
maxInterval: 60000,
|
|
80
|
-
exponent: 1.5,
|
|
81
|
-
maxElapsedTime: 3600000,
|
|
82
|
-
},
|
|
83
|
-
retryConnectionErrors: true,
|
|
84
|
-
},
|
|
85
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
88
|
+
retryConfig: context.retryConfig,
|
|
89
|
+
retryCodes: context.retryCodes,
|
|
86
90
|
});
|
|
87
91
|
if (!doResult.ok) {
|
|
88
92
|
return doResult;
|
package/src/funcs/badgesTag.ts
CHANGED
|
@@ -60,12 +60,27 @@ export async function badgesTag(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "badge.v1.tag",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function badgesTag(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -61,12 +61,27 @@ export async function connectionDelete(
|
|
|
61
61
|
|
|
62
62
|
const secConfig = await extractSecurity(client._options.token);
|
|
63
63
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
64
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65
|
+
|
|
64
66
|
const context = {
|
|
65
67
|
operationID: "account.v1.connection.deleteConnection",
|
|
66
68
|
oAuth2Scopes: [],
|
|
67
69
|
securitySource: client._options.token,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| {
|
|
73
|
+
strategy: "backoff",
|
|
74
|
+
backoff: {
|
|
75
|
+
initialInterval: 500,
|
|
76
|
+
maxInterval: 60000,
|
|
77
|
+
exponent: 1.5,
|
|
78
|
+
maxElapsedTime: 3600000,
|
|
79
|
+
},
|
|
80
|
+
retryConnectionErrors: true,
|
|
81
|
+
}
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
68
84
|
};
|
|
69
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
85
|
|
|
71
86
|
const requestRes = client._createRequest(context, {
|
|
72
87
|
security: requestSecurity,
|
|
@@ -85,19 +100,8 @@ export async function connectionDelete(
|
|
|
85
100
|
const doResult = await client._do(req, {
|
|
86
101
|
context,
|
|
87
102
|
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
88
|
-
retryConfig:
|
|
89
|
-
|
|
90
|
-
|| {
|
|
91
|
-
strategy: "backoff",
|
|
92
|
-
backoff: {
|
|
93
|
-
initialInterval: 500,
|
|
94
|
-
maxInterval: 60000,
|
|
95
|
-
exponent: 1.5,
|
|
96
|
-
maxElapsedTime: 3600000,
|
|
97
|
-
},
|
|
98
|
-
retryConnectionErrors: true,
|
|
99
|
-
},
|
|
100
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
101
105
|
});
|
|
102
106
|
if (!doResult.ok) {
|
|
103
107
|
return doResult;
|
|
@@ -61,12 +61,27 @@ export async function connectionUpdate(
|
|
|
61
61
|
|
|
62
62
|
const secConfig = await extractSecurity(client._options.token);
|
|
63
63
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
64
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65
|
+
|
|
64
66
|
const context = {
|
|
65
67
|
operationID: "account.v1.connection.updateConnection",
|
|
66
68
|
oAuth2Scopes: [],
|
|
67
69
|
securitySource: client._options.token,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| {
|
|
73
|
+
strategy: "backoff",
|
|
74
|
+
backoff: {
|
|
75
|
+
initialInterval: 500,
|
|
76
|
+
maxInterval: 60000,
|
|
77
|
+
exponent: 1.5,
|
|
78
|
+
maxElapsedTime: 3600000,
|
|
79
|
+
},
|
|
80
|
+
retryConnectionErrors: true,
|
|
81
|
+
}
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
68
84
|
};
|
|
69
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
85
|
|
|
71
86
|
const requestRes = client._createRequest(context, {
|
|
72
87
|
security: requestSecurity,
|
|
@@ -85,19 +100,8 @@ export async function connectionUpdate(
|
|
|
85
100
|
const doResult = await client._do(req, {
|
|
86
101
|
context,
|
|
87
102
|
errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
|
|
88
|
-
retryConfig:
|
|
89
|
-
|
|
90
|
-
|| {
|
|
91
|
-
strategy: "backoff",
|
|
92
|
-
backoff: {
|
|
93
|
-
initialInterval: 500,
|
|
94
|
-
maxInterval: 60000,
|
|
95
|
-
exponent: 1.5,
|
|
96
|
-
maxElapsedTime: 3600000,
|
|
97
|
-
},
|
|
98
|
-
retryConnectionErrors: true,
|
|
99
|
-
},
|
|
100
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
101
105
|
});
|
|
102
106
|
if (!doResult.ok) {
|
|
103
107
|
return doResult;
|
|
@@ -61,12 +61,27 @@ export async function connectionVerify(
|
|
|
61
61
|
|
|
62
62
|
const secConfig = await extractSecurity(client._options.token);
|
|
63
63
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
64
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65
|
+
|
|
64
66
|
const context = {
|
|
65
67
|
operationID: "account.v1.connection.verifyConnection",
|
|
66
68
|
oAuth2Scopes: [],
|
|
67
69
|
securitySource: client._options.token,
|
|
70
|
+
retryConfig: options?.retries
|
|
71
|
+
|| client._options.retryConfig
|
|
72
|
+
|| {
|
|
73
|
+
strategy: "backoff",
|
|
74
|
+
backoff: {
|
|
75
|
+
initialInterval: 500,
|
|
76
|
+
maxInterval: 60000,
|
|
77
|
+
exponent: 1.5,
|
|
78
|
+
maxElapsedTime: 3600000,
|
|
79
|
+
},
|
|
80
|
+
retryConnectionErrors: true,
|
|
81
|
+
}
|
|
82
|
+
|| { strategy: "none" },
|
|
83
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
68
84
|
};
|
|
69
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
70
85
|
|
|
71
86
|
const requestRes = client._createRequest(context, {
|
|
72
87
|
security: requestSecurity,
|
|
@@ -85,19 +100,8 @@ export async function connectionVerify(
|
|
|
85
100
|
const doResult = await client._do(req, {
|
|
86
101
|
context,
|
|
87
102
|
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
88
|
-
retryConfig:
|
|
89
|
-
|
|
90
|
-
|| {
|
|
91
|
-
strategy: "backoff",
|
|
92
|
-
backoff: {
|
|
93
|
-
initialInterval: 500,
|
|
94
|
-
maxInterval: 60000,
|
|
95
|
-
exponent: 1.5,
|
|
96
|
-
maxElapsedTime: 3600000,
|
|
97
|
-
},
|
|
98
|
-
retryConnectionErrors: true,
|
|
99
|
-
},
|
|
100
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
101
105
|
});
|
|
102
106
|
if (!doResult.ok) {
|
|
103
107
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function connectionsConnect(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.connection.connect",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function connectionsConnect(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
package/src/funcs/dataGetApps.ts
CHANGED
|
@@ -60,12 +60,27 @@ export async function dataGetApps(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getApps",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function dataGetApps(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function dataGetBadges(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getBadges",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function dataGetBadges(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|
|
@@ -60,12 +60,27 @@ export async function dataGetDataPoints(
|
|
|
60
60
|
|
|
61
61
|
const secConfig = await extractSecurity(client._options.token);
|
|
62
62
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
63
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64
|
+
|
|
63
65
|
const context = {
|
|
64
66
|
operationID: "account.v1.getDataPoints",
|
|
65
67
|
oAuth2Scopes: [],
|
|
66
68
|
securitySource: client._options.token,
|
|
69
|
+
retryConfig: options?.retries
|
|
70
|
+
|| client._options.retryConfig
|
|
71
|
+
|| {
|
|
72
|
+
strategy: "backoff",
|
|
73
|
+
backoff: {
|
|
74
|
+
initialInterval: 500,
|
|
75
|
+
maxInterval: 60000,
|
|
76
|
+
exponent: 1.5,
|
|
77
|
+
maxElapsedTime: 3600000,
|
|
78
|
+
},
|
|
79
|
+
retryConnectionErrors: true,
|
|
80
|
+
}
|
|
81
|
+
|| { strategy: "none" },
|
|
82
|
+
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
67
83
|
};
|
|
68
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
84
|
|
|
70
85
|
const requestRes = client._createRequest(context, {
|
|
71
86
|
security: requestSecurity,
|
|
@@ -84,19 +99,8 @@ export async function dataGetDataPoints(
|
|
|
84
99
|
const doResult = await client._do(req, {
|
|
85
100
|
context,
|
|
86
101
|
errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
|
|
87
|
-
retryConfig:
|
|
88
|
-
|
|
89
|
-
|| {
|
|
90
|
-
strategy: "backoff",
|
|
91
|
-
backoff: {
|
|
92
|
-
initialInterval: 500,
|
|
93
|
-
maxInterval: 60000,
|
|
94
|
-
exponent: 1.5,
|
|
95
|
-
maxElapsedTime: 3600000,
|
|
96
|
-
},
|
|
97
|
-
retryConnectionErrors: true,
|
|
98
|
-
},
|
|
99
|
-
retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
|
|
102
|
+
retryConfig: context.retryConfig,
|
|
103
|
+
retryCodes: context.retryCodes,
|
|
100
104
|
});
|
|
101
105
|
if (!doResult.ok) {
|
|
102
106
|
return doResult;
|