cat-documents-ng 1.0.8 → 1.0.11

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.
@@ -55,8 +55,8 @@ export declare class DocumentUploadComponent implements OnInit, OnChanges, OnDes
55
55
  }>;
56
56
  /** Currently selected assignment type (Applicant or Application) */
57
57
  selectedAssignmentType: 'Applicant' | 'Application' | null;
58
- /** Currently selected applicant ID */
59
- selectedApplicant: string;
58
+ /** Currently selected applicant IDs (array for multiple selection) */
59
+ selectedApplicants: string[];
60
60
  /** Currently selected document category */
61
61
  selectedCategory: string;
62
62
  /** Currently selected document type */
@@ -18,10 +18,9 @@ export interface UploadedFile {
18
18
  }
19
19
  export interface DocumentUploadPayload {
20
20
  source: 'Applicant' | 'Application';
21
- categoryId: string;
22
21
  documentTypeId: string;
23
- applicantId?: string;
24
- contextId: string;
22
+ contextIds?: string[];
23
+ contextId?: string;
25
24
  documents: {
26
25
  fileName: string;
27
26
  fileSize: number;
@@ -59,22 +58,22 @@ export declare class DocumentUploadBusinessService {
59
58
  /**
60
59
  * Validates form data
61
60
  */
62
- validateForm(assignmentType: 'Applicant' | 'Application' | null, selectedCategory: string, selectedDocumentType: string, selectedApplicant: string, uploadedFiles: UploadedFile[], categoryOptions: DocumentCategory[], documentTypeOptions: DocumentTypeModel[]): boolean;
61
+ validateForm(assignmentType: 'Applicant' | 'Application' | null, selectedCategory: string, selectedDocumentType: string, selectedApplicants: string[], uploadedFiles: UploadedFile[], categoryOptions: DocumentCategory[], documentTypeOptions: DocumentTypeModel[]): boolean;
63
62
  /**
64
63
  * Checks if save button should be disabled
65
64
  */
66
- isSaveButtonDisabled(assignmentType: 'Applicant' | 'Application' | null, selectedCategory: string, selectedDocumentType: string, selectedApplicant: string, uploadedFiles: UploadedFile[], isSaving: boolean): boolean;
65
+ isSaveButtonDisabled(assignmentType: 'Applicant' | 'Application' | null, selectedCategory: string, selectedDocumentType: string, selectedApplicants: string[], uploadedFiles: UploadedFile[], isSaving: boolean): boolean;
67
66
  /**
68
67
  * Validates the complete payload before save
69
68
  */
70
- validatePayload(assignmentType: 'Applicant' | 'Application' | null, selectedCategory: string, selectedDocumentType: string, selectedApplicant: string, uploadedFiles: UploadedFile[]): {
69
+ validatePayload(assignmentType: 'Applicant' | 'Application' | null, selectedCategory: string, selectedDocumentType: string, selectedApplicants: string[], uploadedFiles: UploadedFile[]): {
71
70
  isValid: boolean;
72
71
  message: string;
73
72
  };
74
73
  /**
75
74
  * Prepares upload payload
76
75
  */
77
- prepareUploadPayload(assignmentType: 'Applicant' | 'Application', selectedCategory: string, selectedDocumentType: string, selectedApplicant: string, uploadedFiles: UploadedFile[], contextId: string): DocumentUploadPayload;
76
+ prepareUploadPayload(assignmentType: 'Applicant' | 'Application', selectedCategory: string, selectedDocumentType: string, selectedApplicants: string[], uploadedFiles: UploadedFile[], contextId: string): DocumentUploadPayload;
78
77
  /**
79
78
  * Saves document upload
80
79
  */
@@ -92,7 +91,7 @@ export declare class DocumentUploadBusinessService {
92
91
  */
93
92
  getInitialFormState(): {
94
93
  selectedAssignmentType: null;
95
- selectedApplicant: null;
94
+ selectedApplicants: string[];
96
95
  selectedCategory: null;
97
96
  selectedDocumentType: null;
98
97
  uploadedFiles: UploadedFile[];
@@ -23,7 +23,7 @@ export declare class DocumentUploadFormService {
23
23
  /**
24
24
  * Validates required fields for upload
25
25
  */
26
- validateRequiredFields(assignmentType: 'Applicant' | 'Application' | null, selectedApplicant: string, selectedCategory: string, selectedDocumentType: string, uploadedFiles: UploadedFile[]): boolean;
26
+ validateRequiredFields(assignmentType: 'Applicant' | 'Application' | null, selectedApplicants: string[], selectedCategory: string, selectedDocumentType: string, uploadedFiles: UploadedFile[]): boolean;
27
27
  /**
28
28
  * Shows appropriate validation message based on the field that failed
29
29
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -0,0 +1,22 @@
1
+ {
2
+ "catQwUrl": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api/",
3
+ "apiUrl": "https://gatehouse-api-qa-g6hhevfpazc6f5ab.uksouth-01.azurewebsites.net/api/",
4
+ "swaggerUrl": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api-docs/",
5
+ "adminEmail": "neeraj.kumar@catura.co.uk",
6
+ "baseUrl": "https://gatehouse-interact-qa-h9gjhwb0behtepgu.uksouth-01.azurewebsites.net",
7
+ "interactBaseApi": "https://gatehouse-interact-qa-h9gjhwb0behtepgu.uksouth-01.azurewebsites.net/api/",
8
+ "actionBaseApi": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api/",
9
+ "documentApiUrl": "http://localhost:8080/api/",
10
+ "adminPhoneNumber": "+447380300545",
11
+ "gsvKey": "AIzaSyDWwq79YYgWvSiAizyUz4aovHvSY-j3IfY",
12
+ "visibilityOption": {
13
+ "isRationalVisible": false,
14
+ "isChecklistVisible": false,
15
+ "isAudit": false,
16
+ "isConversation": true,
17
+ "isOverview": true,
18
+ "isDocuments": true
19
+ },
20
+ "env": "qa",
21
+ "test":"test"
22
+ }