@inceptionbg/main 2.0.206 → 2.0.207

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