@inceptionbg/main 2.0.197 → 2.0.198

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