cat-documents-ng 0.2.64 → 0.2.66

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.
@@ -163,6 +163,25 @@ export declare class DocumentUploadComponent implements OnDestroy {
163
163
  * @returns True if the save button should be disabled, false otherwise
164
164
  */
165
165
  getSaveButtonDisabled(): boolean;
166
+ /**
167
+ * Gets the current upload queue status
168
+ * @returns Object containing queue information
169
+ */
170
+ getUploadQueueStatus(): {
171
+ isUploading: boolean;
172
+ queueLength: number;
173
+ totalFiles: number;
174
+ };
175
+ /**
176
+ * Gets the number of files currently in the upload queue
177
+ * @returns Number of files waiting to be uploaded
178
+ */
179
+ getUploadQueueLength(): number;
180
+ /**
181
+ * Checks if there are files waiting in the upload queue
182
+ * @returns True if there are files waiting to be uploaded
183
+ */
184
+ hasFilesInQueue(): boolean;
166
185
  /**
167
186
  * Checks the upload service status for debugging purposes.
168
187
  */
@@ -176,6 +195,11 @@ export declare class DocumentUploadComponent implements OnDestroy {
176
195
  * @returns True if all files have completed uploading, false otherwise
177
196
  */
178
197
  areAllFilesUploaded(): boolean;
198
+ /**
199
+ * Gets the currently uploading file (if any)
200
+ * @returns The file currently being uploaded or null
201
+ */
202
+ getCurrentlyUploadingFile(): File | null;
179
203
  /**
180
204
  * Gets the upload progress for a specific file.
181
205
  * @param file - The file to get progress for
@@ -205,6 +229,10 @@ export declare class DocumentUploadComponent implements OnDestroy {
205
229
  * Clears all selections, uploaded files, and progress tracking.
206
230
  */
207
231
  resetForm(): void;
232
+ /**
233
+ * Clears the upload queue manually
234
+ */
235
+ clearUploadQueue(): void;
208
236
  /**
209
237
  * Resets form selections (applicant, category, document type).
210
238
  * Clears document type options.
@@ -23,6 +23,14 @@ export declare class DocumentUploadService {
23
23
  * Map to track upload progress for multiple files
24
24
  */
25
25
  private uploadProgress;
26
+ /**
27
+ * Queue for handling multiple file uploads sequentially
28
+ */
29
+ private uploadQueue;
30
+ /**
31
+ * Flag to indicate if an upload is currently in progress
32
+ */
33
+ private isUploading;
26
34
  /**
27
35
  * Represent contextId
28
36
  * @type {string}
@@ -52,6 +60,10 @@ export declare class DocumentUploadService {
52
60
  * @returns {void}
53
61
  */
54
62
  handleTemplatedUpload(file: File, contextId: string): void;
63
+ /**
64
+ * Processes the upload queue sequentially
65
+ */
66
+ private processUploadQueue;
55
67
  /**
56
68
  * Get the file and contextId
57
69
  * @param file - The file to upload.
@@ -81,6 +93,24 @@ export declare class DocumentUploadService {
81
93
  * @returns True if the file is being uploaded
82
94
  */
83
95
  isFileUploading(file: File): boolean;
96
+ /**
97
+ * Get the current upload queue status
98
+ * @returns Object containing queue information
99
+ */
100
+ getQueueStatus(): {
101
+ isUploading: boolean;
102
+ queueLength: number;
103
+ totalFiles: number;
104
+ };
105
+ /**
106
+ * Clear the upload queue (useful for cleanup)
107
+ */
108
+ clearUploadQueue(): void;
109
+ /**
110
+ * Get the number of files currently in the upload queue
111
+ * @returns Number of files waiting to be uploaded
112
+ */
113
+ getQueueLength(): number;
84
114
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentUploadService, never>;
85
115
  static ɵprov: i0.ɵɵInjectableDeclaration<DocumentUploadService>;
86
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -1,20 +0,0 @@
1
- {
2
- "catQwUrl": "https://qa-qw-api.dynamatix.com/api/",
3
- "apiUrl": "https://gatehouse-qa.dynamatix.com/api/",
4
- "swaggerUrl": "https://qa-qw-api.dynamatix.com/api-docs/",
5
- "adminEmail": "neeraj.kumar@catura.co.uk",
6
- "interactBaseApi": "https://qa-interact-api.dynamatix.com/api/",
7
- "actionBaseApi": "https://qa-qw-api.dynamatix.com/api/",
8
- "documentApiUrl": "https://gatehouse-documents-qa-bgavezbwe9b6e9h6.uksouth-01.azurewebsites.net/api/",
9
- "adminPhoneNumber": "+447380300545",
10
- "visibilityOption": {
11
- "isRationalVisible": false,
12
- "isChecklistVisible": false,
13
- "isAudit": false,
14
- "isConversation": true,
15
- "isOverview": true,
16
- "isDocuments": true
17
- },
18
- "env": "qa"
19
-
20
- }