@inceptionbg/main 2.0.233 → 2.0.236

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