@ductape/sdk 0.1.134 → 0.1.135

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.
@@ -384,9 +384,9 @@ export default class ProcessorService implements IProcessorService {
384
384
  runBrokerPublish(data: IStepEvent, additional_logs?: Partial<ILogData>): Promise<{
385
385
  published: boolean;
386
386
  }>;
387
- processStorageRequest(data: IStepEvent, input: IStorageRequest, storageEnv: IProductStorageEnvs, additional_logs: Partial<ILogData>, decryptionKey?: string): Promise<{
387
+ processStorageRequest(data: IStepEvent, input: IStorageRequest, storageEnv: IProductStorageEnvs, additional_logs: Partial<ILogData>, decryptionKey?: string): Promise<IProcessingFailure | {
388
388
  url: string;
389
- } | IProcessingFailure>;
389
+ }>;
390
390
  writeResult(status: LogEventStatus, retryable?: boolean): Promise<void>;
391
391
  /**
392
392
  * Separate credentials into prefixed (e.g., 'headers:Authorization') and non-prefixed (e.g., 'api_key').
@@ -2864,6 +2864,13 @@ class ProcessorService {
2864
2864
  if ((_e = envMapping === null || envMapping === void 0 ? void 0 : envMapping.variables) === null || _e === void 0 ? void 0 : _e.length) {
2865
2865
  request_base_url = (0, string_utils_2.resolveBaseUrlVariables)(request_base_url, envMapping.variables);
2866
2866
  }
2867
+ // Guard against sending a request with an unresolved {{placeholder}} still in the URL —
2868
+ // this happens for connections made before variable values were enforced/provided.
2869
+ const unresolvedBaseUrlVar = request_base_url === null || request_base_url === void 0 ? void 0 : request_base_url.match(/\{\{([a-zA-Z0-9_]+)\}\}/);
2870
+ if (unresolvedBaseUrlVar) {
2871
+ throw new Error(`base_url variable {{${unresolvedBaseUrlVar[1]}}} is not resolved for app environment ${app_env_slug}. ` +
2872
+ `Set its value on the product's app connection (envs[].variables) before executing this action.`);
2873
+ }
2867
2874
  const samples = {
2868
2875
  query: (query === null || query === void 0 ? void 0 : query.data) || [],
2869
2876
  headers: (headers === null || headers === void 0 ? void 0 : headers.data) || [],