@isdk/web-fetcher 0.2.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/README.action.cn.md +469 -0
- package/README.action.md +452 -0
- package/README.cn.md +147 -0
- package/README.engine.cn.md +262 -0
- package/README.engine.md +262 -0
- package/README.md +147 -0
- package/dist/index.d.mts +1603 -0
- package/dist/index.d.ts +1603 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/docs/README.md +151 -0
- package/docs/_media/LICENSE-MIT +22 -0
- package/docs/_media/README.action.md +452 -0
- package/docs/_media/README.cn.md +147 -0
- package/docs/_media/README.engine.md +262 -0
- package/docs/classes/CheerioFetchEngine.md +1447 -0
- package/docs/classes/ClickAction.md +533 -0
- package/docs/classes/ExtractAction.md +533 -0
- package/docs/classes/FetchAction.md +444 -0
- package/docs/classes/FetchEngine.md +1230 -0
- package/docs/classes/FetchSession.md +111 -0
- package/docs/classes/FillAction.md +533 -0
- package/docs/classes/GetContentAction.md +533 -0
- package/docs/classes/GotoAction.md +537 -0
- package/docs/classes/PauseAction.md +533 -0
- package/docs/classes/PlaywrightFetchEngine.md +1437 -0
- package/docs/classes/SubmitAction.md +533 -0
- package/docs/classes/WaitForAction.md +533 -0
- package/docs/classes/WebFetcher.md +85 -0
- package/docs/enumerations/FetchActionResultStatus.md +40 -0
- package/docs/functions/fetchWeb.md +43 -0
- package/docs/globals.md +72 -0
- package/docs/interfaces/BaseFetchActionProperties.md +83 -0
- package/docs/interfaces/BaseFetchCollectorActionProperties.md +145 -0
- package/docs/interfaces/BaseFetcherProperties.md +206 -0
- package/docs/interfaces/Cookie.md +142 -0
- package/docs/interfaces/DispatchedEngineAction.md +60 -0
- package/docs/interfaces/ExtractActionProperties.md +113 -0
- package/docs/interfaces/FetchActionInContext.md +149 -0
- package/docs/interfaces/FetchActionProperties.md +125 -0
- package/docs/interfaces/FetchActionResult.md +55 -0
- package/docs/interfaces/FetchContext.md +424 -0
- package/docs/interfaces/FetchEngineContext.md +328 -0
- package/docs/interfaces/FetchMetadata.md +73 -0
- package/docs/interfaces/FetchResponse.md +105 -0
- package/docs/interfaces/FetchReturnTypeRegistry.md +57 -0
- package/docs/interfaces/FetchSite.md +320 -0
- package/docs/interfaces/FetcherOptions.md +300 -0
- package/docs/interfaces/GotoActionOptions.md +66 -0
- package/docs/interfaces/PendingEngineRequest.md +51 -0
- package/docs/interfaces/SubmitActionOptions.md +23 -0
- package/docs/interfaces/WaitForActionOptions.md +39 -0
- package/docs/type-aliases/BaseFetchActionOptions.md +11 -0
- package/docs/type-aliases/BaseFetchCollectorOptions.md +11 -0
- package/docs/type-aliases/BrowserEngine.md +11 -0
- package/docs/type-aliases/FetchActionCapabilities.md +11 -0
- package/docs/type-aliases/FetchActionCapabilityMode.md +11 -0
- package/docs/type-aliases/FetchActionOptions.md +11 -0
- package/docs/type-aliases/FetchEngineAction.md +18 -0
- package/docs/type-aliases/FetchEngineType.md +11 -0
- package/docs/type-aliases/FetchReturnType.md +11 -0
- package/docs/type-aliases/FetchReturnTypeFor.md +17 -0
- package/docs/type-aliases/OnFetchPauseCallback.md +23 -0
- package/docs/type-aliases/ResourceType.md +11 -0
- package/docs/variables/DefaultFetcherProperties.md +11 -0
- package/package.json +90 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / DispatchedEngineAction
|
|
6
|
+
|
|
7
|
+
# Interface: DispatchedEngineAction
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/engine/base.ts:96](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/engine/base.ts#L96)
|
|
10
|
+
|
|
11
|
+
Represents an action that has been dispatched and is awaiting execution in the active page context.
|
|
12
|
+
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
Connects the action request with its resolution mechanism. Used internally by the action dispatch system
|
|
16
|
+
to handle promises while maintaining the page context validity window.
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
### action
|
|
21
|
+
|
|
22
|
+
> **action**: [`FetchEngineAction`](../type-aliases/FetchEngineAction.md)
|
|
23
|
+
|
|
24
|
+
Defined in: [packages/web-fetcher/src/engine/base.ts:97](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/engine/base.ts#L97)
|
|
25
|
+
|
|
26
|
+
***
|
|
27
|
+
|
|
28
|
+
### reject()
|
|
29
|
+
|
|
30
|
+
> **reject**: (`reason?`) => `void`
|
|
31
|
+
|
|
32
|
+
Defined in: [packages/web-fetcher/src/engine/base.ts:99](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/engine/base.ts#L99)
|
|
33
|
+
|
|
34
|
+
#### Parameters
|
|
35
|
+
|
|
36
|
+
##### reason?
|
|
37
|
+
|
|
38
|
+
`any`
|
|
39
|
+
|
|
40
|
+
#### Returns
|
|
41
|
+
|
|
42
|
+
`void`
|
|
43
|
+
|
|
44
|
+
***
|
|
45
|
+
|
|
46
|
+
### resolve()
|
|
47
|
+
|
|
48
|
+
> **resolve**: (`value?`) => `void`
|
|
49
|
+
|
|
50
|
+
Defined in: [packages/web-fetcher/src/engine/base.ts:98](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/engine/base.ts#L98)
|
|
51
|
+
|
|
52
|
+
#### Parameters
|
|
53
|
+
|
|
54
|
+
##### value?
|
|
55
|
+
|
|
56
|
+
`any`
|
|
57
|
+
|
|
58
|
+
#### Returns
|
|
59
|
+
|
|
60
|
+
`void`
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / ExtractActionProperties
|
|
6
|
+
|
|
7
|
+
# Interface: ExtractActionProperties
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/action/definitions/extract.ts:5](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/definitions/extract.ts#L5)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- [`BaseFetchActionProperties`](BaseFetchActionProperties.md)
|
|
14
|
+
|
|
15
|
+
## Indexable
|
|
16
|
+
|
|
17
|
+
\[`key`: `string`\]: `any`
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### failOnError?
|
|
22
|
+
|
|
23
|
+
> `optional` **failOnError**: `boolean`
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:52](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L52)
|
|
26
|
+
|
|
27
|
+
#### Inherited from
|
|
28
|
+
|
|
29
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`failOnError`](BaseFetchActionProperties.md#failonerror)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### failOnTimeout?
|
|
34
|
+
|
|
35
|
+
> `optional` **failOnTimeout**: `boolean`
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:54](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L54)
|
|
38
|
+
|
|
39
|
+
#### Inherited from
|
|
40
|
+
|
|
41
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`failOnTimeout`](BaseFetchActionProperties.md#failontimeout)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### id?
|
|
46
|
+
|
|
47
|
+
> `optional` **id**: `string`
|
|
48
|
+
|
|
49
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:45](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L45)
|
|
50
|
+
|
|
51
|
+
#### Inherited from
|
|
52
|
+
|
|
53
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`id`](BaseFetchActionProperties.md#id)
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### maxRetries?
|
|
58
|
+
|
|
59
|
+
> `optional` **maxRetries**: `number`
|
|
60
|
+
|
|
61
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:56](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L56)
|
|
62
|
+
|
|
63
|
+
#### Inherited from
|
|
64
|
+
|
|
65
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`maxRetries`](BaseFetchActionProperties.md#maxretries)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### name?
|
|
70
|
+
|
|
71
|
+
> `optional` **name**: `string`
|
|
72
|
+
|
|
73
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:46](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L46)
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`name`](BaseFetchActionProperties.md#name)
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### params
|
|
82
|
+
|
|
83
|
+
> **params**: `ExtractSchema`
|
|
84
|
+
|
|
85
|
+
Defined in: [packages/web-fetcher/src/action/definitions/extract.ts:6](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/definitions/extract.ts#L6)
|
|
86
|
+
|
|
87
|
+
#### Overrides
|
|
88
|
+
|
|
89
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`params`](BaseFetchActionProperties.md#params)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### storeAs?
|
|
94
|
+
|
|
95
|
+
> `optional` **storeAs**: `string`
|
|
96
|
+
|
|
97
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:49](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L49)
|
|
98
|
+
|
|
99
|
+
#### Inherited from
|
|
100
|
+
|
|
101
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`storeAs`](BaseFetchActionProperties.md#storeas)
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### timeoutMs?
|
|
106
|
+
|
|
107
|
+
> `optional` **timeoutMs**: `number`
|
|
108
|
+
|
|
109
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:55](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L55)
|
|
110
|
+
|
|
111
|
+
#### Inherited from
|
|
112
|
+
|
|
113
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`timeoutMs`](BaseFetchActionProperties.md#timeoutms)
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchActionInContext
|
|
6
|
+
|
|
7
|
+
# Interface: FetchActionInContext
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:7](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L7)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- [`FetchActionProperties`](FetchActionProperties.md)
|
|
14
|
+
|
|
15
|
+
## Indexable
|
|
16
|
+
|
|
17
|
+
\[`key`: `string`\]: `any`
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### collectors?
|
|
22
|
+
|
|
23
|
+
> `optional` **collectors**: `_RequireAtLeastOne`\<[`BaseFetchCollectorActionProperties`](BaseFetchCollectorActionProperties.md), `"name"` \| `"id"`\>[]
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:75](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L75)
|
|
26
|
+
|
|
27
|
+
#### Inherited from
|
|
28
|
+
|
|
29
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`collectors`](FetchActionProperties.md#collectors)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### depth?
|
|
34
|
+
|
|
35
|
+
> `optional` **depth**: `number`
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:10](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L10)
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### error?
|
|
42
|
+
|
|
43
|
+
> `optional` **error**: `Error`
|
|
44
|
+
|
|
45
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:9](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L9)
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### failOnError?
|
|
50
|
+
|
|
51
|
+
> `optional` **failOnError**: `boolean`
|
|
52
|
+
|
|
53
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:52](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L52)
|
|
54
|
+
|
|
55
|
+
#### Inherited from
|
|
56
|
+
|
|
57
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`failOnError`](FetchActionProperties.md#failonerror)
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### failOnTimeout?
|
|
62
|
+
|
|
63
|
+
> `optional` **failOnTimeout**: `boolean`
|
|
64
|
+
|
|
65
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:54](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L54)
|
|
66
|
+
|
|
67
|
+
#### Inherited from
|
|
68
|
+
|
|
69
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`failOnTimeout`](FetchActionProperties.md#failontimeout)
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### id?
|
|
74
|
+
|
|
75
|
+
> `optional` **id**: `string`
|
|
76
|
+
|
|
77
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:45](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L45)
|
|
78
|
+
|
|
79
|
+
#### Inherited from
|
|
80
|
+
|
|
81
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`id`](FetchActionProperties.md#id)
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### index?
|
|
86
|
+
|
|
87
|
+
> `optional` **index**: `number`
|
|
88
|
+
|
|
89
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:8](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L8)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### maxRetries?
|
|
94
|
+
|
|
95
|
+
> `optional` **maxRetries**: `number`
|
|
96
|
+
|
|
97
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:56](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L56)
|
|
98
|
+
|
|
99
|
+
#### Inherited from
|
|
100
|
+
|
|
101
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`maxRetries`](FetchActionProperties.md#maxretries)
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### name?
|
|
106
|
+
|
|
107
|
+
> `optional` **name**: `string`
|
|
108
|
+
|
|
109
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:46](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L46)
|
|
110
|
+
|
|
111
|
+
#### Inherited from
|
|
112
|
+
|
|
113
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`name`](FetchActionProperties.md#name)
|
|
114
|
+
|
|
115
|
+
***
|
|
116
|
+
|
|
117
|
+
### params?
|
|
118
|
+
|
|
119
|
+
> `optional` **params**: `any`
|
|
120
|
+
|
|
121
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:47](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L47)
|
|
122
|
+
|
|
123
|
+
#### Inherited from
|
|
124
|
+
|
|
125
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`params`](FetchActionProperties.md#params)
|
|
126
|
+
|
|
127
|
+
***
|
|
128
|
+
|
|
129
|
+
### storeAs?
|
|
130
|
+
|
|
131
|
+
> `optional` **storeAs**: `string`
|
|
132
|
+
|
|
133
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:49](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L49)
|
|
134
|
+
|
|
135
|
+
#### Inherited from
|
|
136
|
+
|
|
137
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`storeAs`](FetchActionProperties.md#storeas)
|
|
138
|
+
|
|
139
|
+
***
|
|
140
|
+
|
|
141
|
+
### timeoutMs?
|
|
142
|
+
|
|
143
|
+
> `optional` **timeoutMs**: `number`
|
|
144
|
+
|
|
145
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:55](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L55)
|
|
146
|
+
|
|
147
|
+
#### Inherited from
|
|
148
|
+
|
|
149
|
+
[`FetchActionProperties`](FetchActionProperties.md).[`timeoutMs`](FetchActionProperties.md#timeoutms)
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchActionProperties
|
|
6
|
+
|
|
7
|
+
# Interface: FetchActionProperties
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:74](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L74)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- [`BaseFetchActionProperties`](BaseFetchActionProperties.md)
|
|
14
|
+
|
|
15
|
+
## Extended by
|
|
16
|
+
|
|
17
|
+
- [`FetchActionInContext`](FetchActionInContext.md)
|
|
18
|
+
|
|
19
|
+
## Indexable
|
|
20
|
+
|
|
21
|
+
\[`key`: `string`\]: `any`
|
|
22
|
+
|
|
23
|
+
## Properties
|
|
24
|
+
|
|
25
|
+
### collectors?
|
|
26
|
+
|
|
27
|
+
> `optional` **collectors**: `_RequireAtLeastOne`\<[`BaseFetchCollectorActionProperties`](BaseFetchCollectorActionProperties.md), `"name"` \| `"id"`\>[]
|
|
28
|
+
|
|
29
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:75](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L75)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### failOnError?
|
|
34
|
+
|
|
35
|
+
> `optional` **failOnError**: `boolean`
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:52](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L52)
|
|
38
|
+
|
|
39
|
+
#### Inherited from
|
|
40
|
+
|
|
41
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`failOnError`](BaseFetchActionProperties.md#failonerror)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### failOnTimeout?
|
|
46
|
+
|
|
47
|
+
> `optional` **failOnTimeout**: `boolean`
|
|
48
|
+
|
|
49
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:54](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L54)
|
|
50
|
+
|
|
51
|
+
#### Inherited from
|
|
52
|
+
|
|
53
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`failOnTimeout`](BaseFetchActionProperties.md#failontimeout)
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### id?
|
|
58
|
+
|
|
59
|
+
> `optional` **id**: `string`
|
|
60
|
+
|
|
61
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:45](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L45)
|
|
62
|
+
|
|
63
|
+
#### Inherited from
|
|
64
|
+
|
|
65
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`id`](BaseFetchActionProperties.md#id)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### maxRetries?
|
|
70
|
+
|
|
71
|
+
> `optional` **maxRetries**: `number`
|
|
72
|
+
|
|
73
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:56](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L56)
|
|
74
|
+
|
|
75
|
+
#### Inherited from
|
|
76
|
+
|
|
77
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`maxRetries`](BaseFetchActionProperties.md#maxretries)
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### name?
|
|
82
|
+
|
|
83
|
+
> `optional` **name**: `string`
|
|
84
|
+
|
|
85
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:46](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L46)
|
|
86
|
+
|
|
87
|
+
#### Inherited from
|
|
88
|
+
|
|
89
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`name`](BaseFetchActionProperties.md#name)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### params?
|
|
94
|
+
|
|
95
|
+
> `optional` **params**: `any`
|
|
96
|
+
|
|
97
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:47](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L47)
|
|
98
|
+
|
|
99
|
+
#### Inherited from
|
|
100
|
+
|
|
101
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`params`](BaseFetchActionProperties.md#params)
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### storeAs?
|
|
106
|
+
|
|
107
|
+
> `optional` **storeAs**: `string`
|
|
108
|
+
|
|
109
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:49](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L49)
|
|
110
|
+
|
|
111
|
+
#### Inherited from
|
|
112
|
+
|
|
113
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`storeAs`](BaseFetchActionProperties.md#storeas)
|
|
114
|
+
|
|
115
|
+
***
|
|
116
|
+
|
|
117
|
+
### timeoutMs?
|
|
118
|
+
|
|
119
|
+
> `optional` **timeoutMs**: `number`
|
|
120
|
+
|
|
121
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:55](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L55)
|
|
122
|
+
|
|
123
|
+
#### Inherited from
|
|
124
|
+
|
|
125
|
+
[`BaseFetchActionProperties`](BaseFetchActionProperties.md).[`timeoutMs`](BaseFetchActionProperties.md#timeoutms)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchActionResult
|
|
6
|
+
|
|
7
|
+
# Interface: FetchActionResult\<R\>
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:36](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L36)
|
|
10
|
+
|
|
11
|
+
## Type Parameters
|
|
12
|
+
|
|
13
|
+
### R
|
|
14
|
+
|
|
15
|
+
`R` *extends* [`FetchReturnType`](../type-aliases/FetchReturnType.md) = [`FetchReturnType`](../type-aliases/FetchReturnType.md)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### error?
|
|
20
|
+
|
|
21
|
+
> `optional` **error**: `Error`
|
|
22
|
+
|
|
23
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:40](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L40)
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### meta?
|
|
28
|
+
|
|
29
|
+
> `optional` **meta**: `FetchActionMeta`
|
|
30
|
+
|
|
31
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:41](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L41)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### result?
|
|
36
|
+
|
|
37
|
+
> `optional` **result**: [`FetchReturnTypeFor`](../type-aliases/FetchReturnTypeFor.md)\<`R`\>
|
|
38
|
+
|
|
39
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:39](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L39)
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### returnType?
|
|
44
|
+
|
|
45
|
+
> `optional` **returnType**: `R`
|
|
46
|
+
|
|
47
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:38](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L38)
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### status
|
|
52
|
+
|
|
53
|
+
> **status**: [`FetchActionResultStatus`](../enumerations/FetchActionResultStatus.md)
|
|
54
|
+
|
|
55
|
+
Defined in: [packages/web-fetcher/src/action/fetch-action.ts:37](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/action/fetch-action.ts#L37)
|