@onlineapps/conn-orch-api-mapper 1.0.22 → 1.0.23
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/package.json +1 -1
- package/src/ApiMapper.js +7 -0
package/package.json
CHANGED
package/src/ApiMapper.js
CHANGED
|
@@ -730,6 +730,13 @@ class ApiMapper {
|
|
|
730
730
|
request.headers['account-id'] = String(accountId);
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
+
// Tester mode: for workflows initiated from "frontend tester", we explicitly disable side-effects
|
|
734
|
+
// in services that support it (e.g. emailer). This is controlled via cookbook._system.labels (set by Gateway).
|
|
735
|
+
// NOTE: This is NOT validation; validation uses per-operation headers in conn-orch-validator.
|
|
736
|
+
if (sys && Array.isArray(sys.labels) && sys.labels.includes('tester')) {
|
|
737
|
+
request.headers['x-tester-request'] = 'true';
|
|
738
|
+
}
|
|
739
|
+
|
|
733
740
|
return request;
|
|
734
741
|
}
|
|
735
742
|
|