@inceptionbg/main 2.0.254 → 2.0.256

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