@inceptionbg/main 2.0.187 → 2.0.189
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.d.ts +15 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/global.d.ts +688 -687
- package/package.json +48 -48
package/dist/types/global.d.ts
CHANGED
|
@@ -1,694 +1,695 @@
|
|
|
1
1
|
import { NavigateFunction, Location, LinkProps } from 'react-router-dom';
|
|
2
2
|
|
|
3
|
-
declare const ModuleIds = [
|
|
4
|
-
'DASHBOARD',
|
|
5
|
-
'ADMIN',
|
|
6
|
-
'EARCHIVE',
|
|
7
|
-
'ERDS',
|
|
8
|
-
'EINVOICE',
|
|
9
|
-
'EFORMS',
|
|
10
|
-
'EDMS',
|
|
11
|
-
'ESIGN',
|
|
12
|
-
'EVALIDATION',
|
|
13
|
-
'EPROCUREMENT',
|
|
14
|
-
'EREGISTER',
|
|
15
|
-
'PAM',
|
|
16
|
-
'ERP_CASH_REGISTER',
|
|
17
|
-
'ERP_RIF',
|
|
18
|
-
'ERP_MAT_ACC',
|
|
19
|
-
'ERP_SMALL_INVENTORY',
|
|
20
|
-
'ERP_WMS',
|
|
21
|
-
'JISUSZ_BACKOFFICE',
|
|
3
|
+
declare const ModuleIds = [
|
|
4
|
+
'DASHBOARD',
|
|
5
|
+
'ADMIN',
|
|
6
|
+
'EARCHIVE',
|
|
7
|
+
'ERDS',
|
|
8
|
+
'EINVOICE',
|
|
9
|
+
'EFORMS',
|
|
10
|
+
'EDMS',
|
|
11
|
+
'ESIGN',
|
|
12
|
+
'EVALIDATION',
|
|
13
|
+
'EPROCUREMENT',
|
|
14
|
+
'EREGISTER',
|
|
15
|
+
'PAM',
|
|
16
|
+
'ERP_CASH_REGISTER',
|
|
17
|
+
'ERP_RIF',
|
|
18
|
+
'ERP_MAT_ACC',
|
|
19
|
+
'ERP_SMALL_INVENTORY',
|
|
20
|
+
'ERP_WMS',
|
|
21
|
+
'JISUSZ_BACKOFFICE',
|
|
22
22
|
] as const;
|
|
23
23
|
|
|
24
24
|
type IModuleId = (typeof ModuleIds)[number];
|
|
25
25
|
|
|
26
|
-
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG' | 'PROD_PPLCG';
|
|
27
|
-
type IServiceApi =
|
|
28
|
-
| 'auth'
|
|
29
|
-
| 'idm'
|
|
30
|
-
| 'codebook'
|
|
31
|
-
| 'auditLog'
|
|
32
|
-
| 'notifications'
|
|
33
|
-
| 'indexData'
|
|
34
|
-
| 'registration'
|
|
35
|
-
| 'reportTemplates'
|
|
36
|
-
| 'procurement'
|
|
37
|
-
| 'archive'
|
|
38
|
-
| 'invoice'
|
|
39
|
-
| 'edms'
|
|
40
|
-
| 'rif'
|
|
41
|
-
| 'cashRegister'
|
|
42
|
-
| 'jisuszProxy'
|
|
43
|
-
| 'fosterCare'
|
|
44
|
-
| 'article'
|
|
45
|
-
| 'approval'
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
get(headerName: string,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
getContentType(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
getContentLength(
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
getAccept(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
getUserAgent(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
getContentEncoding(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
getAuthorization(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
| '
|
|
173
|
-
| '
|
|
174
|
-
| '
|
|
175
|
-
| '
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
|
180
|
-
| 'text/
|
|
181
|
-
| '
|
|
182
|
-
| '
|
|
183
|
-
| 'application/
|
|
184
|
-
| 'application/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
| '
|
|
199
|
-
| 'Content-
|
|
200
|
-
| '
|
|
201
|
-
| '
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
| '
|
|
311
|
-
| '
|
|
312
|
-
| '
|
|
313
|
-
| '
|
|
314
|
-
| '
|
|
315
|
-
| '
|
|
316
|
-
| '
|
|
317
|
-
| '
|
|
318
|
-
| '
|
|
319
|
-
| '
|
|
320
|
-
| '
|
|
321
|
-
| '
|
|
322
|
-
| '
|
|
323
|
-
| '
|
|
324
|
-
| '
|
|
325
|
-
| '
|
|
326
|
-
| '
|
|
327
|
-
| '
|
|
328
|
-
| '
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
| '
|
|
333
|
-
| '
|
|
334
|
-
| '
|
|
335
|
-
| '
|
|
336
|
-
| '
|
|
337
|
-
| '
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
| '
|
|
342
|
-
| '
|
|
343
|
-
| '
|
|
344
|
-
| '
|
|
345
|
-
| '
|
|
346
|
-
| '
|
|
347
|
-
| '
|
|
348
|
-
| '
|
|
349
|
-
| '
|
|
350
|
-
| '
|
|
351
|
-
| '
|
|
352
|
-
| '
|
|
353
|
-
| '
|
|
354
|
-
| '
|
|
355
|
-
| '
|
|
356
|
-
| '
|
|
357
|
-
| '
|
|
358
|
-
| '
|
|
359
|
-
| '
|
|
360
|
-
| '
|
|
361
|
-
| '
|
|
362
|
-
| '
|
|
363
|
-
| '
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
) =>
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
<T = any, R = AxiosResponse<T>, D = any>(
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
var
|
|
671
|
-
var
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
var
|
|
676
|
-
var
|
|
677
|
-
var
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
26
|
+
type IEnv = 'DEV' | 'TEST' | 'PROD' | 'LOCAL' | 'UAT' | 'TEST_PPLCG' | 'PROD_PPLCG';
|
|
27
|
+
type IServiceApi =
|
|
28
|
+
| 'auth'
|
|
29
|
+
| 'idm'
|
|
30
|
+
| 'codebook'
|
|
31
|
+
| 'auditLog'
|
|
32
|
+
| 'notifications'
|
|
33
|
+
| 'indexData'
|
|
34
|
+
| 'registration'
|
|
35
|
+
| 'reportTemplates'
|
|
36
|
+
| 'procurement'
|
|
37
|
+
| 'archive'
|
|
38
|
+
| 'invoice'
|
|
39
|
+
| 'edms'
|
|
40
|
+
| 'rif'
|
|
41
|
+
| 'cashRegister'
|
|
42
|
+
| 'jisuszProxy'
|
|
43
|
+
| 'fosterCare'
|
|
44
|
+
| 'article'
|
|
45
|
+
| 'approval'
|
|
46
|
+
| 'messenger'
|
|
47
|
+
|
|
48
|
+
type CustomHeader = {
|
|
49
|
+
public?: boolean;
|
|
50
|
+
baseUrl?: string;
|
|
51
|
+
service?: IServiceApi;
|
|
52
|
+
token?: string;
|
|
53
|
+
noToast?: boolean;
|
|
54
|
+
noErrors?: boolean;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// TypeScript Version: 4.7
|
|
58
|
+
type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
59
|
+
|
|
60
|
+
interface RawAxiosHeaders {
|
|
61
|
+
[key: string]: AxiosHeaderValue;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type MethodsHeaders = Partial<
|
|
65
|
+
{
|
|
66
|
+
[Key in Method as Lowercase<Key>]: AxiosHeaders;
|
|
67
|
+
} & { common: AxiosHeaders }
|
|
68
|
+
>;
|
|
69
|
+
|
|
70
|
+
type AxiosHeaderMatcher =
|
|
71
|
+
| string
|
|
72
|
+
| RegExp
|
|
73
|
+
| ((this: AxiosHeaders, value: string, name: string) => boolean);
|
|
74
|
+
|
|
75
|
+
type AxiosHeaderParser = (
|
|
76
|
+
this: AxiosHeaders,
|
|
77
|
+
value: AxiosHeaderValue,
|
|
78
|
+
header: string
|
|
79
|
+
) => any;
|
|
80
|
+
|
|
81
|
+
declare class AxiosHeaders {
|
|
82
|
+
constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
|
|
83
|
+
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
|
|
86
|
+
set(
|
|
87
|
+
headerName?: string,
|
|
88
|
+
value?: AxiosHeaderValue,
|
|
89
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
90
|
+
): AxiosHeaders;
|
|
91
|
+
set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
|
|
92
|
+
|
|
93
|
+
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
|
94
|
+
get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue;
|
|
95
|
+
|
|
96
|
+
has(header: string, matcher?: AxiosHeaderMatcher): boolean;
|
|
97
|
+
|
|
98
|
+
delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
|
|
99
|
+
|
|
100
|
+
clear(matcher?: AxiosHeaderMatcher): boolean;
|
|
101
|
+
|
|
102
|
+
normalize(format: boolean): AxiosHeaders;
|
|
103
|
+
|
|
104
|
+
concat(
|
|
105
|
+
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
106
|
+
): AxiosHeaders;
|
|
107
|
+
|
|
108
|
+
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
|
109
|
+
|
|
110
|
+
static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
|
111
|
+
|
|
112
|
+
static accessor(header: string | string[]): AxiosHeaders;
|
|
113
|
+
|
|
114
|
+
static concat(
|
|
115
|
+
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
116
|
+
): AxiosHeaders;
|
|
117
|
+
|
|
118
|
+
setContentType(
|
|
119
|
+
value: ContentType,
|
|
120
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
121
|
+
): AxiosHeaders;
|
|
122
|
+
getContentType(parser?: RegExp): RegExpExecArray | null;
|
|
123
|
+
getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
124
|
+
hasContentType(matcher?: AxiosHeaderMatcher): boolean;
|
|
125
|
+
|
|
126
|
+
setContentLength(
|
|
127
|
+
value: AxiosHeaderValue,
|
|
128
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
129
|
+
): AxiosHeaders;
|
|
130
|
+
getContentLength(parser?: RegExp): RegExpExecArray | null;
|
|
131
|
+
getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
132
|
+
hasContentLength(matcher?: AxiosHeaderMatcher): boolean;
|
|
133
|
+
|
|
134
|
+
setAccept(
|
|
135
|
+
value: AxiosHeaderValue,
|
|
136
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
137
|
+
): AxiosHeaders;
|
|
138
|
+
getAccept(parser?: RegExp): RegExpExecArray | null;
|
|
139
|
+
getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
140
|
+
hasAccept(matcher?: AxiosHeaderMatcher): boolean;
|
|
141
|
+
|
|
142
|
+
setUserAgent(
|
|
143
|
+
value: AxiosHeaderValue,
|
|
144
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
145
|
+
): AxiosHeaders;
|
|
146
|
+
getUserAgent(parser?: RegExp): RegExpExecArray | null;
|
|
147
|
+
getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
148
|
+
hasUserAgent(matcher?: AxiosHeaderMatcher): boolean;
|
|
149
|
+
|
|
150
|
+
setContentEncoding(
|
|
151
|
+
value: AxiosHeaderValue,
|
|
152
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
153
|
+
): AxiosHeaders;
|
|
154
|
+
getContentEncoding(parser?: RegExp): RegExpExecArray | null;
|
|
155
|
+
getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
156
|
+
hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean;
|
|
157
|
+
|
|
158
|
+
setAuthorization(
|
|
159
|
+
value: AxiosHeaderValue,
|
|
160
|
+
rewrite?: boolean | AxiosHeaderMatcher
|
|
161
|
+
): AxiosHeaders;
|
|
162
|
+
getAuthorization(parser?: RegExp): RegExpExecArray | null;
|
|
163
|
+
getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue;
|
|
164
|
+
hasAuthorization(matcher?: AxiosHeaderMatcher): boolean;
|
|
165
|
+
|
|
166
|
+
getSetCookie(): string[];
|
|
167
|
+
|
|
168
|
+
[Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
type CommonRequestHeadersList =
|
|
172
|
+
| 'Accept'
|
|
173
|
+
| 'Content-Length'
|
|
174
|
+
| 'User-Agent'
|
|
175
|
+
| 'Content-Encoding'
|
|
176
|
+
| 'Authorization';
|
|
177
|
+
|
|
178
|
+
type ContentType =
|
|
179
|
+
| AxiosHeaderValue
|
|
180
|
+
| 'text/html'
|
|
181
|
+
| 'text/plain'
|
|
182
|
+
| 'multipart/form-data'
|
|
183
|
+
| 'application/json'
|
|
184
|
+
| 'application/x-www-form-urlencoded'
|
|
185
|
+
| 'application/octet-stream';
|
|
186
|
+
|
|
187
|
+
type RawAxiosRequestHeaders = Partial<
|
|
188
|
+
RawAxiosHeaders & {
|
|
189
|
+
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
|
190
|
+
} & {
|
|
191
|
+
'Content-Type': ContentType;
|
|
192
|
+
}
|
|
193
|
+
>;
|
|
194
|
+
|
|
195
|
+
type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders;
|
|
196
|
+
|
|
197
|
+
type CommonResponseHeadersList =
|
|
198
|
+
| 'Server'
|
|
199
|
+
| 'Content-Type'
|
|
200
|
+
| 'Content-Length'
|
|
201
|
+
| 'Cache-Control'
|
|
202
|
+
| 'Content-Encoding';
|
|
203
|
+
|
|
204
|
+
type RawCommonResponseHeaders = {
|
|
205
|
+
[Key in CommonResponseHeadersList]: AxiosHeaderValue;
|
|
206
|
+
} & {
|
|
207
|
+
'set-cookie': string[];
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
type RawAxiosResponseHeaders = Partial<RawAxiosHeaders & RawCommonResponseHeaders>;
|
|
211
|
+
|
|
212
|
+
type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders;
|
|
213
|
+
|
|
214
|
+
interface AxiosRequestTransformer {
|
|
215
|
+
(this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface AxiosResponseTransformer {
|
|
219
|
+
(
|
|
220
|
+
this: InternalAxiosRequestConfig,
|
|
221
|
+
data: any,
|
|
222
|
+
headers: AxiosResponseHeaders,
|
|
223
|
+
status?: number
|
|
224
|
+
): any;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface AxiosAdapter {
|
|
228
|
+
(config: InternalAxiosRequestConfig): AxiosPromise;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface AxiosBasicCredentials {
|
|
232
|
+
username: string;
|
|
233
|
+
password: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface AxiosProxyConfig {
|
|
237
|
+
host: string;
|
|
238
|
+
port: number;
|
|
239
|
+
auth?: AxiosBasicCredentials;
|
|
240
|
+
protocol?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare enum HttpStatusCode {
|
|
244
|
+
Continue = 100,
|
|
245
|
+
SwitchingProtocols = 101,
|
|
246
|
+
Processing = 102,
|
|
247
|
+
EarlyHints = 103,
|
|
248
|
+
Ok = 200,
|
|
249
|
+
Created = 201,
|
|
250
|
+
Accepted = 202,
|
|
251
|
+
NonAuthoritativeInformation = 203,
|
|
252
|
+
NoContent = 204,
|
|
253
|
+
ResetContent = 205,
|
|
254
|
+
PartialContent = 206,
|
|
255
|
+
MultiStatus = 207,
|
|
256
|
+
AlreadyReported = 208,
|
|
257
|
+
ImUsed = 226,
|
|
258
|
+
MultipleChoices = 300,
|
|
259
|
+
MovedPermanently = 301,
|
|
260
|
+
Found = 302,
|
|
261
|
+
SeeOther = 303,
|
|
262
|
+
NotModified = 304,
|
|
263
|
+
UseProxy = 305,
|
|
264
|
+
Unused = 306,
|
|
265
|
+
TemporaryRedirect = 307,
|
|
266
|
+
PermanentRedirect = 308,
|
|
267
|
+
BadRequest = 400,
|
|
268
|
+
Unauthorized = 401,
|
|
269
|
+
PaymentRequired = 402,
|
|
270
|
+
Forbidden = 403,
|
|
271
|
+
NotFound = 404,
|
|
272
|
+
MethodNotAllowed = 405,
|
|
273
|
+
NotAcceptable = 406,
|
|
274
|
+
ProxyAuthenticationRequired = 407,
|
|
275
|
+
RequestTimeout = 408,
|
|
276
|
+
Conflict = 409,
|
|
277
|
+
Gone = 410,
|
|
278
|
+
LengthRequired = 411,
|
|
279
|
+
PreconditionFailed = 412,
|
|
280
|
+
PayloadTooLarge = 413,
|
|
281
|
+
UriTooLong = 414,
|
|
282
|
+
UnsupportedMediaType = 415,
|
|
283
|
+
RangeNotSatisfiable = 416,
|
|
284
|
+
ExpectationFailed = 417,
|
|
285
|
+
ImATeapot = 418,
|
|
286
|
+
MisdirectedRequest = 421,
|
|
287
|
+
UnprocessableEntity = 422,
|
|
288
|
+
Locked = 423,
|
|
289
|
+
FailedDependency = 424,
|
|
290
|
+
TooEarly = 425,
|
|
291
|
+
UpgradeRequired = 426,
|
|
292
|
+
PreconditionRequired = 428,
|
|
293
|
+
TooManyRequests = 429,
|
|
294
|
+
RequestHeaderFieldsTooLarge = 431,
|
|
295
|
+
UnavailableForLegalReasons = 451,
|
|
296
|
+
InternalServerError = 500,
|
|
297
|
+
NotImplemented = 501,
|
|
298
|
+
BadGateway = 502,
|
|
299
|
+
ServiceUnavailable = 503,
|
|
300
|
+
GatewayTimeout = 504,
|
|
301
|
+
HttpVersionNotSupported = 505,
|
|
302
|
+
VariantAlsoNegotiates = 506,
|
|
303
|
+
InsufficientStorage = 507,
|
|
304
|
+
LoopDetected = 508,
|
|
305
|
+
NotExtended = 510,
|
|
306
|
+
NetworkAuthenticationRequired = 511,
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
type Method =
|
|
310
|
+
| 'get'
|
|
311
|
+
| 'GET'
|
|
312
|
+
| 'delete'
|
|
313
|
+
| 'DELETE'
|
|
314
|
+
| 'head'
|
|
315
|
+
| 'HEAD'
|
|
316
|
+
| 'options'
|
|
317
|
+
| 'OPTIONS'
|
|
318
|
+
| 'post'
|
|
319
|
+
| 'POST'
|
|
320
|
+
| 'put'
|
|
321
|
+
| 'PUT'
|
|
322
|
+
| 'patch'
|
|
323
|
+
| 'PATCH'
|
|
324
|
+
| 'purge'
|
|
325
|
+
| 'PURGE'
|
|
326
|
+
| 'link'
|
|
327
|
+
| 'LINK'
|
|
328
|
+
| 'unlink'
|
|
329
|
+
| 'UNLINK';
|
|
330
|
+
|
|
331
|
+
type ResponseType =
|
|
332
|
+
| 'arraybuffer'
|
|
333
|
+
| 'blob'
|
|
334
|
+
| 'document'
|
|
335
|
+
| 'json'
|
|
336
|
+
| 'text'
|
|
337
|
+
| 'stream'
|
|
338
|
+
| 'formdata';
|
|
339
|
+
|
|
340
|
+
type responseEncoding =
|
|
341
|
+
| 'ascii'
|
|
342
|
+
| 'ASCII'
|
|
343
|
+
| 'ansi'
|
|
344
|
+
| 'ANSI'
|
|
345
|
+
| 'binary'
|
|
346
|
+
| 'BINARY'
|
|
347
|
+
| 'base64'
|
|
348
|
+
| 'BASE64'
|
|
349
|
+
| 'base64url'
|
|
350
|
+
| 'BASE64URL'
|
|
351
|
+
| 'hex'
|
|
352
|
+
| 'HEX'
|
|
353
|
+
| 'latin1'
|
|
354
|
+
| 'LATIN1'
|
|
355
|
+
| 'ucs-2'
|
|
356
|
+
| 'UCS-2'
|
|
357
|
+
| 'ucs2'
|
|
358
|
+
| 'UCS2'
|
|
359
|
+
| 'utf-8'
|
|
360
|
+
| 'UTF-8'
|
|
361
|
+
| 'utf8'
|
|
362
|
+
| 'UTF8'
|
|
363
|
+
| 'utf16le'
|
|
364
|
+
| 'UTF16LE';
|
|
365
|
+
|
|
366
|
+
interface TransitionalOptions {
|
|
367
|
+
silentJSONParsing?: boolean;
|
|
368
|
+
forcedJSONParsing?: boolean;
|
|
369
|
+
clarifyTimeoutError?: boolean;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
interface GenericAbortSignal {
|
|
373
|
+
readonly aborted: boolean;
|
|
374
|
+
onabort?: ((...args: any) => any) | null;
|
|
375
|
+
addEventListener?: (...args: any) => any;
|
|
376
|
+
removeEventListener?: (...args: any) => any;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
interface FormDataVisitorHelpers {
|
|
380
|
+
defaultVisitor: SerializerVisitor;
|
|
381
|
+
convertValue: (value: any) => any;
|
|
382
|
+
isVisitable: (value: any) => boolean;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface SerializerVisitor {
|
|
386
|
+
(
|
|
387
|
+
this: GenericFormData,
|
|
388
|
+
value: any,
|
|
389
|
+
key: string | number,
|
|
390
|
+
path: null | Array<string | number>,
|
|
391
|
+
helpers: FormDataVisitorHelpers
|
|
392
|
+
): boolean;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
interface SerializerOptions {
|
|
396
|
+
visitor?: SerializerVisitor;
|
|
397
|
+
dots?: boolean;
|
|
398
|
+
metaTokens?: boolean;
|
|
399
|
+
indexes?: boolean | null;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// tslint:disable-next-line
|
|
403
|
+
interface FormSerializerOptions extends SerializerOptions {}
|
|
404
|
+
|
|
405
|
+
interface ParamEncoder {
|
|
406
|
+
(value: any, defaultEncoder: (value: any) => any): any;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface CustomParamsSerializer {
|
|
410
|
+
(params: Record<string, any>, options?: ParamsSerializerOptions): string;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
interface ParamsSerializerOptions extends SerializerOptions {
|
|
414
|
+
encode?: ParamEncoder;
|
|
415
|
+
serialize?: CustomParamsSerializer;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
type MaxUploadRate = number;
|
|
419
|
+
|
|
420
|
+
type MaxDownloadRate = number;
|
|
421
|
+
|
|
422
|
+
type BrowserProgressEvent = any;
|
|
423
|
+
|
|
424
|
+
interface AxiosProgressEvent {
|
|
425
|
+
loaded: number;
|
|
426
|
+
total?: number;
|
|
427
|
+
progress?: number;
|
|
428
|
+
bytes: number;
|
|
429
|
+
rate?: number;
|
|
430
|
+
estimated?: number;
|
|
431
|
+
upload?: boolean;
|
|
432
|
+
download?: boolean;
|
|
433
|
+
event?: BrowserProgressEvent;
|
|
434
|
+
lengthComputable: boolean;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
type Milliseconds = number;
|
|
438
|
+
|
|
439
|
+
type AxiosAdapterName = 'fetch' | 'xhr' | 'http' | (string & {});
|
|
440
|
+
|
|
441
|
+
type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName;
|
|
442
|
+
|
|
443
|
+
type AddressFamily = 4 | 6 | undefined;
|
|
444
|
+
|
|
445
|
+
interface LookupAddressEntry {
|
|
446
|
+
address: string;
|
|
447
|
+
family?: AddressFamily;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
type LookupAddress = string | LookupAddressEntry;
|
|
451
|
+
|
|
452
|
+
interface AxiosRequestConfig<D = any> {
|
|
453
|
+
url?: string;
|
|
454
|
+
method?: Method | string;
|
|
455
|
+
baseURL?: string;
|
|
456
|
+
allowAbsoluteUrls?: boolean;
|
|
457
|
+
transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[];
|
|
458
|
+
transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[];
|
|
459
|
+
headers?: ((RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders) & CustomHeader;
|
|
460
|
+
params?: any;
|
|
461
|
+
paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer;
|
|
462
|
+
data?: D;
|
|
463
|
+
timeout?: Milliseconds;
|
|
464
|
+
timeoutErrorMessage?: string;
|
|
465
|
+
withCredentials?: boolean;
|
|
466
|
+
adapter?: AxiosAdapterConfig | AxiosAdapterConfig[];
|
|
467
|
+
auth?: AxiosBasicCredentials;
|
|
468
|
+
responseType?: ResponseType;
|
|
469
|
+
responseEncoding?: responseEncoding | string;
|
|
470
|
+
xsrfCookieName?: string;
|
|
471
|
+
xsrfHeaderName?: string;
|
|
472
|
+
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
473
|
+
onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void;
|
|
474
|
+
maxContentLength?: number;
|
|
475
|
+
validateStatus?: ((status: number) => boolean) | null;
|
|
476
|
+
maxBodyLength?: number;
|
|
477
|
+
maxRedirects?: number;
|
|
478
|
+
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
|
479
|
+
beforeRedirect?: (
|
|
480
|
+
options: Record<string, any>,
|
|
481
|
+
responseDetails: { headers: Record<string, string>; statusCode: HttpStatusCode }
|
|
482
|
+
) => void;
|
|
483
|
+
socketPath?: string | null;
|
|
484
|
+
transport?: any;
|
|
485
|
+
httpAgent?: any;
|
|
486
|
+
httpsAgent?: any;
|
|
487
|
+
proxy?: AxiosProxyConfig | false;
|
|
488
|
+
cancelToken?: CancelToken;
|
|
489
|
+
decompress?: boolean;
|
|
490
|
+
transitional?: TransitionalOptions;
|
|
491
|
+
signal?: GenericAbortSignal;
|
|
492
|
+
insecureHTTPParser?: boolean;
|
|
493
|
+
env?: {
|
|
494
|
+
FormData?: new (...args: any[]) => object;
|
|
495
|
+
};
|
|
496
|
+
formSerializer?: FormSerializerOptions;
|
|
497
|
+
family?: AddressFamily;
|
|
498
|
+
lookup?:
|
|
499
|
+
| ((
|
|
500
|
+
hostname: string,
|
|
501
|
+
options: object,
|
|
502
|
+
cb: (
|
|
503
|
+
err: Error | null,
|
|
504
|
+
address: LookupAddress | LookupAddress[],
|
|
505
|
+
family?: AddressFamily
|
|
506
|
+
) => void
|
|
507
|
+
) => void)
|
|
508
|
+
| ((
|
|
509
|
+
hostname: string,
|
|
510
|
+
options: object
|
|
511
|
+
) => Promise<
|
|
512
|
+
| [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily]
|
|
513
|
+
| LookupAddress
|
|
514
|
+
>);
|
|
515
|
+
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
|
|
516
|
+
fetchOptions?: Record<string, any>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
interface InternalAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
|
|
520
|
+
headers: AxiosRequestHeaders;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
interface HeadersDefaults {
|
|
524
|
+
common: RawAxiosRequestHeaders;
|
|
525
|
+
delete: RawAxiosRequestHeaders;
|
|
526
|
+
get: RawAxiosRequestHeaders;
|
|
527
|
+
head: RawAxiosRequestHeaders;
|
|
528
|
+
post: RawAxiosRequestHeaders;
|
|
529
|
+
put: RawAxiosRequestHeaders;
|
|
530
|
+
patch: RawAxiosRequestHeaders;
|
|
531
|
+
options?: RawAxiosRequestHeaders;
|
|
532
|
+
purge?: RawAxiosRequestHeaders;
|
|
533
|
+
link?: RawAxiosRequestHeaders;
|
|
534
|
+
unlink?: RawAxiosRequestHeaders;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
|
538
|
+
headers: HeadersDefaults;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
interface CreateAxiosDefaults<D = any>
|
|
542
|
+
extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
|
543
|
+
headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial<HeadersDefaults>;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
interface AxiosResponse<T = any, D = any> {
|
|
547
|
+
data: T;
|
|
548
|
+
status: number;
|
|
549
|
+
statusText: string;
|
|
550
|
+
headers: RawAxiosResponseHeaders | AxiosResponseHeaders;
|
|
551
|
+
config: InternalAxiosRequestConfig<D>;
|
|
552
|
+
request?: any;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
type AxiosPromise<T = any> = Promise<AxiosResponse<T>>;
|
|
556
|
+
|
|
557
|
+
interface Cancel {
|
|
558
|
+
message: string | undefined;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
interface CancelToken {
|
|
562
|
+
promise: Promise<Cancel>;
|
|
563
|
+
reason?: Cancel;
|
|
564
|
+
throwIfRequested(): void;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
interface AxiosInterceptorOptions {
|
|
568
|
+
synchronous?: boolean;
|
|
569
|
+
runWhen?: (config: InternalAxiosRequestConfig) => boolean;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
type AxiosRequestInterceptorUse<T> = (
|
|
573
|
+
onFulfilled?: ((value: T) => T | Promise<T>) | null,
|
|
574
|
+
onRejected?: ((error: any) => any) | null,
|
|
575
|
+
options?: AxiosInterceptorOptions
|
|
576
|
+
) => number;
|
|
577
|
+
|
|
578
|
+
type AxiosResponseInterceptorUse<T> = (
|
|
579
|
+
onFulfilled?: ((value: T) => T | Promise<T>) | null,
|
|
580
|
+
onRejected?: ((error: any) => any) | null
|
|
581
|
+
) => number;
|
|
582
|
+
|
|
583
|
+
interface AxiosInterceptorManager<V> {
|
|
584
|
+
use: V extends AxiosResponse
|
|
585
|
+
? AxiosResponseInterceptorUse<V>
|
|
586
|
+
: AxiosRequestInterceptorUse<V>;
|
|
587
|
+
eject(id: number): void;
|
|
588
|
+
clear(): void;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
declare class Axios {
|
|
592
|
+
constructor(config?: AxiosRequestConfig);
|
|
593
|
+
defaults: AxiosDefaults;
|
|
594
|
+
interceptors: {
|
|
595
|
+
request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
|
|
596
|
+
response: AxiosInterceptorManager<AxiosResponse>;
|
|
597
|
+
};
|
|
598
|
+
getUri(config?: AxiosRequestConfig): string;
|
|
599
|
+
request<T = any, R = AxiosResponse<T>, D = any>(
|
|
600
|
+
config: AxiosRequestConfig<D>
|
|
601
|
+
): Promise<R>;
|
|
602
|
+
get<T = any, R = AxiosResponse<T>, D = any>(
|
|
603
|
+
url: string,
|
|
604
|
+
config?: AxiosRequestConfig<D>
|
|
605
|
+
): Promise<R>;
|
|
606
|
+
delete<T = any, R = AxiosResponse<T>, D = any>(
|
|
607
|
+
url: string,
|
|
608
|
+
config?: AxiosRequestConfig<D>
|
|
609
|
+
): Promise<R>;
|
|
610
|
+
head<T = any, R = AxiosResponse<T>, D = any>(
|
|
611
|
+
url: string,
|
|
612
|
+
config?: AxiosRequestConfig<D>
|
|
613
|
+
): Promise<R>;
|
|
614
|
+
options<T = any, R = AxiosResponse<T>, D = any>(
|
|
615
|
+
url: string,
|
|
616
|
+
config?: AxiosRequestConfig<D>
|
|
617
|
+
): Promise<R>;
|
|
618
|
+
post<T = any, R = AxiosResponse<T>, D = any>(
|
|
619
|
+
url: string,
|
|
620
|
+
data?: D,
|
|
621
|
+
config?: AxiosRequestConfig<D>
|
|
622
|
+
): Promise<R>;
|
|
623
|
+
put<T = any, R = AxiosResponse<T>, D = any>(
|
|
624
|
+
url: string,
|
|
625
|
+
data?: D,
|
|
626
|
+
config?: AxiosRequestConfig<D>
|
|
627
|
+
): Promise<R>;
|
|
628
|
+
patch<T = any, R = AxiosResponse<T>, D = any>(
|
|
629
|
+
url: string,
|
|
630
|
+
data?: D,
|
|
631
|
+
config?: AxiosRequestConfig<D>
|
|
632
|
+
): Promise<R>;
|
|
633
|
+
postForm<T = any, R = AxiosResponse<T>, D = any>(
|
|
634
|
+
url: string,
|
|
635
|
+
data?: D,
|
|
636
|
+
config?: AxiosRequestConfig<D>
|
|
637
|
+
): Promise<R>;
|
|
638
|
+
putForm<T = any, R = AxiosResponse<T>, D = any>(
|
|
639
|
+
url: string,
|
|
640
|
+
data?: D,
|
|
641
|
+
config?: AxiosRequestConfig<D>
|
|
642
|
+
): Promise<R>;
|
|
643
|
+
patchForm<T = any, R = AxiosResponse<T>, D = any>(
|
|
644
|
+
url: string,
|
|
645
|
+
data?: D,
|
|
646
|
+
config?: AxiosRequestConfig<D>
|
|
647
|
+
): Promise<R>;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
interface AxiosInstance extends Axios {
|
|
651
|
+
<T = any, R = AxiosResponse<T>, D = any>(config: AxiosRequestConfig<D>): Promise<R>;
|
|
652
|
+
<T = any, R = AxiosResponse<T>, D = any>(
|
|
653
|
+
url: string,
|
|
654
|
+
config?: AxiosRequestConfig<D>
|
|
655
|
+
): Promise<R>;
|
|
656
|
+
|
|
657
|
+
create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
658
|
+
defaults: Omit<AxiosDefaults, 'headers'> & {
|
|
659
|
+
headers: HeadersDefaults & {
|
|
660
|
+
[key: string]: AxiosHeaderValue;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
interface GenericFormData {
|
|
666
|
+
append(name: string, value: any, options?: any): any;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
declare global {
|
|
670
|
+
var environment: IEnv;
|
|
671
|
+
var moduleId: IModuleId | null;
|
|
672
|
+
var moduleUrls: {
|
|
673
|
+
[id in IModuleId]?: string;
|
|
674
|
+
};
|
|
675
|
+
var axiosInstance: AxiosInstance;
|
|
676
|
+
var useNavigate: () => NavigateFunction;
|
|
677
|
+
var useLocation: () => Location;
|
|
678
|
+
var Link: React.ForwardRefExoticComponent<
|
|
679
|
+
LinkProps & React.RefAttributes<HTMLAnchorElement>
|
|
680
|
+
>;
|
|
681
|
+
var appVersion: string | undefined;
|
|
682
|
+
var api: {
|
|
683
|
+
apiUrl: string;
|
|
684
|
+
clientId: string;
|
|
685
|
+
authScope?: string;
|
|
686
|
+
additionalScopes?: string[];
|
|
687
|
+
redirectUrl?: string;
|
|
688
|
+
};
|
|
689
|
+
var zE: {
|
|
690
|
+
show: () => void;
|
|
691
|
+
hide: () => void;
|
|
692
|
+
activate: () => void;
|
|
693
|
+
setLocale: (locale: string) => void;
|
|
694
|
+
};
|
|
694
695
|
}
|