@spooled/sdk 1.0.13 → 1.0.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/dist/{index-C6RMeNDM.d.cts → index-52WBv4Ct.d.cts} +10 -3
- package/dist/{index-C6RMeNDM.d.ts → index-52WBv4Ct.d.ts} +10 -3
- package/dist/index.cjs +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +1 -1
- package/dist/worker/index.d.ts +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -107,11 +107,11 @@ declare const DEFAULT_CONFIG: {
|
|
|
107
107
|
successThreshold: number;
|
|
108
108
|
timeout: number;
|
|
109
109
|
};
|
|
110
|
-
readonly userAgent: "@spooled/sdk-nodejs/1.0.
|
|
110
|
+
readonly userAgent: "@spooled/sdk-nodejs/1.0.15";
|
|
111
111
|
readonly autoRefreshToken: true;
|
|
112
112
|
};
|
|
113
113
|
/** SDK version */
|
|
114
|
-
declare const SDK_VERSION = "1.0.
|
|
114
|
+
declare const SDK_VERSION = "1.0.15";
|
|
115
115
|
/** API version prefix */
|
|
116
116
|
declare const API_VERSION = "v1";
|
|
117
117
|
/**
|
|
@@ -1297,6 +1297,13 @@ declare class WorkflowsResource {
|
|
|
1297
1297
|
* Cancel a workflow
|
|
1298
1298
|
*/
|
|
1299
1299
|
cancel(id: string): Promise<WorkflowResponse>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Retry a failed workflow
|
|
1302
|
+
*
|
|
1303
|
+
* Resets all failed/deadletter jobs back to pending and resumes the workflow.
|
|
1304
|
+
* Only workflows with status 'failed' can be retried.
|
|
1305
|
+
*/
|
|
1306
|
+
retry(id: string): Promise<WorkflowResponse>;
|
|
1300
1307
|
private getJobDependencies;
|
|
1301
1308
|
private addJobDependencies;
|
|
1302
1309
|
}
|
|
@@ -2787,7 +2794,7 @@ declare class GrpcWorkerOperations {
|
|
|
2787
2794
|
* @example
|
|
2788
2795
|
* ```typescript
|
|
2789
2796
|
* const client = new SpooledGrpcClient({
|
|
2790
|
-
* address: 'grpc.spooled.cloud:
|
|
2797
|
+
* address: 'grpc.spooled.cloud:443',
|
|
2791
2798
|
* apiKey: 'sk_live_...',
|
|
2792
2799
|
* });
|
|
2793
2800
|
*
|
|
@@ -107,11 +107,11 @@ declare const DEFAULT_CONFIG: {
|
|
|
107
107
|
successThreshold: number;
|
|
108
108
|
timeout: number;
|
|
109
109
|
};
|
|
110
|
-
readonly userAgent: "@spooled/sdk-nodejs/1.0.
|
|
110
|
+
readonly userAgent: "@spooled/sdk-nodejs/1.0.15";
|
|
111
111
|
readonly autoRefreshToken: true;
|
|
112
112
|
};
|
|
113
113
|
/** SDK version */
|
|
114
|
-
declare const SDK_VERSION = "1.0.
|
|
114
|
+
declare const SDK_VERSION = "1.0.15";
|
|
115
115
|
/** API version prefix */
|
|
116
116
|
declare const API_VERSION = "v1";
|
|
117
117
|
/**
|
|
@@ -1297,6 +1297,13 @@ declare class WorkflowsResource {
|
|
|
1297
1297
|
* Cancel a workflow
|
|
1298
1298
|
*/
|
|
1299
1299
|
cancel(id: string): Promise<WorkflowResponse>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Retry a failed workflow
|
|
1302
|
+
*
|
|
1303
|
+
* Resets all failed/deadletter jobs back to pending and resumes the workflow.
|
|
1304
|
+
* Only workflows with status 'failed' can be retried.
|
|
1305
|
+
*/
|
|
1306
|
+
retry(id: string): Promise<WorkflowResponse>;
|
|
1300
1307
|
private getJobDependencies;
|
|
1301
1308
|
private addJobDependencies;
|
|
1302
1309
|
}
|
|
@@ -2787,7 +2794,7 @@ declare class GrpcWorkerOperations {
|
|
|
2787
2794
|
* @example
|
|
2788
2795
|
* ```typescript
|
|
2789
2796
|
* const client = new SpooledGrpcClient({
|
|
2790
|
-
* address: 'grpc.spooled.cloud:
|
|
2797
|
+
* address: 'grpc.spooled.cloud:443',
|
|
2791
2798
|
* apiKey: 'sk_live_...',
|
|
2792
2799
|
* });
|
|
2793
2800
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -56,10 +56,10 @@ var DEFAULT_CONFIG = {
|
|
|
56
56
|
successThreshold: 3,
|
|
57
57
|
timeout: 3e4
|
|
58
58
|
},
|
|
59
|
-
userAgent: "@spooled/sdk-nodejs/1.0.
|
|
59
|
+
userAgent: "@spooled/sdk-nodejs/1.0.15",
|
|
60
60
|
autoRefreshToken: true
|
|
61
61
|
};
|
|
62
|
-
var SDK_VERSION = "1.0.
|
|
62
|
+
var SDK_VERSION = "1.0.15";
|
|
63
63
|
var API_VERSION = "v1";
|
|
64
64
|
var API_BASE_PATH = `/api/${API_VERSION}`;
|
|
65
65
|
function resolveConfig(options) {
|
|
@@ -1268,6 +1268,15 @@ var WorkflowsResource = class {
|
|
|
1268
1268
|
async cancel(id) {
|
|
1269
1269
|
return this.http.post(`/workflows/${id}/cancel`);
|
|
1270
1270
|
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Retry a failed workflow
|
|
1273
|
+
*
|
|
1274
|
+
* Resets all failed/deadletter jobs back to pending and resumes the workflow.
|
|
1275
|
+
* Only workflows with status 'failed' can be retried.
|
|
1276
|
+
*/
|
|
1277
|
+
async retry(id) {
|
|
1278
|
+
return this.http.post(`/workflows/${id}/retry`);
|
|
1279
|
+
}
|
|
1271
1280
|
// Job dependency operations (private implementations)
|
|
1272
1281
|
async getJobDependencies(jobId) {
|
|
1273
1282
|
return this.http.get(`/jobs/${jobId}/dependencies`);
|
|
@@ -2968,7 +2977,7 @@ var SpooledWorker = class {
|
|
|
2968
2977
|
...DEFAULT_OPTIONS,
|
|
2969
2978
|
hostname: os.hostname(),
|
|
2970
2979
|
workerType: "nodejs",
|
|
2971
|
-
version: "1.0.
|
|
2980
|
+
version: "1.0.15",
|
|
2972
2981
|
metadata: {},
|
|
2973
2982
|
...options
|
|
2974
2983
|
};
|