cat-documents-ng 0.0.21 → 0.0.23
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/Shared/constant/ERROR.d.ts +36 -0
- package/Shared/constant/SHARED.d.ts +44 -0
- package/Shared/constant/URLS.d.ts +31 -0
- package/fesm2022/cat-documents-ng.mjs +720 -144
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-container/document-container.component.d.ts +27 -4
- package/lib/document/components/document-list/document-list.component.d.ts +72 -10
- package/lib/document/components/document-upload/document-upload.component.d.ts +22 -15
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +15 -39
- package/lib/document/components/folder-block/folder-block.component.d.ts +2 -2
- package/lib/document/components/folder-container/folder-container.component.d.ts +10 -9
- package/lib/document/document.module.d.ts +3 -1
- package/lib/document/models/document-alert.model.d.ts +38 -0
- package/lib/document/models/document-type.model.d.ts +37 -0
- package/lib/document/models/document.model.d.ts +5 -0
- package/lib/document/models/folder.model.d.ts +3 -3
- package/lib/document/services/document-http.service.d.ts +60 -0
- package/lib/document/services/document-upload.service.d.ts +67 -0
- package/lib/document/state/document.query.d.ts +28 -0
- package/lib/document/state/document.state.d.ts +9 -6
- package/lib/document/state/document.store.d.ts +6 -3
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A utility class containing common error messages.
|
|
3
|
+
* @class ERRORS
|
|
4
|
+
*/
|
|
5
|
+
export declare class ERRORS {
|
|
6
|
+
/**
|
|
7
|
+
* Error message for invalid recipient.
|
|
8
|
+
* @static
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
static INVALID_RECIPIENT: string;
|
|
12
|
+
/**
|
|
13
|
+
* Error message for invalid document.
|
|
14
|
+
* @static
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
static ERROR_FETCHING_DOCUMENTS: string;
|
|
18
|
+
/**
|
|
19
|
+
* Error message for invalid document.
|
|
20
|
+
* @static
|
|
21
|
+
* @type {string}
|
|
22
|
+
*/
|
|
23
|
+
static ERROR_FETCHING_FOLDERS: string;
|
|
24
|
+
/**
|
|
25
|
+
* Error message for invalid document.
|
|
26
|
+
* @static
|
|
27
|
+
* @type {string}
|
|
28
|
+
*/
|
|
29
|
+
static ERROR_ALLDOCUMENT_MISSING: string;
|
|
30
|
+
/**
|
|
31
|
+
* Error message for invalid document.
|
|
32
|
+
* @static
|
|
33
|
+
* @type {string}
|
|
34
|
+
*/
|
|
35
|
+
static ERROR_DOCUMENT_TYPES: string;
|
|
36
|
+
}
|
|
@@ -71,12 +71,24 @@ export declare class SHARED {
|
|
|
71
71
|
* @type {'error'}
|
|
72
72
|
*/
|
|
73
73
|
static SEVERITY: string;
|
|
74
|
+
/**
|
|
75
|
+
* Show SEVERITY value.
|
|
76
|
+
* @static
|
|
77
|
+
* @type {'error'}
|
|
78
|
+
*/
|
|
79
|
+
static SUCCESS_SEVERITY: string;
|
|
74
80
|
/**
|
|
75
81
|
* Show upload summery if it's failed.
|
|
76
82
|
* @static
|
|
77
83
|
* @type {'Upload Failed'}
|
|
78
84
|
*/
|
|
79
85
|
static UPLOAD_SUMMERY: string;
|
|
86
|
+
/**
|
|
87
|
+
* Show upload summery if it's success.
|
|
88
|
+
* @static
|
|
89
|
+
* @type {'Document uploaded successfully.'}
|
|
90
|
+
*/
|
|
91
|
+
static UPLOAD_SUCCESS: string;
|
|
80
92
|
/**
|
|
81
93
|
* Represent empty array.
|
|
82
94
|
* @static
|
|
@@ -95,6 +107,30 @@ export declare class SHARED {
|
|
|
95
107
|
* @type {string}
|
|
96
108
|
*/
|
|
97
109
|
static FILE_SIZE: string;
|
|
110
|
+
/**
|
|
111
|
+
* Represent documentName.
|
|
112
|
+
* @static
|
|
113
|
+
* @type {string}
|
|
114
|
+
*/
|
|
115
|
+
static DOCUMENT_NAME: string;
|
|
116
|
+
/**
|
|
117
|
+
* Represent documentTypeId.
|
|
118
|
+
* @static
|
|
119
|
+
* @type {string}
|
|
120
|
+
*/
|
|
121
|
+
static DOCUMENT_TYPE_ID: string;
|
|
122
|
+
/**
|
|
123
|
+
* Represent upload summery.
|
|
124
|
+
* @static
|
|
125
|
+
* @type {string}
|
|
126
|
+
*/
|
|
127
|
+
static UPLOAD_ERROR_SUMMERY: string;
|
|
128
|
+
/**
|
|
129
|
+
* Represent upload error details.
|
|
130
|
+
* @static
|
|
131
|
+
* @type {string}
|
|
132
|
+
*/
|
|
133
|
+
static UPLOAD_ERROR_DETAILS: string;
|
|
98
134
|
}
|
|
99
135
|
/**
|
|
100
136
|
* `DUMMYDOCUMENTLIST` is a mock list of document objects used for testing and development purposes.
|
|
@@ -148,3 +184,11 @@ export declare const COUNTRIES: {
|
|
|
148
184
|
* @type {{}}
|
|
149
185
|
*/
|
|
150
186
|
export declare const SUPPORTED_IMAGE_TYPES: string[];
|
|
187
|
+
/**
|
|
188
|
+
* @constant {Array<{label: string, value: string, files: string[]}>} DOCUMENTTYPES
|
|
189
|
+
* An array of document type objects containing labels, values, and associated files.
|
|
190
|
+
*/
|
|
191
|
+
export declare const DOCUMENTTYPES: {
|
|
192
|
+
label: string;
|
|
193
|
+
value: string;
|
|
194
|
+
}[];
|
|
@@ -26,4 +26,35 @@ export declare class URLS {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
*/
|
|
28
28
|
static CONTEXT: string;
|
|
29
|
+
/**
|
|
30
|
+
* The query parameter to pass a document ID in API requests.
|
|
31
|
+
* @static
|
|
32
|
+
* @type {string}
|
|
33
|
+
*/
|
|
34
|
+
static DOCUMENT_TYPES: string;
|
|
35
|
+
/**
|
|
36
|
+
* The query parameter to pass a context ID in API requests.
|
|
37
|
+
* @static
|
|
38
|
+
* @type {string}
|
|
39
|
+
*/
|
|
40
|
+
static FOLDERS: string;
|
|
41
|
+
/**
|
|
42
|
+
* The query parameter to pass a document ID in API requests.
|
|
43
|
+
* @static
|
|
44
|
+
* @type {string}
|
|
45
|
+
*/
|
|
46
|
+
static ALERT_BY_DOCUMENT_ID: string;
|
|
47
|
+
/**
|
|
48
|
+
* The query parameter to pass a document ID in API requests.
|
|
49
|
+
* @static
|
|
50
|
+
* @type {string}
|
|
51
|
+
*/
|
|
52
|
+
static PARENT_DOCUMENT_TYPE_ID: string;
|
|
53
|
+
/**
|
|
54
|
+
* The query parameter to pass a context ID in API requests.
|
|
55
|
+
* Used to specify the context for certain API calls, such as filtering or scoping the request.
|
|
56
|
+
* @static
|
|
57
|
+
* @type {string}
|
|
58
|
+
*/
|
|
59
|
+
static CONTEXT_ID: string;
|
|
29
60
|
}
|