@emmvish/stable-request 1.3.11 → 1.3.12
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/dist/core/stable-workflow.d.ts.map +1 -1
- package/dist/core/stable-workflow.js +16 -53
- package/dist/core/stable-workflow.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utilities/execute-phase.d.ts +13 -0
- package/dist/utilities/execute-phase.d.ts.map +1 -0
- package/dist/utilities/execute-phase.js +48 -0
- package/dist/utilities/execute-phase.js.map +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +1 -0
- package/dist/utilities/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stable-workflow.d.ts","sourceRoot":"","sources":["../../src/core/stable-workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stable-workflow.d.ts","sourceRoot":"","sources":["../../src/core/stable-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACzB,MAAM,mBAAmB,CAAC;AAO3B,wBAAsB,cAAc,CAAC,eAAe,GAAG,GAAG,EAAE,gBAAgB,GAAG,GAAG,EAC9E,MAAM,EAAE,qBAAqB,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAAE,EAClE,OAAO,GAAE,uBAAuB,CAAC,eAAe,EAAE,gBAAgB,CAAM,GACzE,OAAO,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAoPnD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { safelyExecuteUnknownFunction, safelyStringify } from '../utilities/index.js';
|
|
1
|
+
import { executePhase, safelyExecuteUnknownFunction, safelyStringify } from '../utilities/index.js';
|
|
3
2
|
export async function stableWorkflow(phases, options = {}) {
|
|
4
3
|
const { stopOnFirstPhaseError = false, logPhaseResults = false, handlePhaseCompletion = ({ workflowId, phaseResult, maxSerializableChars = 1000 }) => console.info('stable-request:\n', 'Workflow ID:\n', workflowId, '\nPhase result:\n', safelyStringify(phaseResult, maxSerializableChars)), handlePhaseError = ({ workflowId, error, phaseResult, maxSerializableChars = 1000 }) => console.error('stable-request:\n', 'Workflow ID:\n', workflowId, '\nError:\n', safelyStringify({ error, phaseResult }, maxSerializableChars)), maxSerializableChars = 1000, requestGroups = [], workflowHookParams = {}, concurrentPhaseExecution = false, ...commonGatewayOptions } = options;
|
|
5
4
|
const workflowStartTime = Date.now();
|
|
@@ -10,10 +9,8 @@ export async function stableWorkflow(phases, options = {}) {
|
|
|
10
9
|
let failedRequests = 0;
|
|
11
10
|
try {
|
|
12
11
|
if (concurrentPhaseExecution) {
|
|
13
|
-
|
|
14
|
-
const phasePromises = phases.map((phase, i) => executePhase(phase, i, workflowId, commonGatewayOptions, requestGroups, logPhaseResults, handlePhaseCompletion, handlePhaseError, maxSerializableChars, workflowHookParams, options.sharedBuffer));
|
|
12
|
+
const phasePromises = phases.map((phase, i) => executePhase(phase, i, workflowId, commonGatewayOptions, requestGroups, logPhaseResults, handlePhaseCompletion, maxSerializableChars, workflowHookParams, options.sharedBuffer));
|
|
15
13
|
const settledPhases = await Promise.allSettled(phasePromises);
|
|
16
|
-
// Process results from concurrent execution
|
|
17
14
|
settledPhases.forEach((result, i) => {
|
|
18
15
|
if (result.status === 'fulfilled') {
|
|
19
16
|
const phaseResult = result.value;
|
|
@@ -23,7 +20,6 @@ export async function stableWorkflow(phases, options = {}) {
|
|
|
23
20
|
failedRequests += phaseResult.failedRequests;
|
|
24
21
|
}
|
|
25
22
|
else {
|
|
26
|
-
// Handle rejected phase
|
|
27
23
|
const phaseId = phases[i].id || `phase-${i + 1}`;
|
|
28
24
|
const phaseResult = {
|
|
29
25
|
phaseId,
|
|
@@ -43,11 +39,23 @@ export async function stableWorkflow(phases, options = {}) {
|
|
|
43
39
|
if (logPhaseResults) {
|
|
44
40
|
console.error(`stable-request: [Workflow: ${workflowId}] Phase ${phaseId} failed:`, result.reason);
|
|
45
41
|
}
|
|
42
|
+
try {
|
|
43
|
+
safelyExecuteUnknownFunction(handlePhaseError, {
|
|
44
|
+
workflowId,
|
|
45
|
+
phaseResult,
|
|
46
|
+
error: result.reason,
|
|
47
|
+
maxSerializableChars,
|
|
48
|
+
params: workflowHookParams?.handlePhaseErrorParams,
|
|
49
|
+
sharedBuffer: options.sharedBuffer
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
console.error(`stable-request: [Workflow: ${workflowId}]Error in handlePhaseError hook:`, error);
|
|
54
|
+
}
|
|
46
55
|
}
|
|
47
56
|
});
|
|
48
57
|
}
|
|
49
58
|
else {
|
|
50
|
-
// Execute phases sequentially (existing behavior)
|
|
51
59
|
for (let i = 0; i < phases.length; i++) {
|
|
52
60
|
const phase = phases[i];
|
|
53
61
|
const phaseId = phase.id || `phase-${i + 1}`;
|
|
@@ -55,7 +63,7 @@ export async function stableWorkflow(phases, options = {}) {
|
|
|
55
63
|
console.info(`\nstable-request: [Workflow: ${workflowId}] Starting Phase ${i + 1}/${phases.length}: ${phaseId}`);
|
|
56
64
|
}
|
|
57
65
|
try {
|
|
58
|
-
const phaseResult = await executePhase(phase, i, workflowId, commonGatewayOptions, requestGroups, logPhaseResults, handlePhaseCompletion,
|
|
66
|
+
const phaseResult = await executePhase(phase, i, workflowId, commonGatewayOptions, requestGroups, logPhaseResults, handlePhaseCompletion, maxSerializableChars, workflowHookParams, options.sharedBuffer);
|
|
59
67
|
phaseResults.push(phaseResult);
|
|
60
68
|
totalRequests += phaseResult.totalRequests;
|
|
61
69
|
successfulRequests += phaseResult.successfulRequests;
|
|
@@ -147,49 +155,4 @@ export async function stableWorkflow(phases, options = {}) {
|
|
|
147
155
|
};
|
|
148
156
|
}
|
|
149
157
|
}
|
|
150
|
-
async function executePhase(phase, phaseIndex, workflowId, commonGatewayOptions, requestGroups, logPhaseResults, handlePhaseCompletion, handlePhaseError, maxSerializableChars, workflowHookParams, sharedBuffer) {
|
|
151
|
-
const phaseId = phase.id || `phase-${phaseIndex + 1}`;
|
|
152
|
-
const phaseStartTime = Date.now();
|
|
153
|
-
const phaseGatewayOptions = {
|
|
154
|
-
...commonGatewayOptions,
|
|
155
|
-
...(phase.commonConfig || {}),
|
|
156
|
-
concurrentExecution: phase.concurrentExecution ?? true,
|
|
157
|
-
stopOnFirstError: phase.stopOnFirstError ?? false,
|
|
158
|
-
requestGroups,
|
|
159
|
-
sharedBuffer
|
|
160
|
-
};
|
|
161
|
-
const phaseResponses = await stableApiGateway(phase.requests, phaseGatewayOptions);
|
|
162
|
-
const phaseExecutionTime = Date.now() - phaseStartTime;
|
|
163
|
-
const phaseSuccessCount = phaseResponses.filter(r => r.success).length;
|
|
164
|
-
const phaseFailureCount = phaseResponses.filter(r => !r.success).length;
|
|
165
|
-
const phaseResult = {
|
|
166
|
-
phaseId,
|
|
167
|
-
phaseIndex,
|
|
168
|
-
success: phaseFailureCount === 0,
|
|
169
|
-
executionTime: phaseExecutionTime,
|
|
170
|
-
timestamp: new Date(phaseStartTime).toISOString(),
|
|
171
|
-
totalRequests: phaseResponses.length,
|
|
172
|
-
successfulRequests: phaseSuccessCount,
|
|
173
|
-
failedRequests: phaseFailureCount,
|
|
174
|
-
responses: phaseResponses
|
|
175
|
-
};
|
|
176
|
-
if (logPhaseResults) {
|
|
177
|
-
console.info(`stable-request: [Workflow: ${workflowId}] Phase ${phaseId} completed:`, `${phaseSuccessCount}/${phaseResponses.length} successful`, `(${phaseExecutionTime}ms)`);
|
|
178
|
-
}
|
|
179
|
-
if (handlePhaseCompletion) {
|
|
180
|
-
try {
|
|
181
|
-
await safelyExecuteUnknownFunction(handlePhaseCompletion, {
|
|
182
|
-
workflowId,
|
|
183
|
-
phaseResult,
|
|
184
|
-
maxSerializableChars,
|
|
185
|
-
params: workflowHookParams?.handlePhaseCompletionParams,
|
|
186
|
-
sharedBuffer
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
catch (hookError) {
|
|
190
|
-
console.error(`stable-request: [Workflow: ${workflowId}] Error in handlePhaseCompletion hook:`, hookError);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return phaseResult;
|
|
194
|
-
}
|
|
195
158
|
//# sourceMappingURL=stable-workflow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stable-workflow.js","sourceRoot":"","sources":["../../src/core/stable-workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stable-workflow.js","sourceRoot":"","sources":["../../src/core/stable-workflow.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,4BAA4B,EAC5B,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,KAAK,UAAU,cAAc,CAChC,MAAkE,EAClE,UAAsE,EAAE;IAExE,MAAM,EACF,qBAAqB,GAAG,KAAK,EAC7B,eAAe,GAAG,KAAK,EACvB,qBAAqB,GAAG,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,GAAG,IAAI,EAAE,EAAE,EAAE,CACjF,OAAO,CAAC,IAAI,CACR,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,eAAe,CAAC,WAAW,EAAE,oBAAoB,CAAC,CACrD,EACL,gBAAgB,GAAG,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,GAAG,IAAI,EAAE,EAAE,EAAE,CACnF,OAAO,CAAC,KAAK,CACT,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,eAAe,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,oBAAoB,CAAC,CAChE,EACL,oBAAoB,GAAG,IAAI,EAC3B,aAAa,GAAG,EAAE,EAClB,kBAAkB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qB;YACpC,SAAS,EAAE,IAAI,IAAI,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE;YACpD,WAAW,EAAE,MAAM,CAAC,MAAM;YAC1B,eAAe,EAAE,YAAY,CAAC,MAAM;YACpC,aAAa;YACb,kBAAkB;YAClB,cAAc;YACd,MAAM,EAAE,YAAY;SACvB,CAAC;QAEF,IAAI,eAAe,EAAE,CAAC;YAClB,OAAO,CAAC,IAAI,CACR,gCAAgC,UAAU,cAAc,EACxD,GAAG,kBAAkB,IAAI,aAAa,sBAAsB,EAC5D,UAAU,YAAY,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,SAAS,EACvD,IAAI,qBAAqB,KAAK,CACjC,CAAC;QACN,CAAC;QAED,OAAO,MAAM,CAAC;IAElB,CAAC;IAAC,OAAO,aAAkB,EAAE,CAAC;QAC1B,MAAM,qBAAqB,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,iBAAiB,CAAC;QAE7D,IAAI,eAAe,EAAE,CAAC;YAClB,OAAO,CAAC,KAAK,CACT,8BAA8B,UAAU,gBAAgB,EACxD,aAAa,CAAC,OAAO,CACxB,CAAC;QACN,CAAC;QAED,OAAO;YACH,UAAU;YACV,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,qBAAqB;YACpC,SAAS,EAAE,IAAI,IAAI,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE;YACpD,WAAW,EAAE,MAAM,CAAC,MAAM;YAC1B,eAAe,EAAE,YAAY,CAAC,MAAM;YACpC,aAAa;YACb,kBAAkB;YAClB,cAAc;YACd,MAAM,EAAE,YAAY;YACpB,KAAK,EAAE,aAAa,CAAC,OAAO;SAC/B,CAAC;IACN,CAAC;AACL,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { stableRequest, stableApiGateway, stableWorkflow } from './core/index.js';
|
|
2
2
|
export { INVALID_AXIOS_RESPONSES, REQUEST_METHODS, RESPONSE_ERRORS, RETRY_STRATEGIES, VALID_REQUEST_PROTOCOLS } from './enums/index.js';
|
|
3
3
|
export type { API_GATEWAY_OPTIONS, API_GATEWAY_REQUEST, API_GATEWAY_REQUEST_OPTIONS_TYPE, API_GATEWAY_RESPONSE, CONCURRENT_REQUEST_EXECUTION_OPTIONS, ERROR_LOG, FinalErrorAnalysisHookOptions, HandleErrorHookOptions, HandlePhaseCompletionHookOptions, HandlePhaseErrorHookOptions, HandleSuccessfulAttemptDataHookOptions, HookParams, PreExecutionHookOptions, RequestPreExecutionOptions, ReqFnResponse, REQUEST_DATA, RequestGroup, REQUEST_METHOD_TYPES, ResponseAnalysisHookOptions, RETRY_STRATEGY_TYPES, SEQUENTIAL_REQUEST_EXECUTION_OPTIONS, STABLE_REQUEST, STABLE_WORKFLOW_PHASE, STABLE_WORKFLOW_OPTIONS, STABLE_WORKFLOW_PHASE_RESULT, STABLE_WORKFLOW_RESULT, SUCCESSFUL_ATTEMPT_DATA, VALID_REQUEST_PROTOCOL_TYPES, WorkflowHookParams, TRIAL_MODE_OPTIONS } from './types/index.js';
|
|
4
|
-
export { delay, executeConcurrently, executeSequentially, extractCommonRequestConfigOptions, generateAxiosRequestConfig, getNewDelayTime, isRetryableError, prepareApiRequestData, prepareApiRequestOptions, reqFn, safelyExecuteUnknownFunction, safelyStringify, validateTrialModeProbabilities } from './utilities/index.js';
|
|
4
|
+
export { delay, executeConcurrently, executePhase, executeSequentially, extractCommonRequestConfigOptions, generateAxiosRequestConfig, getNewDelayTime, isRetryableError, prepareApiRequestData, prepareApiRequestOptions, reqFn, safelyExecuteUnknownFunction, safelyStringify, validateTrialModeProbabilities } from './utilities/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,mBAAmB,EACnB,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,EACpB,oCAAoC,EACpC,SAAS,EACT,6BAA6B,EAC7B,sBAAsB,EACtB,gCAAgC,EAChC,2BAA2B,EAC3B,sCAAsC,EACtC,UAAU,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,oCAAoC,EACpC,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,KAAK,EACL,mBAAmB,EACnB,mBAAmB,EACnB,iCAAiC,EACjC,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,EACL,4BAA4B,EAC5B,eAAe,EACf,8BAA8B,EACjC,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,mBAAmB,EACnB,mBAAmB,EACnB,gCAAgC,EAChC,oBAAoB,EACpB,oCAAoC,EACpC,SAAS,EACT,6BAA6B,EAC7B,sBAAsB,EACtB,gCAAgC,EAChC,2BAA2B,EAC3B,sCAAsC,EACtC,UAAU,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,oCAAoC,EACpC,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,KAAK,EACL,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,iCAAiC,EACjC,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,EACL,4BAA4B,EAC5B,eAAe,EACf,8BAA8B,EACjC,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { stableRequest, stableApiGateway, stableWorkflow } from './core/index.js';
|
|
2
2
|
export { INVALID_AXIOS_RESPONSES, REQUEST_METHODS, RESPONSE_ERRORS, RETRY_STRATEGIES, VALID_REQUEST_PROTOCOLS } from './enums/index.js';
|
|
3
|
-
export { delay, executeConcurrently, executeSequentially, extractCommonRequestConfigOptions, generateAxiosRequestConfig, getNewDelayTime, isRetryableError, prepareApiRequestData, prepareApiRequestOptions, reqFn, safelyExecuteUnknownFunction, safelyStringify, validateTrialModeProbabilities } from './utilities/index.js';
|
|
3
|
+
export { delay, executeConcurrently, executePhase, executeSequentially, extractCommonRequestConfigOptions, generateAxiosRequestConfig, getNewDelayTime, isRetryableError, prepareApiRequestData, prepareApiRequestOptions, reqFn, safelyExecuteUnknownFunction, safelyStringify, validateTrialModeProbabilities } from './utilities/index.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAmC1B,OAAO,EACH,KAAK,EACL,mBAAmB,EACnB,mBAAmB,EACnB,iCAAiC,EACjC,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,EACL,4BAA4B,EAC5B,eAAe,EACf,8BAA8B,EACjC,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,kBAAkB,CAAC;AAmC1B,OAAO,EACH,KAAK,EACL,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,iCAAiC,EACjC,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,EACL,4BAA4B,EAC5B,eAAe,EACf,8BAA8B,EACjC,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { STABLE_WORKFLOW_PHASE } from '../types/index.js';
|
|
2
|
+
export declare function executePhase<RequestDataType = any, ResponseDataType = any>(phase: STABLE_WORKFLOW_PHASE<RequestDataType, ResponseDataType>, phaseIndex: number, workflowId: string, commonGatewayOptions: any, requestGroups: any[], logPhaseResults: boolean, handlePhaseCompletion: Function, maxSerializableChars: number, workflowHookParams: any, sharedBuffer?: Record<string, any>): Promise<{
|
|
3
|
+
phaseId: string;
|
|
4
|
+
phaseIndex: number;
|
|
5
|
+
success: boolean;
|
|
6
|
+
executionTime: number;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
totalRequests: number;
|
|
9
|
+
successfulRequests: number;
|
|
10
|
+
failedRequests: number;
|
|
11
|
+
responses: import("../types/index.js").API_GATEWAY_RESPONSE<ResponseDataType>[];
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=execute-phase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-phase.d.ts","sourceRoot":"","sources":["../../src/utilities/execute-phase.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,wBAAsB,YAAY,CAAC,eAAe,GAAG,GAAG,EAAE,gBAAgB,GAAG,GAAG,EAC5E,KAAK,EAAE,qBAAqB,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAC/D,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,oBAAoB,EAAE,GAAG,EACzB,aAAa,EAAE,GAAG,EAAE,EACpB,eAAe,EAAE,OAAO,EACxB,qBAAqB,EAAE,QAAQ,EAC/B,oBAAoB,EAAE,MAAM,EAC5B,kBAAkB,EAAE,GAAG,EACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;GA+DrC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { stableApiGateway } from '../core/index.js';
|
|
2
|
+
import { safelyExecuteUnknownFunction } from './safely-execute-unknown-function';
|
|
3
|
+
export async function executePhase(phase, phaseIndex, workflowId, commonGatewayOptions, requestGroups, logPhaseResults, handlePhaseCompletion, maxSerializableChars, workflowHookParams, sharedBuffer) {
|
|
4
|
+
const phaseId = phase.id || `phase-${phaseIndex + 1}`;
|
|
5
|
+
const phaseStartTime = Date.now();
|
|
6
|
+
const phaseGatewayOptions = {
|
|
7
|
+
...commonGatewayOptions,
|
|
8
|
+
...(phase.commonConfig || {}),
|
|
9
|
+
concurrentExecution: phase.concurrentExecution ?? true,
|
|
10
|
+
stopOnFirstError: phase.stopOnFirstError ?? false,
|
|
11
|
+
requestGroups,
|
|
12
|
+
sharedBuffer
|
|
13
|
+
};
|
|
14
|
+
const phaseResponses = await stableApiGateway(phase.requests, phaseGatewayOptions);
|
|
15
|
+
const phaseExecutionTime = Date.now() - phaseStartTime;
|
|
16
|
+
const phaseSuccessCount = phaseResponses.filter(r => r.success).length;
|
|
17
|
+
const phaseFailureCount = phaseResponses.filter(r => !r.success).length;
|
|
18
|
+
const phaseResult = {
|
|
19
|
+
phaseId,
|
|
20
|
+
phaseIndex,
|
|
21
|
+
success: phaseFailureCount === 0,
|
|
22
|
+
executionTime: phaseExecutionTime,
|
|
23
|
+
timestamp: new Date(phaseStartTime).toISOString(),
|
|
24
|
+
totalRequests: phaseResponses.length,
|
|
25
|
+
successfulRequests: phaseSuccessCount,
|
|
26
|
+
failedRequests: phaseFailureCount,
|
|
27
|
+
responses: phaseResponses
|
|
28
|
+
};
|
|
29
|
+
if (logPhaseResults) {
|
|
30
|
+
console.info(`stable-request: [Workflow: ${workflowId}] Phase ${phaseId} completed:`, `${phaseSuccessCount}/${phaseResponses.length} successful`, `(${phaseExecutionTime}ms)`);
|
|
31
|
+
}
|
|
32
|
+
if (handlePhaseCompletion) {
|
|
33
|
+
try {
|
|
34
|
+
await safelyExecuteUnknownFunction(handlePhaseCompletion, {
|
|
35
|
+
workflowId,
|
|
36
|
+
phaseResult,
|
|
37
|
+
maxSerializableChars,
|
|
38
|
+
params: workflowHookParams?.handlePhaseCompletionParams,
|
|
39
|
+
sharedBuffer
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
catch (hookError) {
|
|
43
|
+
console.error(`stable-request: [Workflow: ${workflowId}] Error in handlePhaseCompletion hook:`, hookError);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return phaseResult;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=execute-phase.js.map
|
|
@@ -0,0 +1 @@
|
|
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C,aAAa,EAAE,kBAAkB;QACjC,SAAS,EAAE,IAAI,IAAI,CAAC,cAAc,CAAC,CAAC,WAAW,EAAE;QACjD,aAAa,EAAE,cAAc,CAAC,MAAM;QACpC,kBAAkB,EAAE,iBAAiB;QACrC,cAAc,EAAE,iBAAiB;QACjC,SAAS,EAAE,cAAc;KAC5B,CAAC;IAEF,IAAI,eAAe,EAAE,CAAC;QAClB,OAAO,CAAC,IAAI,CACR,8BAA8B,UAAU,WAAW,OAAO,aAAa,EACvE,GAAG,iBAAiB,IAAI,cAAc,CAAC,MAAM,aAAa,EAC1D,IAAI,kBAAkB,KAAK,CAC9B,CAAC;IACN,CAAC;IAED,IAAI,qBAAqB,EAAE,CAAC;QACxB,IAAI,CAAC;YACD,MAAM,4BAA4B,CAC9B,qBAAqB,EAAE;gBACnB,UAAU;gBACV,WAAW;gBACX,oBAAoB;gBACpB,MAAM,EAAE,kBAAkB,EAAE,2BAA2B;gBACvD,YAAY;aACf,CACJ,CAAC;QACN,CAAC;QAAC,OAAO,SAAS,EAAE,CAAC;YACjB,OAAO,CAAC,KAAK,CACT,8BAA8B,UAAU,wCAAwC,EAChF,SAAS,CACZ,CAAC;QACN,CAAC;IACL,CAAC;IAED,OAAO,WAAW,CAAC;AACvB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { delay } from './delay.js';
|
|
2
2
|
export { executeConcurrently } from './execute-concurrently.js';
|
|
3
|
+
export { executePhase } from './execute-phase.js';
|
|
3
4
|
export { executeSequentially } from './execute-sequentially.js';
|
|
4
5
|
export { extractCommonRequestConfigOptions } from './extract-common-request-config-options.js';
|
|
5
6
|
export { generateAxiosRequestConfig } from './generate-axios-request-config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,mBAAmB,EA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AAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/dist/utilities/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { delay } from './delay.js';
|
|
2
2
|
export { executeConcurrently } from './execute-concurrently.js';
|
|
3
|
+
export { executePhase } from './execute-phase.js';
|
|
3
4
|
export { executeSequentially } from './execute-sequentially.js';
|
|
4
5
|
export { extractCommonRequestConfigOptions } from './extract-common-request-config-options.js';
|
|
5
6
|
export { generateAxiosRequestConfig } from './generate-axios-request-config.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emmvish/stable-request",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "stable-request is a TypeScript-first HTTP
|
|
3
|
+
"version": "1.3.12",
|
|
4
|
+
"description": "stable-request is a TypeScript-first HTTP workflow execution engine for real-world distributed systems — where HTTP 200 OK does not guarantee business success, and HTTP failures still deserve structured, actionable responses.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|