@inceptionbg/main 2.0.169 → 2.0.170

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