@praxisui/files-upload 10.0.0-rc.71 → 10.0.0-rc.72
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.
- package/README.md +4 -3
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-files-upload.mjs +1073 -142
- package/package.json +5 -5
- package/types/praxisui-files-upload.d.ts +291 -12
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/files-upload",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.72",
|
|
4
4
|
"description": "File upload components and services for Praxis UI with presigned and direct strategies, quotas and rate-limit handling.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/cdk": "^21.0.0",
|
|
8
8
|
"@angular/core": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
11
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/core": "^10.0.0-rc.72",
|
|
11
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.72",
|
|
12
|
+
"@praxisui/settings-panel": "^10.0.0-rc.72",
|
|
13
13
|
"@angular/forms": "^21.0.0",
|
|
14
14
|
"@angular/router": "^21.0.0",
|
|
15
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
15
|
+
"@praxisui/ai": "^10.0.0-rc.72",
|
|
16
16
|
"rxjs": "~7.8.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _praxisui_files_upload from '@praxisui/files-upload';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, OnDestroy, NgZone, OnInit, OnChanges, AfterViewInit, EventEmitter, ViewContainerRef, ChangeDetectorRef,
|
|
3
|
+
import { InjectionToken, OnDestroy, NgZone, OnInit, OnChanges, AfterViewInit, EventEmitter, ViewContainerRef, ChangeDetectorRef, Provider, DestroyRef } from '@angular/core';
|
|
4
4
|
import { FormControl, ValidatorFn, FormGroup, FormBuilder } from '@angular/forms';
|
|
5
|
-
import { PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nService, AsyncConfigStorage, ComponentDocMeta, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
5
|
+
import { EnterpriseRuntimeContextService, ApiUrlConfig, PraxisI18nDictionary, PraxisI18nConfig, PraxisI18nService, AsyncConfigStorage, PraxisFileUploadPort, PraxisFileUploadRequest, PraxisFileUploadEvent, PraxisFileOperationOptions, PraxisStoredFileMetadata, PraxisFileContentDisposition, PraxisFileUploadEffectiveConfig, ComponentDocMeta, AiCapability, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
6
6
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
7
7
|
import { HttpClient, HttpEvent, HttpHeaders } from '@angular/common/http';
|
|
8
8
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
@@ -164,28 +164,60 @@ declare enum ScanStatus {
|
|
|
164
164
|
SCANNING = "SCANNING",
|
|
165
165
|
CLEAN = "CLEAN",
|
|
166
166
|
INFECTED = "INFECTED",
|
|
167
|
-
FAILED = "FAILED"
|
|
167
|
+
FAILED = "FAILED",
|
|
168
|
+
UNAVAILABLE = "UNAVAILABLE",
|
|
169
|
+
SKIPPED = "SKIPPED"
|
|
168
170
|
}
|
|
169
171
|
|
|
172
|
+
type FileLifecycleStatus = 'STAGED' | 'PENDING_APPROVAL' | 'ACTIVE' | 'DELETED';
|
|
170
173
|
/** Metadata describing an uploaded file. */
|
|
171
174
|
interface FileMetadata {
|
|
172
175
|
/** Server-generated identifier. */
|
|
173
176
|
id: string;
|
|
174
177
|
/** Original filename. */
|
|
175
178
|
fileName: string;
|
|
179
|
+
/** Server filename assigned after sanitization or conflict handling. */
|
|
180
|
+
serverFilename?: string | null;
|
|
176
181
|
/** MIME type as reported or detected. */
|
|
177
182
|
contentType: string;
|
|
178
183
|
/** Size of the file in bytes. */
|
|
179
184
|
fileSize: number;
|
|
185
|
+
/** SHA-256 checksum hex digest when available. */
|
|
186
|
+
checksumSha256?: string | null;
|
|
180
187
|
/** Upload timestamp in ISO 8601 format. */
|
|
181
188
|
uploadedAt: string;
|
|
182
189
|
/** Tenant responsible for the upload. */
|
|
183
190
|
tenantId: string;
|
|
191
|
+
/** User responsible for the upload. */
|
|
192
|
+
uploadedBy?: string;
|
|
193
|
+
/** File lifecycle status. */
|
|
194
|
+
status?: FileLifecycleStatus;
|
|
184
195
|
/** Result of antivirus scan. */
|
|
185
|
-
scanStatus: ScanStatus;
|
|
196
|
+
scanStatus: ScanStatus | string;
|
|
197
|
+
/** Lifecycle timestamps when confirmed or deleted. */
|
|
198
|
+
confirmedAt?: string;
|
|
199
|
+
deletedAt?: string;
|
|
186
200
|
/** Additional metadata provided during upload. */
|
|
187
201
|
metadata?: Record<string, unknown>;
|
|
188
202
|
}
|
|
203
|
+
/** Public metadata envelope payload returned by GET/confirm/DELETE `/api/files/{fileId}`. */
|
|
204
|
+
interface StoredFilePublicMetadata {
|
|
205
|
+
fileId: string;
|
|
206
|
+
originalFilename: string;
|
|
207
|
+
serverFilename?: string | null;
|
|
208
|
+
contentType: string;
|
|
209
|
+
fileSize: number;
|
|
210
|
+
checksumSha256?: string | null;
|
|
211
|
+
tenantId: string;
|
|
212
|
+
uploadedBy?: string;
|
|
213
|
+
status: FileLifecycleStatus;
|
|
214
|
+
scanStatus: ScanStatus | string;
|
|
215
|
+
createdAt?: string;
|
|
216
|
+
confirmedAt?: string;
|
|
217
|
+
deletedAt?: string;
|
|
218
|
+
metadata?: Record<string, string>;
|
|
219
|
+
}
|
|
220
|
+
type StoredFileMetadataResponse = ApiSuccessEnvelope<StoredFilePublicMetadata>;
|
|
189
221
|
|
|
190
222
|
/** Result status for each file in a bulk upload operation. */
|
|
191
223
|
declare enum BulkUploadResultStatus {
|
|
@@ -196,11 +228,16 @@ declare enum BulkUploadResultStatus {
|
|
|
196
228
|
/** Raw file payload returned by the current backend contract. */
|
|
197
229
|
interface UploadResponseData {
|
|
198
230
|
originalFilename: string;
|
|
199
|
-
serverFilename: string;
|
|
231
|
+
serverFilename: string | null;
|
|
200
232
|
fileId: string;
|
|
201
233
|
fileSize: number;
|
|
202
234
|
mimeType: string;
|
|
235
|
+
checksumSha256?: string | null;
|
|
236
|
+
tenantId?: string;
|
|
237
|
+
status?: FileLifecycleStatus;
|
|
238
|
+
scanStatus?: ScanStatus | string;
|
|
203
239
|
uploadTimestamp: string;
|
|
240
|
+
metadata?: Record<string, unknown>;
|
|
204
241
|
}
|
|
205
242
|
/** Response returned after successful single file upload. */
|
|
206
243
|
type UploadResponse = ApiSuccessEnvelope<UploadResponseData>;
|
|
@@ -303,6 +340,11 @@ interface PresignResponse {
|
|
|
303
340
|
headers?: Record<string, string>;
|
|
304
341
|
fields?: Record<string, string>;
|
|
305
342
|
}
|
|
343
|
+
interface FilesApiRequestOptions {
|
|
344
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
345
|
+
readonly preserveExplicitContextHeaders?: boolean;
|
|
346
|
+
readonly apiUrlKey?: string;
|
|
347
|
+
}
|
|
306
348
|
/**
|
|
307
349
|
* Options for a single file upload.
|
|
308
350
|
*/
|
|
@@ -315,6 +357,14 @@ interface UploadOptions {
|
|
|
315
357
|
conflictPolicy?: string;
|
|
316
358
|
/** Número de tentativas de retry. */
|
|
317
359
|
retryCount?: number;
|
|
360
|
+
/** Enviar credenciais de sessão/cookies (padrão: true). */
|
|
361
|
+
withCredentials?: boolean;
|
|
362
|
+
/** Optional explicit request headers. */
|
|
363
|
+
headers?: Readonly<Record<string, string>>;
|
|
364
|
+
/** Preserve explicit contextual headers without overwriting from active runtimeContext. */
|
|
365
|
+
preserveExplicitContextHeaders?: boolean;
|
|
366
|
+
/** Optional API_URL config key override (defaults to `'files'` then `'default'`). */
|
|
367
|
+
apiUrlKey?: string;
|
|
318
368
|
}
|
|
319
369
|
/**
|
|
320
370
|
* Represents a file for bulk uploads.
|
|
@@ -334,16 +384,47 @@ interface BulkUploadOptions {
|
|
|
334
384
|
failFast?: boolean;
|
|
335
385
|
/** Número de tentativas de retry. */
|
|
336
386
|
retryCount?: number;
|
|
387
|
+
/** Enviar credenciais de sessão/cookies (padrão: true). */
|
|
388
|
+
withCredentials?: boolean;
|
|
389
|
+
/** Optional explicit request headers. */
|
|
390
|
+
headers?: Readonly<Record<string, string>>;
|
|
391
|
+
/** Preserve explicit contextual headers without overwriting from active runtimeContext. */
|
|
392
|
+
preserveExplicitContextHeaders?: boolean;
|
|
393
|
+
/** Optional API_URL config key override (defaults to `'files'` then `'default'`). */
|
|
394
|
+
apiUrlKey?: string;
|
|
337
395
|
}
|
|
338
396
|
declare class FilesApiClient {
|
|
339
397
|
private readonly http;
|
|
340
|
-
|
|
398
|
+
private readonly runtimeContext?;
|
|
399
|
+
private readonly apiUrlConfig;
|
|
400
|
+
constructor(http: HttpClient, runtimeContext?: EnterpriseRuntimeContextService | undefined, apiUrlConfig?: ApiUrlConfig | null);
|
|
401
|
+
/** Consulta configuração efetiva de upload do backend. */
|
|
402
|
+
getConfig(baseUrl: string, withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<ApiSuccessEnvelope<EffectiveUploadConfig> | EffectiveUploadConfig>;
|
|
341
403
|
/** Upload de um único arquivo com metadata/conflictPolicy e options JSON. */
|
|
342
404
|
upload(baseUrl: string, file: File, options?: UploadOptions): Observable<HttpEvent<unknown>>;
|
|
405
|
+
/** Consulta metadados públicos de um arquivo enviado. */
|
|
406
|
+
getMetadata(baseUrl: string, fileId: string, withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<StoredFileMetadataResponse>;
|
|
407
|
+
/** Confirma ciclo de vida do arquivo (`STAGED` -> `ACTIVE`). */
|
|
408
|
+
confirm(baseUrl: string, fileId: string, withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<StoredFileMetadataResponse>;
|
|
409
|
+
/** Remove arquivo e marca metadados como `DELETED`. */
|
|
410
|
+
delete(baseUrl: string, fileId: string, withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<StoredFileMetadataResponse>;
|
|
411
|
+
/** Retorna URL segura para download ou visualização inline (`/content`). */
|
|
412
|
+
getContentUrl(baseUrl: string, fileId: string, disposition?: 'attachment' | 'inline'): string;
|
|
413
|
+
/** Baixa conteúdo binário do arquivo (`/content`). */
|
|
414
|
+
getContent(baseUrl: string, fileId: string, disposition?: 'attachment' | 'inline', withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<Blob>;
|
|
415
|
+
/** Baixa conteúdo binário autenticado (`/content`) para preview seguro via Blob. */
|
|
416
|
+
fetchContentBlob(baseUrl: string, fileId: string, disposition?: 'attachment' | 'inline', withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<Blob>;
|
|
343
417
|
/** Upload múltiplo com arrays de metadata/conflictPolicy e options JSON. */
|
|
344
418
|
bulkUpload(baseUrl: string, files: BulkUploadFile[], options?: BulkUploadOptions): Observable<HttpEvent<unknown>>;
|
|
345
|
-
presign(baseUrl: string, fileName: string): Observable<PresignResponse>;
|
|
346
|
-
|
|
419
|
+
presign(baseUrl: string, fileName: string, withCredentials?: boolean, requestOptions?: FilesApiRequestOptions): Observable<PresignResponse>;
|
|
420
|
+
private normalizeBaseUrl;
|
|
421
|
+
private buildHeaders;
|
|
422
|
+
private stripContentTypeHeader;
|
|
423
|
+
private readBaseHeaders;
|
|
424
|
+
private applyHttpHeadersToMap;
|
|
425
|
+
private applyRecordToMap;
|
|
426
|
+
private toHttpHeaders;
|
|
427
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilesApiClient, [null, { optional: true; }, { optional: true; }]>;
|
|
347
428
|
static ɵprov: i0.ɵɵInjectableDeclaration<FilesApiClient>;
|
|
348
429
|
}
|
|
349
430
|
|
|
@@ -392,6 +473,7 @@ interface RateLimitInfo {
|
|
|
392
473
|
limit: number;
|
|
393
474
|
remaining: number;
|
|
394
475
|
resetEpochSeconds: number;
|
|
476
|
+
retryAfterSeconds?: number;
|
|
395
477
|
}
|
|
396
478
|
interface MappedError {
|
|
397
479
|
message: string;
|
|
@@ -401,6 +483,8 @@ interface MappedError {
|
|
|
401
483
|
category?: string;
|
|
402
484
|
phase?: string;
|
|
403
485
|
userAction?: string;
|
|
486
|
+
retriable?: boolean;
|
|
487
|
+
retryAfterSeconds?: number;
|
|
404
488
|
}
|
|
405
489
|
declare const FILES_UPLOAD_ERROR_MESSAGES: InjectionToken<Partial<Record<string, string>>>;
|
|
406
490
|
declare class ErrorMapperService {
|
|
@@ -441,8 +525,9 @@ declare class DragProximityService implements OnDestroy {
|
|
|
441
525
|
*/
|
|
442
526
|
declare class ConfigService {
|
|
443
527
|
private http;
|
|
528
|
+
private readonly runtimeContext?;
|
|
444
529
|
private cache;
|
|
445
|
-
constructor(http: HttpClient);
|
|
530
|
+
constructor(http: HttpClient, runtimeContext?: EnterpriseRuntimeContextService | undefined);
|
|
446
531
|
private buildCacheKey;
|
|
447
532
|
/**
|
|
448
533
|
* Fetches the effective configuration from the server.
|
|
@@ -450,7 +535,7 @@ declare class ConfigService {
|
|
|
450
535
|
* @param headersProvider Optional callback providing additional headers such as tenant/user.
|
|
451
536
|
*/
|
|
452
537
|
getEffectiveConfig(baseUrl?: string, headersProvider?: () => Record<string, string>): Observable<EffectiveUploadConfig>;
|
|
453
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService,
|
|
538
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, [null, { optional: true; }]>;
|
|
454
539
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
455
540
|
}
|
|
456
541
|
|
|
@@ -740,6 +825,34 @@ declare class PdxFilesUploadFieldComponent extends SimpleBaseInputComponent {
|
|
|
740
825
|
static ɵcmp: i0.ɵɵComponentDeclaration<PdxFilesUploadFieldComponent, "pdx-material-files-upload", never, { "config": { "alias": "config"; "required": false; }; "valueMode": { "alias": "valueMode"; "required": false; }; "baseUrl": { "alias": "baseUrl"; "required": false; }; }, { "uploadSuccess": "uploadSuccess"; "bulkComplete": "bulkComplete"; "error": "error"; }, never, never, true, never>;
|
|
741
826
|
}
|
|
742
827
|
|
|
828
|
+
interface PraxisFilesApiUploadPortOptions {
|
|
829
|
+
readonly baseUrl?: string;
|
|
830
|
+
readonly apiUrlKey?: string;
|
|
831
|
+
readonly withCredentials?: boolean;
|
|
832
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
833
|
+
}
|
|
834
|
+
declare const PRAXIS_FILES_API_UPLOAD_PORT_OPTIONS: InjectionToken<PraxisFilesApiUploadPortOptions>;
|
|
835
|
+
declare class FilesApiUploadPortAdapter implements PraxisFileUploadPort {
|
|
836
|
+
private readonly client;
|
|
837
|
+
private readonly apiUrlConfig;
|
|
838
|
+
private readonly options;
|
|
839
|
+
constructor(client: FilesApiClient, apiUrlConfig?: ApiUrlConfig | null, options?: PraxisFilesApiUploadPortOptions | null);
|
|
840
|
+
upload(request: PraxisFileUploadRequest): Observable<PraxisFileUploadEvent>;
|
|
841
|
+
getMetadata(fileId: string, baseUrlOrOptions?: string | PraxisFileOperationOptions): Observable<PraxisStoredFileMetadata>;
|
|
842
|
+
confirm(fileId: string, baseUrlOrOptions?: string | PraxisFileOperationOptions): Observable<PraxisStoredFileMetadata>;
|
|
843
|
+
delete(fileId: string, baseUrlOrOptions?: string | PraxisFileOperationOptions): Observable<PraxisStoredFileMetadata>;
|
|
844
|
+
getContentUrl(fileId: string, disposition?: PraxisFileContentDisposition, baseUrl?: string): string;
|
|
845
|
+
fetchContentBlob(fileId: string, disposition?: PraxisFileContentDisposition, baseUrlOrOptions?: string | PraxisFileOperationOptions): Observable<Blob>;
|
|
846
|
+
getConfig(baseUrlOrOptions?: string | PraxisFileOperationOptions): Observable<PraxisFileUploadEffectiveConfig>;
|
|
847
|
+
private resolveBaseUrl;
|
|
848
|
+
private withCredentials;
|
|
849
|
+
private toClientRequestOptions;
|
|
850
|
+
private mergeHeaders;
|
|
851
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilesApiUploadPortAdapter, [null, { optional: true; }, { optional: true; }]>;
|
|
852
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FilesApiUploadPortAdapter>;
|
|
853
|
+
}
|
|
854
|
+
declare function providePraxisFilesApiUploadPort(options?: PraxisFilesApiUploadPortOptions): Provider[];
|
|
855
|
+
|
|
743
856
|
declare function acceptValidator(allowed: string[]): ValidatorFn;
|
|
744
857
|
declare function maxFileSizeValidator(maxBytes: number): ValidatorFn;
|
|
745
858
|
declare function maxFilesPerBulkValidator(maxFiles: number): ValidatorFn;
|
|
@@ -1114,6 +1227,84 @@ declare const FILES_UPLOAD_EN_US: {
|
|
|
1114
1227
|
'praxis.filesUpload.errors.LIMITE_TAXA_EXCEDIDO': string;
|
|
1115
1228
|
'praxis.filesUpload.errors.COTA_EXCEDIDA': string;
|
|
1116
1229
|
'praxis.filesUpload.errors.ARQUIVO_JA_EXISTE': string;
|
|
1230
|
+
'praxis.filesUpload.errors.SCANNER_VIRUS_INDISPONIVEL': string;
|
|
1231
|
+
'praxis.filesUpload.errors.MALWARE_DETECTADO': string;
|
|
1232
|
+
'praxis.filesUpload.errors.VIRUS_DETECTADO': string;
|
|
1233
|
+
'praxis.filesUpload.errors.ESTRUTURA_SUSPEITA': string;
|
|
1234
|
+
'praxis.filesUpload.errors.ARQUIVO_CORROMPIDO': string;
|
|
1235
|
+
'praxis.filesUpload.errors.ZIP_BOMB_DETECTADO': string;
|
|
1236
|
+
'praxis.filesUpload.errors.EXECUTAVEL_INCORPORADO': string;
|
|
1237
|
+
'praxis.filesUpload.errors.TIPO_MIME_INCOMPATIVEL': string;
|
|
1238
|
+
'praxis.filesUpload.errors.ASSINATURA_INVALIDA': string;
|
|
1239
|
+
'praxis.filesUpload.errors.MAGIC_NUMBER_INCOMPATIVEL': string;
|
|
1240
|
+
'praxis.filesUpload.errors.ARQUIVO_VAZIO': string;
|
|
1241
|
+
'praxis.filesUpload.errors.TIPO_NAO_SUPORTADO': string;
|
|
1242
|
+
'praxis.filesUpload.errors.CAMINHO_INVALIDO': string;
|
|
1243
|
+
'praxis.filesUpload.errors.NOME_ARQUIVO_INVALIDO': string;
|
|
1244
|
+
'praxis.filesUpload.errors.ARQUIVO_EXECUTAVEL_PERIGOSO': string;
|
|
1245
|
+
'praxis.filesUpload.errors.SCRIPT_PERIGOSO': string;
|
|
1246
|
+
'praxis.filesUpload.errors.TIPO_ARQUIVO_PERIGOSO': string;
|
|
1247
|
+
'praxis.filesUpload.errors.EXTENSAO_SUSPEITA_BLOQUEADA': string;
|
|
1248
|
+
'praxis.filesUpload.errors.VIOLACAO_SEGURANCA': string;
|
|
1249
|
+
'praxis.filesUpload.errors.TEMPO_ESGOTADO_UPLOAD': string;
|
|
1250
|
+
'praxis.filesUpload.errors.TEMPO_ESGOTADO_UPLOAD_LOTE': string;
|
|
1251
|
+
'praxis.filesUpload.errors.ERRO_IO': string;
|
|
1252
|
+
'praxis.filesUpload.errors.ESPA\u00C7O_INSUFICIENTE': string;
|
|
1253
|
+
'praxis.filesUpload.errors.ESPACO_INSUFICIENTE': string;
|
|
1254
|
+
'praxis.filesUpload.errors.ARQUIVO_NAO_ENCONTRADO': string;
|
|
1255
|
+
'praxis.filesUpload.errors.ACESSO_NEGADO': string;
|
|
1256
|
+
'praxis.filesUpload.errors.INVALID_TYPE': string;
|
|
1257
|
+
'praxis.filesUpload.errors.UNSUPPORTED_FILE_TYPE': string;
|
|
1258
|
+
'praxis.filesUpload.errors.MAGIC_NUMBER_MISMATCH': string;
|
|
1259
|
+
'praxis.filesUpload.errors.CORRUPTED_FILE': string;
|
|
1260
|
+
'praxis.filesUpload.errors.DANGEROUS_FILE_TYPE': string;
|
|
1261
|
+
'praxis.filesUpload.errors.DANGEROUS_EXECUTABLE': string;
|
|
1262
|
+
'praxis.filesUpload.errors.MALWARE_DETECTED': string;
|
|
1263
|
+
'praxis.filesUpload.errors.VIRUS_DETECTED': string;
|
|
1264
|
+
'praxis.filesUpload.errors.FILE_STORE_ERROR': string;
|
|
1265
|
+
'praxis.filesUpload.errors.FILE_STORAGE_FAILED': string;
|
|
1266
|
+
'praxis.filesUpload.errors.VIRUS_SCAN_ERROR': string;
|
|
1267
|
+
'praxis.filesUpload.errors.VIRUS_SCAN_FAILED': string;
|
|
1268
|
+
'praxis.filesUpload.errors.VIRUS_SCAN_UNAVAILABLE': string;
|
|
1269
|
+
'praxis.filesUpload.errors.IO_ERROR': string;
|
|
1270
|
+
'praxis.filesUpload.errors.MIME_TYPE_MISMATCH': string;
|
|
1271
|
+
'praxis.filesUpload.errors.FILE_STRUCTURE_ERROR': string;
|
|
1272
|
+
'praxis.filesUpload.errors.STRUCTURE_VALIDATION_FAILED': string;
|
|
1273
|
+
'praxis.filesUpload.errors.EMPTY_FILE': string;
|
|
1274
|
+
'praxis.filesUpload.errors.FILE_ANALYSIS_ERROR': string;
|
|
1275
|
+
'praxis.filesUpload.errors.CONFIGURATION_ERROR': string;
|
|
1276
|
+
'praxis.filesUpload.errors.SECURITY_VIOLATION': string;
|
|
1277
|
+
'praxis.filesUpload.errors.CONFLICT_POLICY_ERROR': string;
|
|
1278
|
+
'praxis.filesUpload.errors.CONFLICT_POLICY_SKIP': string;
|
|
1279
|
+
'praxis.filesUpload.errors.INVALID_FILE_SIZE_CONFIG': string;
|
|
1280
|
+
'praxis.filesUpload.errors.SYSTEM_POLICY_BLOCKED': string;
|
|
1281
|
+
'praxis.filesUpload.errors.SUSPICIOUS_EXTENSION_BLOCKED': string;
|
|
1282
|
+
'praxis.filesUpload.errors.DANGEROUS_SCRIPT': string;
|
|
1283
|
+
'praxis.filesUpload.errors.BATCH_SIZE_EXCEEDED': string;
|
|
1284
|
+
'praxis.filesUpload.errors.EMBEDDED_EXECUTABLE': string;
|
|
1285
|
+
'praxis.filesUpload.errors.INVALID_PATH': string;
|
|
1286
|
+
'praxis.filesUpload.errors.FAILED_TO_ANALYZE': string;
|
|
1287
|
+
'praxis.filesUpload.errors.ZIP_BOMB_DETECTED': string;
|
|
1288
|
+
'praxis.filesUpload.errors.SIGNATURE_MISMATCH': string;
|
|
1289
|
+
'praxis.filesUpload.errors.SUSPICIOUS_STRUCTURE': string;
|
|
1290
|
+
'praxis.filesUpload.errors.BLOQUEADO_POLITICA_SISTEMA': string;
|
|
1291
|
+
'praxis.filesUpload.errors.FALHA_ESCANEAMENTO_VIRUS': string;
|
|
1292
|
+
'praxis.filesUpload.errors.FALHA_VALIDACAO_ESTRUTURA': string;
|
|
1293
|
+
'praxis.filesUpload.errors.CONFIGURACAO_TAMANHO_INVALIDA': string;
|
|
1294
|
+
'praxis.filesUpload.errors.FALHA_ARMAZENAMENTO': string;
|
|
1295
|
+
'praxis.filesUpload.errors.ERRO_ARMAZENAMENTO_ARQUIVO': string;
|
|
1296
|
+
'praxis.filesUpload.errors.NOME_ARQUIVO_VAZIO': string;
|
|
1297
|
+
'praxis.filesUpload.errors.ERRO_ANALISE_ARQUIVO': string;
|
|
1298
|
+
'praxis.filesUpload.errors.ERRO_ESTRUTURA_ARQUIVO': string;
|
|
1299
|
+
'praxis.filesUpload.errors.ERRO_CONFIGURACAO': string;
|
|
1300
|
+
'praxis.filesUpload.errors.ERRO_ESCANEAMENTO_VIRUS': string;
|
|
1301
|
+
'praxis.filesUpload.errors.FALHA_ANALISE_ARQUIVO': string;
|
|
1302
|
+
'praxis.filesUpload.errors.ERRO_POLITICA_CONFLITO': string;
|
|
1303
|
+
'praxis.filesUpload.errors.POLITICA_CONFLITO_IGNORAR': string;
|
|
1304
|
+
'praxis.filesUpload.errors.ERRO_DESCONHECIDO': string;
|
|
1305
|
+
'praxis.filesUpload.errors.UPLOAD_LOTE_CANCELADO': string;
|
|
1306
|
+
'praxis.filesUpload.errors.UPLOAD_CANCELADO_USUARIO': string;
|
|
1307
|
+
'praxis.filesUpload.errors.TAMANHO_LOTE_EXCEDIDO': string;
|
|
1117
1308
|
'praxis.filesUpload.errors.INVALID_JSON_OPTIONS': string;
|
|
1118
1309
|
'praxis.filesUpload.errors.EMPTY_FILENAME': string;
|
|
1119
1310
|
'praxis.filesUpload.errors.FILE_EXISTS': string;
|
|
@@ -1124,6 +1315,11 @@ declare const FILES_UPLOAD_EN_US: {
|
|
|
1124
1315
|
'praxis.filesUpload.errors.BULK_UPLOAD_CANCELLED': string;
|
|
1125
1316
|
'praxis.filesUpload.errors.USER_CANCELLED': string;
|
|
1126
1317
|
'praxis.filesUpload.errors.UNKNOWN_ERROR': string;
|
|
1318
|
+
'praxis.filesUpload.errors.ARQUIVO_SOB_RETENCAO': string;
|
|
1319
|
+
'praxis.filesUpload.errors.CONFLITO_ESTADO': string;
|
|
1320
|
+
'praxis.filesUpload.errors.EXCLUSAO_ATIVO_BLOQUEADA': string;
|
|
1321
|
+
'praxis.filesUpload.errors.NO_FILES_PROVIDED': string;
|
|
1322
|
+
'praxis.filesUpload.errors.INVALID_OPTIONS_FORMAT': string;
|
|
1127
1323
|
'praxis.filesUpload.fieldPendingSummary': string;
|
|
1128
1324
|
'praxis.filesUpload.fieldSelectedSummary': string;
|
|
1129
1325
|
'praxis.filesUpload.fieldSelectedPlural': string;
|
|
@@ -1430,6 +1626,84 @@ declare const FILES_UPLOAD_PT_BR: {
|
|
|
1430
1626
|
'praxis.filesUpload.errors.LIMITE_TAXA_EXCEDIDO': string;
|
|
1431
1627
|
'praxis.filesUpload.errors.COTA_EXCEDIDA': string;
|
|
1432
1628
|
'praxis.filesUpload.errors.ARQUIVO_JA_EXISTE': string;
|
|
1629
|
+
'praxis.filesUpload.errors.SCANNER_VIRUS_INDISPONIVEL': string;
|
|
1630
|
+
'praxis.filesUpload.errors.MALWARE_DETECTADO': string;
|
|
1631
|
+
'praxis.filesUpload.errors.VIRUS_DETECTADO': string;
|
|
1632
|
+
'praxis.filesUpload.errors.ESTRUTURA_SUSPEITA': string;
|
|
1633
|
+
'praxis.filesUpload.errors.ARQUIVO_CORROMPIDO': string;
|
|
1634
|
+
'praxis.filesUpload.errors.ZIP_BOMB_DETECTADO': string;
|
|
1635
|
+
'praxis.filesUpload.errors.EXECUTAVEL_INCORPORADO': string;
|
|
1636
|
+
'praxis.filesUpload.errors.TIPO_MIME_INCOMPATIVEL': string;
|
|
1637
|
+
'praxis.filesUpload.errors.ASSINATURA_INVALIDA': string;
|
|
1638
|
+
'praxis.filesUpload.errors.MAGIC_NUMBER_INCOMPATIVEL': string;
|
|
1639
|
+
'praxis.filesUpload.errors.ARQUIVO_VAZIO': string;
|
|
1640
|
+
'praxis.filesUpload.errors.TIPO_NAO_SUPORTADO': string;
|
|
1641
|
+
'praxis.filesUpload.errors.CAMINHO_INVALIDO': string;
|
|
1642
|
+
'praxis.filesUpload.errors.NOME_ARQUIVO_INVALIDO': string;
|
|
1643
|
+
'praxis.filesUpload.errors.ARQUIVO_EXECUTAVEL_PERIGOSO': string;
|
|
1644
|
+
'praxis.filesUpload.errors.SCRIPT_PERIGOSO': string;
|
|
1645
|
+
'praxis.filesUpload.errors.TIPO_ARQUIVO_PERIGOSO': string;
|
|
1646
|
+
'praxis.filesUpload.errors.EXTENSAO_SUSPEITA_BLOQUEADA': string;
|
|
1647
|
+
'praxis.filesUpload.errors.VIOLACAO_SEGURANCA': string;
|
|
1648
|
+
'praxis.filesUpload.errors.TEMPO_ESGOTADO_UPLOAD': string;
|
|
1649
|
+
'praxis.filesUpload.errors.TEMPO_ESGOTADO_UPLOAD_LOTE': string;
|
|
1650
|
+
'praxis.filesUpload.errors.ERRO_IO': string;
|
|
1651
|
+
'praxis.filesUpload.errors.ESPA\u00C7O_INSUFICIENTE': string;
|
|
1652
|
+
'praxis.filesUpload.errors.ESPACO_INSUFICIENTE': string;
|
|
1653
|
+
'praxis.filesUpload.errors.ARQUIVO_NAO_ENCONTRADO': string;
|
|
1654
|
+
'praxis.filesUpload.errors.ACESSO_NEGADO': string;
|
|
1655
|
+
'praxis.filesUpload.errors.INVALID_TYPE': string;
|
|
1656
|
+
'praxis.filesUpload.errors.UNSUPPORTED_FILE_TYPE': string;
|
|
1657
|
+
'praxis.filesUpload.errors.MAGIC_NUMBER_MISMATCH': string;
|
|
1658
|
+
'praxis.filesUpload.errors.CORRUPTED_FILE': string;
|
|
1659
|
+
'praxis.filesUpload.errors.DANGEROUS_FILE_TYPE': string;
|
|
1660
|
+
'praxis.filesUpload.errors.DANGEROUS_EXECUTABLE': string;
|
|
1661
|
+
'praxis.filesUpload.errors.MALWARE_DETECTED': string;
|
|
1662
|
+
'praxis.filesUpload.errors.VIRUS_DETECTED': string;
|
|
1663
|
+
'praxis.filesUpload.errors.FILE_STORE_ERROR': string;
|
|
1664
|
+
'praxis.filesUpload.errors.FILE_STORAGE_FAILED': string;
|
|
1665
|
+
'praxis.filesUpload.errors.VIRUS_SCAN_ERROR': string;
|
|
1666
|
+
'praxis.filesUpload.errors.VIRUS_SCAN_FAILED': string;
|
|
1667
|
+
'praxis.filesUpload.errors.VIRUS_SCAN_UNAVAILABLE': string;
|
|
1668
|
+
'praxis.filesUpload.errors.IO_ERROR': string;
|
|
1669
|
+
'praxis.filesUpload.errors.MIME_TYPE_MISMATCH': string;
|
|
1670
|
+
'praxis.filesUpload.errors.FILE_STRUCTURE_ERROR': string;
|
|
1671
|
+
'praxis.filesUpload.errors.STRUCTURE_VALIDATION_FAILED': string;
|
|
1672
|
+
'praxis.filesUpload.errors.EMPTY_FILE': string;
|
|
1673
|
+
'praxis.filesUpload.errors.FILE_ANALYSIS_ERROR': string;
|
|
1674
|
+
'praxis.filesUpload.errors.CONFIGURATION_ERROR': string;
|
|
1675
|
+
'praxis.filesUpload.errors.SECURITY_VIOLATION': string;
|
|
1676
|
+
'praxis.filesUpload.errors.CONFLICT_POLICY_ERROR': string;
|
|
1677
|
+
'praxis.filesUpload.errors.CONFLICT_POLICY_SKIP': string;
|
|
1678
|
+
'praxis.filesUpload.errors.INVALID_FILE_SIZE_CONFIG': string;
|
|
1679
|
+
'praxis.filesUpload.errors.SYSTEM_POLICY_BLOCKED': string;
|
|
1680
|
+
'praxis.filesUpload.errors.SUSPICIOUS_EXTENSION_BLOCKED': string;
|
|
1681
|
+
'praxis.filesUpload.errors.DANGEROUS_SCRIPT': string;
|
|
1682
|
+
'praxis.filesUpload.errors.BATCH_SIZE_EXCEEDED': string;
|
|
1683
|
+
'praxis.filesUpload.errors.EMBEDDED_EXECUTABLE': string;
|
|
1684
|
+
'praxis.filesUpload.errors.INVALID_PATH': string;
|
|
1685
|
+
'praxis.filesUpload.errors.FAILED_TO_ANALYZE': string;
|
|
1686
|
+
'praxis.filesUpload.errors.ZIP_BOMB_DETECTED': string;
|
|
1687
|
+
'praxis.filesUpload.errors.SIGNATURE_MISMATCH': string;
|
|
1688
|
+
'praxis.filesUpload.errors.SUSPICIOUS_STRUCTURE': string;
|
|
1689
|
+
'praxis.filesUpload.errors.BLOQUEADO_POLITICA_SISTEMA': string;
|
|
1690
|
+
'praxis.filesUpload.errors.FALHA_ESCANEAMENTO_VIRUS': string;
|
|
1691
|
+
'praxis.filesUpload.errors.FALHA_VALIDACAO_ESTRUTURA': string;
|
|
1692
|
+
'praxis.filesUpload.errors.CONFIGURACAO_TAMANHO_INVALIDA': string;
|
|
1693
|
+
'praxis.filesUpload.errors.FALHA_ARMAZENAMENTO': string;
|
|
1694
|
+
'praxis.filesUpload.errors.ERRO_ARMAZENAMENTO_ARQUIVO': string;
|
|
1695
|
+
'praxis.filesUpload.errors.NOME_ARQUIVO_VAZIO': string;
|
|
1696
|
+
'praxis.filesUpload.errors.ERRO_ANALISE_ARQUIVO': string;
|
|
1697
|
+
'praxis.filesUpload.errors.ERRO_ESTRUTURA_ARQUIVO': string;
|
|
1698
|
+
'praxis.filesUpload.errors.ERRO_CONFIGURACAO': string;
|
|
1699
|
+
'praxis.filesUpload.errors.ERRO_ESCANEAMENTO_VIRUS': string;
|
|
1700
|
+
'praxis.filesUpload.errors.FALHA_ANALISE_ARQUIVO': string;
|
|
1701
|
+
'praxis.filesUpload.errors.ERRO_POLITICA_CONFLITO': string;
|
|
1702
|
+
'praxis.filesUpload.errors.POLITICA_CONFLITO_IGNORAR': string;
|
|
1703
|
+
'praxis.filesUpload.errors.ERRO_DESCONHECIDO': string;
|
|
1704
|
+
'praxis.filesUpload.errors.UPLOAD_LOTE_CANCELADO': string;
|
|
1705
|
+
'praxis.filesUpload.errors.UPLOAD_CANCELADO_USUARIO': string;
|
|
1706
|
+
'praxis.filesUpload.errors.TAMANHO_LOTE_EXCEDIDO': string;
|
|
1433
1707
|
'praxis.filesUpload.errors.INVALID_JSON_OPTIONS': string;
|
|
1434
1708
|
'praxis.filesUpload.errors.EMPTY_FILENAME': string;
|
|
1435
1709
|
'praxis.filesUpload.errors.FILE_EXISTS': string;
|
|
@@ -1440,6 +1714,11 @@ declare const FILES_UPLOAD_PT_BR: {
|
|
|
1440
1714
|
'praxis.filesUpload.errors.BULK_UPLOAD_CANCELLED': string;
|
|
1441
1715
|
'praxis.filesUpload.errors.USER_CANCELLED': string;
|
|
1442
1716
|
'praxis.filesUpload.errors.UNKNOWN_ERROR': string;
|
|
1717
|
+
'praxis.filesUpload.errors.ARQUIVO_SOB_RETENCAO': string;
|
|
1718
|
+
'praxis.filesUpload.errors.CONFLITO_ESTADO': string;
|
|
1719
|
+
'praxis.filesUpload.errors.EXCLUSAO_ATIVO_BLOQUEADA': string;
|
|
1720
|
+
'praxis.filesUpload.errors.NO_FILES_PROVIDED': string;
|
|
1721
|
+
'praxis.filesUpload.errors.INVALID_OPTIONS_FORMAT': string;
|
|
1443
1722
|
'praxis.filesUpload.fieldPendingSummary': string;
|
|
1444
1723
|
'praxis.filesUpload.fieldSelectedSummary': string;
|
|
1445
1724
|
'praxis.filesUpload.fieldSelectedPlural': string;
|
|
@@ -1505,5 +1784,5 @@ declare const FILES_UPLOAD_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
1505
1784
|
|
|
1506
1785
|
declare const PRAXIS_FILES_UPLOAD_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
1507
1786
|
|
|
1508
|
-
export { BulkUploadResultStatus, ErrorCode, ErrorMapperService, FILES_UPLOAD_AI_CAPABILITIES, FILES_UPLOAD_EN_US, FILES_UPLOAD_ERROR_MESSAGES, FILES_UPLOAD_PT_BR, FILES_UPLOAD_TEXTS, FilesApiClient, PRAXIS_FILES_UPLOAD_AUTHORING_MANIFEST, PRAXIS_FILES_UPLOAD_COMPONENT_METADATA, PdxFilesUploadFieldComponent, PraxisFilesUpload, PraxisFilesUploadConfigEditor, PraxisFilesUploadWidgetConfigEditor, PresignedUploaderService, ScanStatus, TRANSLATE_LIKE, acceptValidator, createPraxisFilesUploadI18nConfig, getPrimaryErrorItem, isErrorEnvelope, maxBulkSizeValidator, maxFileSizeValidator, maxFilesPerBulkValidator, providePraxisFilesUploadI18n, providePraxisFilesUploadMetadata, resolvePraxisFilesUploadText };
|
|
1509
|
-
export type { ApiErrorEnvelope, ApiErrorItem, ApiResponseStatus, ApiSuccessEnvelope, BulkConfig, BulkUploadFile, BulkUploadFileResult, BulkUploadOptions, BulkUploadResponse, BulkUploadResponseData, Capability, CapabilityCatalog, CapabilityCategory, EffectiveUploadConfig, ErrorLike, ErrorResponse, FileMetadata, FileUploadOptions, FilesUploadBackendOptionsConfig, FilesUploadConfig, FilesUploadExecutionConfig, FilesUploadHeadersConfig, FilesUploadMessagesConfig, FilesUploadQuotaFeedbackConfig, FilesUploadRateLimitFeedbackConfig, FilesUploadReadinessEvent, FilesUploadReadySource, FilesUploadReadyState, FilesUploadStrategy, FilesUploadTexts, FilesUploadValidationConfig, FilesUploadVisualConfig, MappedError, Metadata, PendingFilesState, PraxisFilesUploadI18nOptions, PraxisFilesUploadWidgetEditorInputs, PraxisFilesUploadWidgetEditorValue, PresignResponse, QuotasConfig, RateLimitConfig, RateLimitInfo, ServerMessages, TranslateLike, UploadOptions, UploadProgressEvent, UploadResponse, UploadResponseData, UploadStartEvent, ValueKind };
|
|
1787
|
+
export { BulkUploadResultStatus, ErrorCode, ErrorMapperService, FILES_UPLOAD_AI_CAPABILITIES, FILES_UPLOAD_EN_US, FILES_UPLOAD_ERROR_MESSAGES, FILES_UPLOAD_PT_BR, FILES_UPLOAD_TEXTS, FilesApiClient, FilesApiUploadPortAdapter, PRAXIS_FILES_API_UPLOAD_PORT_OPTIONS, PRAXIS_FILES_UPLOAD_AUTHORING_MANIFEST, PRAXIS_FILES_UPLOAD_COMPONENT_METADATA, PdxFilesUploadFieldComponent, PraxisFilesUpload, PraxisFilesUploadConfigEditor, PraxisFilesUploadWidgetConfigEditor, PresignedUploaderService, ScanStatus, TRANSLATE_LIKE, acceptValidator, createPraxisFilesUploadI18nConfig, getPrimaryErrorItem, isErrorEnvelope, maxBulkSizeValidator, maxFileSizeValidator, maxFilesPerBulkValidator, providePraxisFilesApiUploadPort, providePraxisFilesUploadI18n, providePraxisFilesUploadMetadata, resolvePraxisFilesUploadText };
|
|
1788
|
+
export type { ApiErrorEnvelope, ApiErrorItem, ApiResponseStatus, ApiSuccessEnvelope, BulkConfig, BulkUploadFile, BulkUploadFileResult, BulkUploadOptions, BulkUploadResponse, BulkUploadResponseData, Capability, CapabilityCatalog, CapabilityCategory, EffectiveUploadConfig, ErrorLike, ErrorResponse, FileLifecycleStatus, FileMetadata, FileUploadOptions, FilesApiRequestOptions, FilesUploadBackendOptionsConfig, FilesUploadConfig, FilesUploadExecutionConfig, FilesUploadHeadersConfig, FilesUploadMessagesConfig, FilesUploadQuotaFeedbackConfig, FilesUploadRateLimitFeedbackConfig, FilesUploadReadinessEvent, FilesUploadReadySource, FilesUploadReadyState, FilesUploadStrategy, FilesUploadTexts, FilesUploadValidationConfig, FilesUploadVisualConfig, MappedError, Metadata, PendingFilesState, PraxisFilesApiUploadPortOptions, PraxisFilesUploadI18nOptions, PraxisFilesUploadWidgetEditorInputs, PraxisFilesUploadWidgetEditorValue, PresignResponse, QuotasConfig, RateLimitConfig, RateLimitInfo, ServerMessages, StoredFileMetadataResponse, StoredFilePublicMetadata, TranslateLike, UploadOptions, UploadProgressEvent, UploadResponse, UploadResponseData, UploadStartEvent, ValueKind };
|