@emilgroup/webhook-sdk-node 1.6.1-beta.12 → 1.6.1-beta.15
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 -2
- package/api/health-checks-api.ts +7 -4
- package/api/inbound-webhooks-api.ts +35 -20
- package/api/trigger-inbound-webhooks-api.ts +7 -4
- package/api/webhook-requests-api.ts +7 -4
- package/base.ts +4 -0
- package/dist/api/health-checks-api.js +12 -8
- package/dist/api/inbound-webhooks-api.js +58 -39
- package/dist/api/trigger-inbound-webhooks-api.js +12 -8
- package/dist/api/webhook-requests-api.js +10 -7
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/webhook-sdk-node@1.6.1-beta.
|
|
20
|
+
npm install @emilgroup/webhook-sdk-node@1.6.1-beta.15 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/webhook-sdk-node@1.6.1-beta.
|
|
24
|
+
yarn add @emilgroup/webhook-sdk-node@1.6.1-beta.15
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/health-checks-api.ts
CHANGED
|
@@ -60,9 +60,12 @@ export const HealthChecksApiAxiosParamCreator = function (configuration?: Config
|
|
|
60
60
|
// http bearer authentication required
|
|
61
61
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
62
|
|
|
63
|
-
// Only Authorization falls back to the configured token
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
64
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
65
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
66
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
67
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
68
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
66
69
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
67
70
|
}
|
|
68
71
|
|
|
@@ -151,6 +154,6 @@ export class HealthChecksApi extends BaseAPI {
|
|
|
151
154
|
* @memberof HealthChecksApi
|
|
152
155
|
*/
|
|
153
156
|
public check(requestParameters: HealthChecksApiCheckRequest = {}, options?: AxiosRequestConfig) {
|
|
154
|
-
return HealthChecksApiFp(this.configuration).check(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
157
|
+
return HealthChecksApiFp(this.configuration).check(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
155
158
|
}
|
|
156
159
|
}
|
|
@@ -71,9 +71,12 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
// Only Authorization falls back to the configured token
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
75
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
76
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
77
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
79
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
77
80
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
81
|
}
|
|
79
82
|
|
|
@@ -121,9 +124,12 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
121
124
|
// http bearer authentication required
|
|
122
125
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
126
|
|
|
124
|
-
// Only Authorization falls back to the configured token
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
128
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
130
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
132
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
127
133
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
134
|
}
|
|
129
135
|
|
|
@@ -168,9 +174,12 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
168
174
|
// http bearer authentication required
|
|
169
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
176
|
|
|
171
|
-
// Only Authorization falls back to the configured token
|
|
172
|
-
|
|
173
|
-
|
|
177
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
178
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
179
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
180
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
182
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
174
183
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
175
184
|
}
|
|
176
185
|
|
|
@@ -246,9 +255,12 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
246
255
|
localVarQueryParameter['filters'] = filters;
|
|
247
256
|
}
|
|
248
257
|
|
|
249
|
-
// Only Authorization falls back to the configured token
|
|
250
|
-
|
|
251
|
-
|
|
258
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
259
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
260
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
261
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
262
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
263
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
252
264
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
253
265
|
}
|
|
254
266
|
|
|
@@ -296,9 +308,12 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
|
|
|
296
308
|
// http bearer authentication required
|
|
297
309
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
298
310
|
|
|
299
|
-
// Only Authorization falls back to the configured token
|
|
300
|
-
|
|
301
|
-
|
|
311
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
312
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
313
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
314
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
315
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
316
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
302
317
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
303
318
|
}
|
|
304
319
|
|
|
@@ -638,7 +653,7 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
638
653
|
* @memberof InboundWebhooksApi
|
|
639
654
|
*/
|
|
640
655
|
public createInboundWebhook(requestParameters: InboundWebhooksApiCreateInboundWebhookRequest, options?: AxiosRequestConfig) {
|
|
641
|
-
return InboundWebhooksApiFp(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
656
|
+
return InboundWebhooksApiFp(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
642
657
|
}
|
|
643
658
|
|
|
644
659
|
/**
|
|
@@ -650,7 +665,7 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
650
665
|
* @memberof InboundWebhooksApi
|
|
651
666
|
*/
|
|
652
667
|
public deleteInboundWebhook(requestParameters: InboundWebhooksApiDeleteInboundWebhookRequest, options?: AxiosRequestConfig) {
|
|
653
|
-
return InboundWebhooksApiFp(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
+
return InboundWebhooksApiFp(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
654
669
|
}
|
|
655
670
|
|
|
656
671
|
/**
|
|
@@ -662,7 +677,7 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
662
677
|
* @memberof InboundWebhooksApi
|
|
663
678
|
*/
|
|
664
679
|
public getInboundWebhook(requestParameters: InboundWebhooksApiGetInboundWebhookRequest, options?: AxiosRequestConfig) {
|
|
665
|
-
return InboundWebhooksApiFp(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
680
|
+
return InboundWebhooksApiFp(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
666
681
|
}
|
|
667
682
|
|
|
668
683
|
/**
|
|
@@ -674,7 +689,7 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
674
689
|
* @memberof InboundWebhooksApi
|
|
675
690
|
*/
|
|
676
691
|
public listInboundWebhooks(requestParameters: InboundWebhooksApiListInboundWebhooksRequest = {}, options?: AxiosRequestConfig) {
|
|
677
|
-
return InboundWebhooksApiFp(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
692
|
+
return InboundWebhooksApiFp(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
678
693
|
}
|
|
679
694
|
|
|
680
695
|
/**
|
|
@@ -686,6 +701,6 @@ export class InboundWebhooksApi extends BaseAPI {
|
|
|
686
701
|
* @memberof InboundWebhooksApi
|
|
687
702
|
*/
|
|
688
703
|
public updateInboundWebhook(requestParameters: InboundWebhooksApiUpdateInboundWebhookRequest, options?: AxiosRequestConfig) {
|
|
689
|
-
return InboundWebhooksApiFp(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
return InboundWebhooksApiFp(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
690
705
|
}
|
|
691
706
|
}
|
|
@@ -64,9 +64,12 @@ export const TriggerInboundWebhooksApiAxiosParamCreator = function (configuratio
|
|
|
64
64
|
// http bearer authentication required
|
|
65
65
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
66
|
|
|
67
|
-
// Only Authorization falls back to the configured token
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
68
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
69
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
70
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
71
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
72
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
70
73
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
71
74
|
}
|
|
72
75
|
|
|
@@ -164,6 +167,6 @@ export class TriggerInboundWebhooksApi extends BaseAPI {
|
|
|
164
167
|
* @memberof TriggerInboundWebhooksApi
|
|
165
168
|
*/
|
|
166
169
|
public triggerIncomingWebhook(requestParameters: TriggerInboundWebhooksApiTriggerIncomingWebhookRequest, options?: AxiosRequestConfig) {
|
|
167
|
-
return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
170
|
+
return TriggerInboundWebhooksApiFp(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
168
171
|
}
|
|
169
172
|
}
|
|
@@ -93,9 +93,12 @@ export const WebhookRequestsApiAxiosParamCreator = function (configuration?: Con
|
|
|
93
93
|
localVarQueryParameter['filters'] = filters;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
// Only Authorization falls back to the configured token
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
97
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
98
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
99
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
100
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
101
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
99
102
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
100
103
|
}
|
|
101
104
|
|
|
@@ -247,6 +250,6 @@ export class WebhookRequestsApi extends BaseAPI {
|
|
|
247
250
|
* @memberof WebhookRequestsApi
|
|
248
251
|
*/
|
|
249
252
|
public listWebhookRequests(requestParameters: WebhookRequestsApiListWebhookRequestsRequest = {}, options?: AxiosRequestConfig) {
|
|
250
|
-
return WebhookRequestsApiFp(this.configuration).listWebhookRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
253
|
+
return WebhookRequestsApiFp(this.configuration).listWebhookRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
251
254
|
}
|
|
252
255
|
}
|
package/base.ts
CHANGED
|
@@ -92,6 +92,10 @@ export class BaseAPI {
|
|
|
92
92
|
private username?: string;
|
|
93
93
|
private password?: string;
|
|
94
94
|
|
|
95
|
+
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig {
|
|
96
|
+
return { ...options };
|
|
97
|
+
}
|
|
98
|
+
|
|
95
99
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
96
100
|
if (configuration) {
|
|
97
101
|
this.configuration = configuration;
|
|
@@ -106,9 +106,10 @@ var HealthChecksApiAxiosParamCreator = function (configuration) {
|
|
|
106
106
|
check: function (authorization, options) {
|
|
107
107
|
if (options === void 0) { options = {}; }
|
|
108
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
110
|
+
var _a;
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
switch (_b.label) {
|
|
112
113
|
case 0:
|
|
113
114
|
localVarPath = "/webhookservice/health";
|
|
114
115
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -122,14 +123,17 @@ var HealthChecksApiAxiosParamCreator = function (configuration) {
|
|
|
122
123
|
// authentication bearer required
|
|
123
124
|
// http bearer authentication required
|
|
124
125
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token
|
|
126
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
127
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
126
128
|
];
|
|
127
129
|
case 1:
|
|
128
130
|
// authentication bearer required
|
|
129
131
|
// http bearer authentication required
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
_b.sent();
|
|
133
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
134
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
136
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
133
137
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
138
|
}
|
|
135
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -218,7 +222,7 @@ var HealthChecksApi = /** @class */ (function (_super) {
|
|
|
218
222
|
HealthChecksApi.prototype.check = function (requestParameters, options) {
|
|
219
223
|
var _this = this;
|
|
220
224
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
221
|
-
return (0, exports.HealthChecksApiFp)(this.configuration).check(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
225
|
+
return (0, exports.HealthChecksApiFp)(this.configuration).check(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
222
226
|
};
|
|
223
227
|
return HealthChecksApi;
|
|
224
228
|
}(base_1.BaseAPI));
|
|
@@ -107,9 +107,10 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createInboundWebhook: function (createInboundWebhookRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createInboundWebhookRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createInboundWebhook', 'createInboundWebhookRequestDto', createInboundWebhookRequestDto);
|
|
@@ -125,14 +126,17 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
deleteInboundWebhook: function (code, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'code' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('deleteInboundWebhook', 'code', code);
|
|
@@ -178,14 +183,17 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -210,9 +218,10 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
210
218
|
getInboundWebhook: function (code, authorization, options) {
|
|
211
219
|
if (options === void 0) { options = {}; }
|
|
212
220
|
return __awaiter(_this, void 0, void 0, function () {
|
|
213
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
214
|
-
|
|
215
|
-
|
|
221
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
222
|
+
var _a;
|
|
223
|
+
return __generator(this, function (_b) {
|
|
224
|
+
switch (_b.label) {
|
|
216
225
|
case 0:
|
|
217
226
|
// verify required parameter 'code' is not null or undefined
|
|
218
227
|
(0, common_1.assertParamExists)('getInboundWebhook', 'code', code);
|
|
@@ -229,14 +238,17 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
229
238
|
// authentication bearer required
|
|
230
239
|
// http bearer authentication required
|
|
231
240
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
232
|
-
// Only Authorization falls back to the configured token
|
|
241
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
242
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
233
243
|
];
|
|
234
244
|
case 1:
|
|
235
245
|
// authentication bearer required
|
|
236
246
|
// http bearer authentication required
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
_b.sent();
|
|
248
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
249
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
250
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
251
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
240
252
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
241
253
|
}
|
|
242
254
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -267,9 +279,10 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
267
279
|
listInboundWebhooks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
268
280
|
if (options === void 0) { options = {}; }
|
|
269
281
|
return __awaiter(_this, void 0, void 0, function () {
|
|
270
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
271
|
-
|
|
272
|
-
|
|
282
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
283
|
+
var _a;
|
|
284
|
+
return __generator(this, function (_b) {
|
|
285
|
+
switch (_b.label) {
|
|
273
286
|
case 0:
|
|
274
287
|
localVarPath = "/webhookservice/v1/inbound-webhooks";
|
|
275
288
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -286,7 +299,7 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
286
299
|
case 1:
|
|
287
300
|
// authentication bearer required
|
|
288
301
|
// http bearer authentication required
|
|
289
|
-
|
|
302
|
+
_b.sent();
|
|
290
303
|
if (pageSize !== undefined) {
|
|
291
304
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
292
305
|
}
|
|
@@ -308,8 +321,10 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
308
321
|
if (filters !== undefined) {
|
|
309
322
|
localVarQueryParameter['filters'] = filters;
|
|
310
323
|
}
|
|
311
|
-
|
|
312
|
-
|
|
324
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
325
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
326
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
327
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
313
328
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
314
329
|
}
|
|
315
330
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -335,9 +350,10 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
335
350
|
updateInboundWebhook: function (code, updateInboundWebhookRequestDto, authorization, options) {
|
|
336
351
|
if (options === void 0) { options = {}; }
|
|
337
352
|
return __awaiter(_this, void 0, void 0, function () {
|
|
338
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
339
|
-
|
|
340
|
-
|
|
353
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
354
|
+
var _a;
|
|
355
|
+
return __generator(this, function (_b) {
|
|
356
|
+
switch (_b.label) {
|
|
341
357
|
case 0:
|
|
342
358
|
// verify required parameter 'code' is not null or undefined
|
|
343
359
|
(0, common_1.assertParamExists)('updateInboundWebhook', 'code', code);
|
|
@@ -356,14 +372,17 @@ var InboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
356
372
|
// authentication bearer required
|
|
357
373
|
// http bearer authentication required
|
|
358
374
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
359
|
-
// Only Authorization falls back to the configured token
|
|
375
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
376
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
360
377
|
];
|
|
361
378
|
case 1:
|
|
362
379
|
// authentication bearer required
|
|
363
380
|
// http bearer authentication required
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
381
|
+
_b.sent();
|
|
382
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
383
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
384
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
385
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
367
386
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
368
387
|
}
|
|
369
388
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -597,7 +616,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
597
616
|
*/
|
|
598
617
|
InboundWebhooksApi.prototype.createInboundWebhook = function (requestParameters, options) {
|
|
599
618
|
var _this = this;
|
|
600
|
-
return (0, exports.InboundWebhooksApiFp)(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
619
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).createInboundWebhook(requestParameters.createInboundWebhookRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
601
620
|
};
|
|
602
621
|
/**
|
|
603
622
|
* Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
|
|
@@ -609,7 +628,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
609
628
|
*/
|
|
610
629
|
InboundWebhooksApi.prototype.deleteInboundWebhook = function (requestParameters, options) {
|
|
611
630
|
var _this = this;
|
|
612
|
-
return (0, exports.InboundWebhooksApiFp)(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
631
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
632
|
};
|
|
614
633
|
/**
|
|
615
634
|
* Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
|
|
@@ -621,7 +640,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
621
640
|
*/
|
|
622
641
|
InboundWebhooksApi.prototype.getInboundWebhook = function (requestParameters, options) {
|
|
623
642
|
var _this = this;
|
|
624
|
-
return (0, exports.InboundWebhooksApiFp)(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
643
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
644
|
};
|
|
626
645
|
/**
|
|
627
646
|
* Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
|
|
@@ -634,7 +653,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
634
653
|
InboundWebhooksApi.prototype.listInboundWebhooks = function (requestParameters, options) {
|
|
635
654
|
var _this = this;
|
|
636
655
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
637
|
-
return (0, exports.InboundWebhooksApiFp)(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
656
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
638
657
|
};
|
|
639
658
|
/**
|
|
640
659
|
* Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
|
|
@@ -646,7 +665,7 @@ var InboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
646
665
|
*/
|
|
647
666
|
InboundWebhooksApi.prototype.updateInboundWebhook = function (requestParameters, options) {
|
|
648
667
|
var _this = this;
|
|
649
|
-
return (0, exports.InboundWebhooksApiFp)(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
668
|
+
return (0, exports.InboundWebhooksApiFp)(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
650
669
|
};
|
|
651
670
|
return InboundWebhooksApi;
|
|
652
671
|
}(base_1.BaseAPI));
|
|
@@ -107,9 +107,10 @@ var TriggerInboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
triggerIncomingWebhook: function (code, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'code' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('triggerIncomingWebhook', 'code', code);
|
|
@@ -126,14 +127,17 @@ var TriggerInboundWebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
126
127
|
// authentication bearer required
|
|
127
128
|
// http bearer authentication required
|
|
128
129
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
-
// Only Authorization falls back to the configured token
|
|
130
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
131
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
130
132
|
];
|
|
131
133
|
case 1:
|
|
132
134
|
// authentication bearer required
|
|
133
135
|
// http bearer authentication required
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
_b.sent();
|
|
137
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
138
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
140
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
137
141
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
138
142
|
}
|
|
139
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -223,7 +227,7 @@ var TriggerInboundWebhooksApi = /** @class */ (function (_super) {
|
|
|
223
227
|
*/
|
|
224
228
|
TriggerInboundWebhooksApi.prototype.triggerIncomingWebhook = function (requestParameters, options) {
|
|
225
229
|
var _this = this;
|
|
226
|
-
return (0, exports.TriggerInboundWebhooksApiFp)(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
230
|
+
return (0, exports.TriggerInboundWebhooksApiFp)(this.configuration).triggerIncomingWebhook(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
227
231
|
};
|
|
228
232
|
return TriggerInboundWebhooksApi;
|
|
229
233
|
}(base_1.BaseAPI));
|
|
@@ -113,9 +113,10 @@ var WebhookRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
113
113
|
listWebhookRequests: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
114
114
|
if (options === void 0) { options = {}; }
|
|
115
115
|
return __awaiter(_this, void 0, void 0, function () {
|
|
116
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
117
|
+
var _a;
|
|
118
|
+
return __generator(this, function (_b) {
|
|
119
|
+
switch (_b.label) {
|
|
119
120
|
case 0:
|
|
120
121
|
localVarPath = "/webhookservice/v1/webhook-requests";
|
|
121
122
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -132,7 +133,7 @@ var WebhookRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
132
133
|
case 1:
|
|
133
134
|
// authentication bearer required
|
|
134
135
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
+
_b.sent();
|
|
136
137
|
if (pageSize !== undefined) {
|
|
137
138
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
138
139
|
}
|
|
@@ -154,8 +155,10 @@ var WebhookRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
154
155
|
if (filters !== undefined) {
|
|
155
156
|
localVarQueryParameter['filters'] = filters;
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
159
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
160
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
161
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
159
162
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
160
163
|
}
|
|
161
164
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -258,7 +261,7 @@ var WebhookRequestsApi = /** @class */ (function (_super) {
|
|
|
258
261
|
WebhookRequestsApi.prototype.listWebhookRequests = function (requestParameters, options) {
|
|
259
262
|
var _this = this;
|
|
260
263
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
261
|
-
return (0, exports.WebhookRequestsApiFp)(this.configuration).listWebhookRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
264
|
+
return (0, exports.WebhookRequestsApiFp)(this.configuration).listWebhookRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
262
265
|
};
|
|
263
266
|
return WebhookRequestsApi;
|
|
264
267
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare class BaseAPI {
|
|
|
63
63
|
protected configuration: Configuration;
|
|
64
64
|
private username?;
|
|
65
65
|
private password?;
|
|
66
|
+
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
|
|
66
67
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
67
68
|
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
68
69
|
private loadCredentials;
|
package/dist/base.js
CHANGED
|
@@ -163,6 +163,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
163
163
|
}
|
|
164
164
|
this.attachInterceptor(axios);
|
|
165
165
|
}
|
|
166
|
+
BaseAPI.prototype.withOwner = function (options) {
|
|
167
|
+
return __assign({}, options);
|
|
168
|
+
};
|
|
166
169
|
BaseAPI.prototype.initialize = function (env, targetWorkspace) {
|
|
167
170
|
if (env === void 0) { env = Environment.Production; }
|
|
168
171
|
return __awaiter(this, void 0, void 0, function () {
|