@seamapi/http 2.25.0 → 2.26.0
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/lib/resolve-action-attempt.d.ts +4 -4
- package/lib/resources/action-attempt.d.ts +871 -139
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/resolve-action-attempt.ts +8 -6
- package/src/lib/resources/action-attempt.ts +1101 -201
- package/src/lib/version.ts +1 -1
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "2.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "2.26.0";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"axios-retry": "^4.4.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@seamapi/blueprint": "^1.
|
|
88
|
+
"@seamapi/blueprint": "^1.10.0",
|
|
89
89
|
"@seamapi/fake-seam-connect": "^2.0.4",
|
|
90
90
|
"@seamapi/smith": "^1.1.0",
|
|
91
91
|
"@seamapi/types": "1.1047.0",
|
|
@@ -162,13 +162,15 @@ const isFailedActionAttempt = <T extends ActionAttempt>(
|
|
|
162
162
|
/**
|
|
163
163
|
* An action attempt that has succeeded.
|
|
164
164
|
*/
|
|
165
|
-
export type SucceededActionAttempt<T extends ActionAttempt> =
|
|
166
|
-
|
|
167
|
-
}
|
|
165
|
+
export type SucceededActionAttempt<T extends ActionAttempt> = Extract<
|
|
166
|
+
T,
|
|
167
|
+
{ status: 'success' }
|
|
168
|
+
>
|
|
168
169
|
|
|
169
170
|
/**
|
|
170
171
|
* An action attempt that has failed.
|
|
171
172
|
*/
|
|
172
|
-
export type FailedActionAttempt<T extends ActionAttempt> =
|
|
173
|
-
|
|
174
|
-
}
|
|
173
|
+
export type FailedActionAttempt<T extends ActionAttempt> = Extract<
|
|
174
|
+
T,
|
|
175
|
+
{ status: 'error' }
|
|
176
|
+
>
|