@inceptionbg/main 2.0.215 → 2.0.216

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