1
- [ @ackee/antonio-core - v4.0.5 ] ( ../README.md ) / Antonio
1
+ [ @ackee/antonio-core - v4.1.1 ] ( ../README.md ) / Antonio
2
2
3
3
# Class: Antonio<TSuccessDataDefault, TErrorDataDefault\>
4
4
30
30
- [ patch] ( antonio.md#patch )
31
31
- [ post] ( antonio.md#post )
32
32
- [ put] ( antonio.md#put )
33
+ - [ request] ( antonio.md#request )
33
34
34
35
## Constructors
35
36
@@ -63,7 +64,7 @@ const api = new Antonio({
63
64
64
65
#### Defined in
65
66
66
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:16 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L16 )
67
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:30 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L30 )
67
68
68
69
## Properties
69
70
@@ -73,7 +74,7 @@ const api = new Antonio({
73
74
74
75
#### Defined in
75
76
76
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:14 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L14 )
77
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:28 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L28 )
77
78
78
79
---
79
80
@@ -83,7 +84,7 @@ const api = new Antonio({
83
84
84
85
#### Defined in
85
86
86
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:16 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L16 )
87
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:30 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L30 )
87
88
88
89
---
89
90
@@ -93,7 +94,7 @@ const api = new Antonio({
93
94
94
95
#### Defined in
95
96
96
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:15 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L15 )
97
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:29 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L29 )
97
98
98
99
## Methods
99
100
@@ -121,7 +122,7 @@ const api = new Antonio({
121
122
122
123
#### Defined in
123
124
124
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:73 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L73 )
125
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:98 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L98 )
125
126
126
127
---
127
128
@@ -149,7 +150,7 @@ const api = new Antonio({
149
150
150
151
#### Defined in
151
152
152
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:66 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L66 )
153
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:91 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L91 )
153
154
154
155
---
155
156
@@ -177,7 +178,7 @@ const api = new Antonio({
177
178
178
179
#### Defined in
179
180
180
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:80 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L80 )
181
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:105 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L105 )
181
182
182
183
---
183
184
@@ -205,7 +206,7 @@ const api = new Antonio({
205
206
206
207
#### Defined in
207
208
208
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:87 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L87 )
209
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:112 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L112 )
209
210
210
211
---
211
212
@@ -234,7 +235,7 @@ const api = new Antonio({
234
235
235
236
#### Defined in
236
237
237
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:58 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L58 )
238
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:83 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L83 )
238
239
239
240
---
240
241
@@ -263,7 +264,7 @@ const api = new Antonio({
263
264
264
265
#### Defined in
265
266
266
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:42 ] ( https://github.com/AckeeCZ/antonio/blob/27c90ed /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L42 )
267
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:67 ] ( https://github.com/AckeeCZ/antonio/blob/e92d67e /packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L67 )
267
268
268
269
---
269
270
@@ -292,4 +293,32 @@ const api = new Antonio({
292
293
293
294
#### Defined in
294
295
295
- [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:50] ( https://github.com/AckeeCZ/antonio/blob/27c90ed/packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L50 )
296
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:75] ( https://github.com/AckeeCZ/antonio/blob/e92d67e/packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L75 )
297
+
298
+ ---
299
+
300
+ ### request
301
+
302
+ ▸ ** request** <RM, TSuccessData, TErrorData\> (` props ` ): ` Promise ` <[ RequestResult] ( ../interfaces/requestresult.md ) <TSuccessData\>\>
303
+
304
+ #### Type parameters
305
+
306
+ | Name | Type |
307
+ | :------------- | :------------------------------------------------ |
308
+ | ` RM ` | ` RM ` : [ RequestMethod] ( ../README.md#requestmethod ) |
309
+ | ` TSuccessData ` | ` TSuccessData ` = ` TSuccessDataDefault ` |
310
+ | ` TErrorData ` | ` TErrorData ` = ` TErrorDataDefault ` |
311
+
312
+ #### Parameters
313
+
314
+ | Name | Type |
315
+ | :------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
316
+ | ` props ` | ` Readonly ` <[ RequestConfig] ( ../interfaces/requestconfig.md ) & ` RM ` extends ` "POST" ` \| ` "PUT" ` \| ` "PATCH" ` ? { ` body ` : ` Required ` <[ RequestBodyData] ( ../README.md#requestbodydata ) \> ; ` method ` : ` RM ` ; ` url ` : ` string ` } : { ` method ` : ` RM ` ; ` url ` : ` string ` }\> |
317
+
318
+ #### Returns
319
+
320
+ ` Promise ` <[ RequestResult] ( ../interfaces/requestresult.md ) <TSuccessData\>\>
321
+
322
+ #### Defined in
323
+
324
+ [ packages/@ackee/antonio-core /src/modules/core/models/Antonio.ts:56] ( https://github.com/AckeeCZ/antonio/blob/e92d67e/packages/@ackee/antonio-core/src/modules/core/models/Antonio.ts#L56 )
0 commit comments