@inceptionbg/main 2.0.248 → 2.0.249

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