@payabli/sdk-node 0.0.145 → 0.0.146
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/README.md +2 -10
- package/dist/cjs/BaseClient.d.ts +0 -3
- package/dist/cjs/BaseClient.js +2 -17
- package/dist/cjs/api/resources/bill/client/Client.js +11 -35
- package/dist/cjs/api/resources/boarding/client/Client.js +13 -25
- package/dist/cjs/api/resources/chargeBacks/client/Client.js +3 -3
- package/dist/cjs/api/resources/checkCapture/client/Client.js +1 -1
- package/dist/cjs/api/resources/cloud/client/Client.js +4 -8
- package/dist/cjs/api/resources/customer/client/Client.js +6 -10
- package/dist/cjs/api/resources/export/client/Client.js +29 -145
- package/dist/cjs/api/resources/ghostCard/client/Client.js +2 -2
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.js +3 -3
- package/dist/cjs/api/resources/import/client/Client.js +3 -7
- package/dist/cjs/api/resources/invoice/client/Client.js +11 -35
- package/dist/cjs/api/resources/lineItem/client/Client.js +5 -9
- package/dist/cjs/api/resources/management/client/Client.js +1 -1
- package/dist/cjs/api/resources/moneyIn/client/Client.js +19 -43
- package/dist/cjs/api/resources/moneyOut/client/Client.js +12 -20
- package/dist/cjs/api/resources/notification/client/Client.js +5 -5
- package/dist/cjs/api/resources/notificationlogs/client/Client.js +4 -8
- package/dist/cjs/api/resources/ocr/client/Client.js +2 -2
- package/dist/cjs/api/resources/organization/client/Client.js +7 -7
- package/dist/cjs/api/resources/paymentLink/client/Client.js +11 -31
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +7 -11
- package/dist/cjs/api/resources/payoutSubscription/client/Client.js +4 -4
- package/dist/cjs/api/resources/paypoint/client/Client.js +8 -12
- package/dist/cjs/api/resources/query/client/Client.js +42 -210
- package/dist/cjs/api/resources/statistic/client/Client.js +4 -20
- package/dist/cjs/api/resources/subscription/client/Client.js +4 -8
- package/dist/cjs/api/resources/templates/client/Client.js +4 -8
- package/dist/cjs/api/resources/tokenStorage/client/Client.js +4 -16
- package/dist/cjs/api/resources/user/client/Client.js +12 -16
- package/dist/cjs/api/resources/vendor/client/Client.js +5 -5
- package/dist/cjs/api/resources/wallet/client/Client.js +4 -4
- package/dist/cjs/core/auth/AuthProvider.d.ts +0 -1
- package/dist/cjs/core/auth/AuthProvider.js +0 -7
- package/dist/cjs/core/auth/index.d.ts +1 -1
- package/dist/cjs/core/auth/index.js +1 -3
- package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -6
- package/dist/cjs/core/fetcher/Fetcher.js +8 -9
- package/dist/cjs/core/fetcher/requestWithRetries.js +1 -4
- package/dist/cjs/core/url/index.d.ts +0 -1
- package/dist/cjs/core/url/index.js +1 -3
- package/dist/cjs/core/url/qs.d.ts +1 -2
- package/dist/cjs/core/url/qs.js +12 -24
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +0 -3
- package/dist/esm/BaseClient.mjs +2 -17
- package/dist/esm/api/resources/bill/client/Client.mjs +11 -35
- package/dist/esm/api/resources/boarding/client/Client.mjs +13 -25
- package/dist/esm/api/resources/chargeBacks/client/Client.mjs +3 -3
- package/dist/esm/api/resources/checkCapture/client/Client.mjs +1 -1
- package/dist/esm/api/resources/cloud/client/Client.mjs +4 -8
- package/dist/esm/api/resources/customer/client/Client.mjs +6 -10
- package/dist/esm/api/resources/export/client/Client.mjs +29 -145
- package/dist/esm/api/resources/ghostCard/client/Client.mjs +2 -2
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.mjs +3 -3
- package/dist/esm/api/resources/import/client/Client.mjs +3 -7
- package/dist/esm/api/resources/invoice/client/Client.mjs +11 -35
- package/dist/esm/api/resources/lineItem/client/Client.mjs +5 -9
- package/dist/esm/api/resources/management/client/Client.mjs +1 -1
- package/dist/esm/api/resources/moneyIn/client/Client.mjs +19 -43
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +12 -20
- package/dist/esm/api/resources/notification/client/Client.mjs +5 -5
- package/dist/esm/api/resources/notificationlogs/client/Client.mjs +4 -8
- package/dist/esm/api/resources/ocr/client/Client.mjs +2 -2
- package/dist/esm/api/resources/organization/client/Client.mjs +7 -7
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +11 -31
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +7 -11
- package/dist/esm/api/resources/payoutSubscription/client/Client.mjs +4 -4
- package/dist/esm/api/resources/paypoint/client/Client.mjs +8 -12
- package/dist/esm/api/resources/query/client/Client.mjs +42 -210
- package/dist/esm/api/resources/statistic/client/Client.mjs +4 -20
- package/dist/esm/api/resources/subscription/client/Client.mjs +4 -8
- package/dist/esm/api/resources/templates/client/Client.mjs +4 -8
- package/dist/esm/api/resources/tokenStorage/client/Client.mjs +4 -16
- package/dist/esm/api/resources/user/client/Client.mjs +12 -16
- package/dist/esm/api/resources/vendor/client/Client.mjs +5 -5
- package/dist/esm/api/resources/wallet/client/Client.mjs +4 -4
- package/dist/esm/core/auth/AuthProvider.d.mts +0 -1
- package/dist/esm/core/auth/AuthProvider.mjs +1 -6
- package/dist/esm/core/auth/index.d.mts +1 -1
- package/dist/esm/core/auth/index.mjs +0 -1
- package/dist/esm/core/fetcher/Fetcher.d.mts +0 -6
- package/dist/esm/core/fetcher/Fetcher.mjs +8 -9
- package/dist/esm/core/fetcher/requestWithRetries.mjs +1 -4
- package/dist/esm/core/url/index.d.mts +0 -1
- package/dist/esm/core/url/index.mjs +0 -1
- package/dist/esm/core/url/qs.d.mts +1 -2
- package/dist/esm/core/url/qs.mjs +12 -24
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/core/url/QueryStringBuilder.d.ts +0 -47
- package/dist/cjs/core/url/QueryStringBuilder.js +0 -83
- package/dist/esm/core/url/QueryStringBuilder.d.mts +0 -47
- package/dist/esm/core/url/QueryStringBuilder.mjs +0 -80
|
@@ -82,11 +82,7 @@ export class StatisticClient {
|
|
|
82
82
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Statistic/basic/${core.url.encodePathParam(mode)}/${core.url.encodePathParam(freq)}/${core.url.encodePathParam(level)}/${core.url.encodePathParam(entryId)}`),
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: _headers,
|
|
85
|
-
|
|
86
|
-
.queryBuilder()
|
|
87
|
-
.addMany(_queryParams)
|
|
88
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
89
|
-
.build(),
|
|
85
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
90
86
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
91
87
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
92
88
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -172,11 +168,7 @@ export class StatisticClient {
|
|
|
172
168
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Statistic/customerbasic/${core.url.encodePathParam(mode)}/${core.url.encodePathParam(freq)}/${core.url.encodePathParam(customerId)}`),
|
|
173
169
|
method: "GET",
|
|
174
170
|
headers: _headers,
|
|
175
|
-
|
|
176
|
-
.queryBuilder()
|
|
177
|
-
.addMany(_queryParams)
|
|
178
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
179
|
-
.build(),
|
|
171
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
180
172
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
181
173
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
182
174
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -251,11 +243,7 @@ export class StatisticClient {
|
|
|
251
243
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Statistic/subscriptions/${core.url.encodePathParam(interval)}/${core.url.encodePathParam(level)}/${core.url.encodePathParam(entryId)}`),
|
|
252
244
|
method: "GET",
|
|
253
245
|
headers: _headers,
|
|
254
|
-
|
|
255
|
-
.queryBuilder()
|
|
256
|
-
.addMany(_queryParams)
|
|
257
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
258
|
-
.build(),
|
|
246
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
259
247
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
260
248
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
261
249
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -333,11 +321,7 @@ export class StatisticClient {
|
|
|
333
321
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Statistic/vendorbasic/${core.url.encodePathParam(mode)}/${core.url.encodePathParam(freq)}/${core.url.encodePathParam(idVendor)}`),
|
|
334
322
|
method: "GET",
|
|
335
323
|
headers: _headers,
|
|
336
|
-
|
|
337
|
-
.queryBuilder()
|
|
338
|
-
.addMany(_queryParams)
|
|
339
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
340
|
-
.build(),
|
|
324
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
341
325
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
342
326
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
343
327
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -45,7 +45,7 @@ export class SubscriptionClient {
|
|
|
45
45
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Subscription/${core.url.encodePathParam(subId)}`),
|
|
46
46
|
method: "GET",
|
|
47
47
|
headers: _headers,
|
|
48
|
-
|
|
48
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
49
49
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
50
50
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
51
51
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -187,11 +187,7 @@ export class SubscriptionClient {
|
|
|
187
187
|
method: "POST",
|
|
188
188
|
headers: _headers,
|
|
189
189
|
contentType: "application/json",
|
|
190
|
-
|
|
191
|
-
.queryBuilder()
|
|
192
|
-
.addMany(_queryParams)
|
|
193
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
194
|
-
.build(),
|
|
190
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
195
191
|
requestType: "json",
|
|
196
192
|
body: _body,
|
|
197
193
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -250,7 +246,7 @@ export class SubscriptionClient {
|
|
|
250
246
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Subscription/${core.url.encodePathParam(subId)}`),
|
|
251
247
|
method: "DELETE",
|
|
252
248
|
headers: _headers,
|
|
253
|
-
|
|
249
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
254
250
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
255
251
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
256
252
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -325,7 +321,7 @@ export class SubscriptionClient {
|
|
|
325
321
|
method: "PUT",
|
|
326
322
|
headers: _headers,
|
|
327
323
|
contentType: "application/json",
|
|
328
|
-
|
|
324
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
329
325
|
requestType: "json",
|
|
330
326
|
body: request,
|
|
331
327
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -46,7 +46,7 @@ export class TemplatesClient {
|
|
|
46
46
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Templates/${core.url.encodePathParam(templateId)}`),
|
|
47
47
|
method: "DELETE",
|
|
48
48
|
headers: _headers,
|
|
49
|
-
|
|
49
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
50
50
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
51
51
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
52
52
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -104,7 +104,7 @@ export class TemplatesClient {
|
|
|
104
104
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Templates/getlink/${core.url.encodePathParam(templateId)}/${core.url.encodePathParam(ignoreEmpty)}`),
|
|
105
105
|
method: "GET",
|
|
106
106
|
headers: _headers,
|
|
107
|
-
|
|
107
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
108
108
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
109
109
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
110
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -161,7 +161,7 @@ export class TemplatesClient {
|
|
|
161
161
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Templates/get/${core.url.encodePathParam(templateId)}`),
|
|
162
162
|
method: "GET",
|
|
163
163
|
headers: _headers,
|
|
164
|
-
|
|
164
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
165
165
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
166
166
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
167
167
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -225,11 +225,7 @@ export class TemplatesClient {
|
|
|
225
225
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Query/templates/${core.url.encodePathParam(orgId)}`),
|
|
226
226
|
method: "GET",
|
|
227
227
|
headers: _headers,
|
|
228
|
-
|
|
229
|
-
.queryBuilder()
|
|
230
|
-
.addMany(_queryParams)
|
|
231
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
232
|
-
.build(),
|
|
228
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
233
229
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
234
230
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
235
231
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -145,11 +145,7 @@ export class TokenStorageClient {
|
|
|
145
145
|
method: "POST",
|
|
146
146
|
headers: _headers,
|
|
147
147
|
contentType: "application/json",
|
|
148
|
-
|
|
149
|
-
.queryBuilder()
|
|
150
|
-
.addMany(_queryParams)
|
|
151
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
152
|
-
.build(),
|
|
148
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
153
149
|
requestType: "json",
|
|
154
150
|
body: _body,
|
|
155
151
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -223,11 +219,7 @@ export class TokenStorageClient {
|
|
|
223
219
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `TokenStorage/${core.url.encodePathParam(methodId)}`),
|
|
224
220
|
method: "GET",
|
|
225
221
|
headers: _headers,
|
|
226
|
-
|
|
227
|
-
.queryBuilder()
|
|
228
|
-
.addMany(_queryParams)
|
|
229
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
230
|
-
.build(),
|
|
222
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
231
223
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
232
224
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
233
225
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -284,7 +276,7 @@ export class TokenStorageClient {
|
|
|
284
276
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `TokenStorage/${core.url.encodePathParam(methodId)}`),
|
|
285
277
|
method: "DELETE",
|
|
286
278
|
headers: _headers,
|
|
287
|
-
|
|
279
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
288
280
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
289
281
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
290
282
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -402,11 +394,7 @@ export class TokenStorageClient {
|
|
|
402
394
|
method: "PUT",
|
|
403
395
|
headers: _headers,
|
|
404
396
|
contentType: "application/json",
|
|
405
|
-
|
|
406
|
-
.queryBuilder()
|
|
407
|
-
.addMany(_queryParams)
|
|
408
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
409
|
-
.build(),
|
|
397
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
410
398
|
requestType: "json",
|
|
411
399
|
body: _body,
|
|
412
400
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -46,7 +46,7 @@ export class UserClient {
|
|
|
46
46
|
method: "POST",
|
|
47
47
|
headers: _headers,
|
|
48
48
|
contentType: "application/json",
|
|
49
|
-
|
|
49
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
50
50
|
requestType: "json",
|
|
51
51
|
body: request,
|
|
52
52
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -104,7 +104,7 @@ export class UserClient {
|
|
|
104
104
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "User/authrefresh"),
|
|
105
105
|
method: "POST",
|
|
106
106
|
headers: _headers,
|
|
107
|
-
|
|
107
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
108
108
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
109
109
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
110
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -162,7 +162,7 @@ export class UserClient {
|
|
|
162
162
|
method: "POST",
|
|
163
163
|
headers: _headers,
|
|
164
164
|
contentType: "application/json",
|
|
165
|
-
|
|
165
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
166
166
|
requestType: "json",
|
|
167
167
|
body: request,
|
|
168
168
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -223,7 +223,7 @@ export class UserClient {
|
|
|
223
223
|
method: "POST",
|
|
224
224
|
headers: _headers,
|
|
225
225
|
contentType: "application/json",
|
|
226
|
-
|
|
226
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
227
227
|
requestType: "json",
|
|
228
228
|
body: request,
|
|
229
229
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -283,7 +283,7 @@ export class UserClient {
|
|
|
283
283
|
method: "PUT",
|
|
284
284
|
headers: _headers,
|
|
285
285
|
contentType: "application/json",
|
|
286
|
-
|
|
286
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
287
287
|
requestType: "json",
|
|
288
288
|
body: request,
|
|
289
289
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -342,7 +342,7 @@ export class UserClient {
|
|
|
342
342
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `User/${core.url.encodePathParam(userId)}`),
|
|
343
343
|
method: "DELETE",
|
|
344
344
|
headers: _headers,
|
|
345
|
-
|
|
345
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
346
346
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
347
347
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
348
348
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -401,7 +401,7 @@ export class UserClient {
|
|
|
401
401
|
method: "PUT",
|
|
402
402
|
headers: _headers,
|
|
403
403
|
contentType: "application/json",
|
|
404
|
-
|
|
404
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
405
405
|
requestType: "json",
|
|
406
406
|
body: request,
|
|
407
407
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -462,7 +462,7 @@ export class UserClient {
|
|
|
462
462
|
method: "PUT",
|
|
463
463
|
headers: _headers,
|
|
464
464
|
contentType: "application/json",
|
|
465
|
-
|
|
465
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
466
466
|
requestType: "json",
|
|
467
467
|
body: request,
|
|
468
468
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -529,11 +529,7 @@ export class UserClient {
|
|
|
529
529
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `User/${core.url.encodePathParam(userId)}`),
|
|
530
530
|
method: "GET",
|
|
531
531
|
headers: _headers,
|
|
532
|
-
|
|
533
|
-
.queryBuilder()
|
|
534
|
-
.addMany(_queryParams)
|
|
535
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
536
|
-
.build(),
|
|
532
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
537
533
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
538
534
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
539
535
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -589,7 +585,7 @@ export class UserClient {
|
|
|
589
585
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "User/authlogout"),
|
|
590
586
|
method: "GET",
|
|
591
587
|
headers: _headers,
|
|
592
|
-
|
|
588
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
593
589
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
594
590
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
595
591
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -648,7 +644,7 @@ export class UserClient {
|
|
|
648
644
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `User/resendmfa/${core.url.encodePathParam(usrname)}/${core.url.encodePathParam(Entry)}/${core.url.encodePathParam(EntryType)}`),
|
|
649
645
|
method: "POST",
|
|
650
646
|
headers: _headers,
|
|
651
|
-
|
|
647
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
652
648
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
653
649
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
654
650
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -701,7 +697,7 @@ export class UserClient {
|
|
|
701
697
|
method: "POST",
|
|
702
698
|
headers: _headers,
|
|
703
699
|
contentType: "application/json",
|
|
704
|
-
|
|
700
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
705
701
|
requestType: "json",
|
|
706
702
|
body: request,
|
|
707
703
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -90,7 +90,7 @@ export class VendorClient {
|
|
|
90
90
|
method: "POST",
|
|
91
91
|
headers: _headers,
|
|
92
92
|
contentType: "application/json",
|
|
93
|
-
|
|
93
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
94
94
|
requestType: "json",
|
|
95
95
|
body: request,
|
|
96
96
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -149,7 +149,7 @@ export class VendorClient {
|
|
|
149
149
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Vendor/${core.url.encodePathParam(idVendor)}`),
|
|
150
150
|
method: "DELETE",
|
|
151
151
|
headers: _headers,
|
|
152
|
-
|
|
152
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
153
153
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
154
154
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
155
155
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -210,7 +210,7 @@ export class VendorClient {
|
|
|
210
210
|
method: "PUT",
|
|
211
211
|
headers: _headers,
|
|
212
212
|
contentType: "application/json",
|
|
213
|
-
|
|
213
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
214
214
|
requestType: "json",
|
|
215
215
|
body: request,
|
|
216
216
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -264,7 +264,7 @@ export class VendorClient {
|
|
|
264
264
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `Vendor/${core.url.encodePathParam(idVendor)}`),
|
|
265
265
|
method: "GET",
|
|
266
266
|
headers: _headers,
|
|
267
|
-
|
|
267
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
268
268
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
269
269
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
270
270
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -338,7 +338,7 @@ export class VendorClient {
|
|
|
338
338
|
method: "POST",
|
|
339
339
|
headers: _headers,
|
|
340
340
|
contentType: "application/json",
|
|
341
|
-
|
|
341
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
342
342
|
requestType: "json",
|
|
343
343
|
body: request,
|
|
344
344
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -50,7 +50,7 @@ export class WalletClient {
|
|
|
50
50
|
method: "POST",
|
|
51
51
|
headers: _headers,
|
|
52
52
|
contentType: "application/json",
|
|
53
|
-
|
|
53
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
54
54
|
requestType: "json",
|
|
55
55
|
body: request,
|
|
56
56
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -116,7 +116,7 @@ export class WalletClient {
|
|
|
116
116
|
method: "POST",
|
|
117
117
|
headers: _headers,
|
|
118
118
|
contentType: "application/json",
|
|
119
|
-
|
|
119
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
120
120
|
requestType: "json",
|
|
121
121
|
body: request,
|
|
122
122
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -183,7 +183,7 @@ export class WalletClient {
|
|
|
183
183
|
method: "POST",
|
|
184
184
|
headers: _headers,
|
|
185
185
|
contentType: "application/json",
|
|
186
|
-
|
|
186
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
187
187
|
requestType: "json",
|
|
188
188
|
body: request,
|
|
189
189
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -244,7 +244,7 @@ export class WalletClient {
|
|
|
244
244
|
method: "POST",
|
|
245
245
|
headers: _headers,
|
|
246
246
|
contentType: "application/json",
|
|
247
|
-
|
|
247
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
248
248
|
requestType: "json",
|
|
249
249
|
body: request,
|
|
250
250
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { AuthProvider } from "./AuthProvider.mjs";
|
|
2
2
|
export type { AuthRequest } from "./AuthRequest.mjs";
|
|
3
3
|
export { BasicAuth } from "./BasicAuth.mjs";
|
|
4
4
|
export { BearerToken } from "./BearerToken.mjs";
|
|
@@ -8,13 +8,7 @@ export declare namespace Fetcher {
|
|
|
8
8
|
method: string;
|
|
9
9
|
contentType?: string;
|
|
10
10
|
headers?: Record<string, unknown>;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Prefer `queryString` (produced by `core.url.queryBuilder()`).
|
|
13
|
-
* Retained for backwards compatibility with custom fetchers and callers that
|
|
14
|
-
* still construct request args with a query-parameter object.
|
|
15
|
-
*/
|
|
16
11
|
queryParameters?: Record<string, unknown>;
|
|
17
|
-
queryString?: string;
|
|
18
12
|
body?: unknown;
|
|
19
13
|
timeoutMs?: number;
|
|
20
14
|
maxRetries?: number;
|
|
@@ -71,11 +71,16 @@ const SENSITIVE_QUERY_PARAMS = new Set([
|
|
|
71
71
|
]);
|
|
72
72
|
function redactQueryParameters(queryParameters) {
|
|
73
73
|
if (queryParameters == null) {
|
|
74
|
-
return
|
|
74
|
+
return queryParameters;
|
|
75
75
|
}
|
|
76
76
|
const redacted = {};
|
|
77
77
|
for (const [key, value] of Object.entries(queryParameters)) {
|
|
78
|
-
|
|
78
|
+
if (SENSITIVE_QUERY_PARAMS.has(key.toLowerCase())) {
|
|
79
|
+
redacted[key] = "[REDACTED]";
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
redacted[key] = value;
|
|
83
|
+
}
|
|
79
84
|
}
|
|
80
85
|
return redacted;
|
|
81
86
|
}
|
|
@@ -177,13 +182,7 @@ function getHeaders(args) {
|
|
|
177
182
|
export function fetcherImpl(args) {
|
|
178
183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
184
|
var _a, _b, _c;
|
|
180
|
-
|
|
181
|
-
if (args.queryString != null && args.queryString.length > 0) {
|
|
182
|
-
url = `${url}?${args.queryString}`;
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
url = createRequestUrl(args.url, args.queryParameters);
|
|
186
|
-
}
|
|
185
|
+
const url = createRequestUrl(args.url, args.queryParameters);
|
|
187
186
|
const requestBody = yield getRequestBody({
|
|
188
187
|
body: args.body,
|
|
189
188
|
type: (_a = args.requestType) !== null && _a !== void 0 ? _a : "other",
|
|
@@ -11,9 +11,6 @@ const INITIAL_RETRY_DELAY = 1000; // in milliseconds
|
|
|
11
11
|
const MAX_RETRY_DELAY = 60000; // in milliseconds
|
|
12
12
|
const DEFAULT_MAX_RETRIES = 2;
|
|
13
13
|
const JITTER_FACTOR = 0.2; // 20% random jitter
|
|
14
|
-
function isRetryableStatusCode(statusCode) {
|
|
15
|
-
return [408, 429].includes(statusCode) || statusCode >= 500;
|
|
16
|
-
}
|
|
17
14
|
function addPositiveJitter(delay) {
|
|
18
15
|
const jitterMultiplier = 1 + Math.random() * JITTER_FACTOR;
|
|
19
16
|
return delay * jitterMultiplier;
|
|
@@ -53,7 +50,7 @@ export function requestWithRetries(requestFn_1) {
|
|
|
53
50
|
return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
54
51
|
let response = yield requestFn();
|
|
55
52
|
for (let i = 0; i < maxRetries; ++i) {
|
|
56
|
-
if (
|
|
53
|
+
if ([408, 429].includes(response.status) || response.status >= 500) {
|
|
57
54
|
const delay = getRetryDelayFromHeaders(response, i);
|
|
58
55
|
yield new Promise((resolve) => setTimeout(resolve, delay));
|
|
59
56
|
response = yield requestFn();
|
package/dist/esm/core/url/qs.mjs
CHANGED
|
@@ -23,31 +23,19 @@ function stringifyObject(obj, prefix = "", options) {
|
|
|
23
23
|
if (value.length === 0) {
|
|
24
24
|
continue;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.filter((item) => item !== undefined && item !== null)
|
|
31
|
-
.map((item) => encodeValue(item, options.encode));
|
|
32
|
-
if (encodedValues.length > 0) {
|
|
33
|
-
parts.push(`${encodedKey}=${encodedValues.join(",")}`);
|
|
26
|
+
for (let i = 0; i < value.length; i++) {
|
|
27
|
+
const item = value[i];
|
|
28
|
+
if (item === undefined) {
|
|
29
|
+
continue;
|
|
34
30
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const arrayKey = effectiveFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
44
|
-
parts.push(...stringifyObject(item, arrayKey, options));
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
const arrayKey = effectiveFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
48
|
-
const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey;
|
|
49
|
-
parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`);
|
|
50
|
-
}
|
|
31
|
+
if (typeof item === "object" && !Array.isArray(item) && item !== null) {
|
|
32
|
+
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
33
|
+
parts.push(...stringifyObject(item, arrayKey, options));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const arrayKey = options.arrayFormat === "indices" ? `${fullKey}[${i}]` : fullKey;
|
|
37
|
+
const encodedKey = options.encode ? encodeURIComponent(arrayKey) : arrayKey;
|
|
38
|
+
parts.push(`${encodedKey}=${encodeValue(item, options.encode)}`);
|
|
51
39
|
}
|
|
52
40
|
}
|
|
53
41
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.146";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.146";
|