@cqa-lib/cqa-ui 1.1.400 → 1.1.401

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.
@@ -30196,7 +30196,7 @@ class ApiEditStepComponent {
30196
30196
  }
30197
30197
  }
30198
30198
  onSendRequest() {
30199
- var _a;
30199
+ var _a, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
30200
30200
  // Validate URL before sending request
30201
30201
  if (!this.validateUrl()) {
30202
30202
  this.cdr.markForCheck();
@@ -30204,12 +30204,37 @@ class ApiEditStepComponent {
30204
30204
  }
30205
30205
  const environment = this.selectedEnvironment != null ? String(this.selectedEnvironment) : '';
30206
30206
  const method = this.selectedMethod != null ? String(this.selectedMethod) : '';
30207
- this.sendRequest.emit({
30208
- environment,
30209
- method,
30210
- url: (_a = this.url) !== null && _a !== void 0 ? _a : '',
30211
- headers: this.headers,
30212
- });
30207
+ try {
30208
+ const step1 = this.getCreatePayload().step1;
30209
+ this.sendRequest.emit({
30210
+ environment: (_a = step1.environment) !== null && _a !== void 0 ? _a : environment,
30211
+ method: (_c = step1.method) !== null && _c !== void 0 ? _c : method,
30212
+ url: (_d = step1.url) !== null && _d !== void 0 ? _d : ((_e = this.url) !== null && _e !== void 0 ? _e : ''),
30213
+ headers: (_f = step1.headers) !== null && _f !== void 0 ? _f : this.headers,
30214
+ authType: step1.authType,
30215
+ bearerToken: step1.bearerToken,
30216
+ oauth2: step1.oauth2,
30217
+ payloadType: step1.payloadType,
30218
+ payloadFormat: step1.payloadFormat,
30219
+ payloadText: step1.payloadText,
30220
+ keyValueRows: step1.keyValueRows,
30221
+ keyTypeValueRows: step1.keyTypeValueRows,
30222
+ paramsRows: step1.paramsRows,
30223
+ });
30224
+ }
30225
+ catch (_o) {
30226
+ this.sendRequest.emit({
30227
+ environment,
30228
+ method,
30229
+ url: (_g = this.url) !== null && _g !== void 0 ? _g : '',
30230
+ headers: this.headers,
30231
+ authType: this.selectedAuthType,
30232
+ bearerToken: (_h = this.bearerToken) !== null && _h !== void 0 ? _h : '',
30233
+ payloadType: this.payloadType,
30234
+ payloadFormat: (_l = (_k = (_j = this.payloadFormatForm) === null || _j === void 0 ? void 0 : _j.get('format')) === null || _k === void 0 ? void 0 : _k.value) !== null && _l !== void 0 ? _l : '',
30235
+ payloadText: (_m = this.payloadText) !== null && _m !== void 0 ? _m : '',
30236
+ });
30237
+ }
30213
30238
  }
30214
30239
  onVariableNameChange() {
30215
30240
  this.variableNameError = '';