ubk.erp.webpack 1.3.0 → 1.3.1

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 CHANGED
@@ -136,13 +136,46 @@ export default function AppRoutes({ token }) {
136
136
  ### Using the Transport Module
137
137
 
138
138
  ```jsx
139
- import { TransportRoutes } from "ubk.erp.webpack";
139
+ import {
140
+ TransportRoutes,
141
+ TransportVehicles,
142
+ AssignVehicles,
143
+ AssignStudentToTransport,
144
+ TransportBulkUpload,
145
+ } from "ubk.erp.webpack";
140
146
 
141
- const TransportPage = () => {
142
- return <TransportRoutes token="YOUR_TOKEN" />;
147
+ const TransportPage = ({ token }) => {
148
+ return (
149
+ <>
150
+ <TransportRoutes token={token} />
151
+ <TransportVehicles token={token} />
152
+ <AssignVehicles token={token} />
153
+ <AssignStudentToTransport token={token} />
154
+ <TransportBulkUpload token={token} />
155
+ </>
156
+ );
143
157
  };
144
158
  ```
145
159
 
160
+ ### Using the Transport Bulk Upload Module
161
+
162
+ The `TransportBulkUpload` component provides a multi-step wizard for bulk uploading transport assignments from Excel files:
163
+
164
+ ```jsx
165
+ import { TransportBulkUpload } from "ubk.erp.webpack";
166
+
167
+ const TransportBulkPage = ({ token }) => {
168
+ return <TransportBulkUpload token={token} />;
169
+ };
170
+ ```
171
+
172
+ **Features:**
173
+ 1. **Download Template** — Select Class and Section to download a pre-formatted Excel template
174
+ 2. **Upload & Validate** — Upload Excel file and preview validation results
175
+ 3. **Review** — View valid/invalid/duplicate rows with detailed status messages
176
+ 4. **Import** — Confirm import and download error reports for failed rows
177
+ ```
178
+
146
179
  ### Using the AttendanceDashboard Module
147
180
 
148
181
  ```jsx
@@ -343,6 +376,7 @@ const IncomePage = ({ token }) => {
343
376
  | `StudentLoginCredential` | View and manage student login credentials (username/password) by class and section. |
344
377
  | `MedicalReport` | Manage student medical reports and medicine history with add/view functionality. |
345
378
  | `AssignStudentSubject` | Assign and unassign subjects and extra-curricular activities to students. |
379
+ | `BulkUpload` | Bulk upload students from Excel file with class/section selection and sample file download. |
346
380
 
347
381
  ### Academics
348
382
 
@@ -373,6 +407,7 @@ const IncomePage = ({ token }) => {
373
407
  | `AddDriver` | Driver information and document management. |
374
408
  | `RouteTimeTable` | Schedule management for transport routes. |
375
409
  | `AssignStudentToTransport` | Assign students to transport routes. |
410
+ | `TransportBulkUpload` | Bulk upload transport assignments from Excel with validation wizard. |
376
411
  | `Stoppage` | Manage route stops and timings. |
377
412
 
378
413
  ### Library
package/dist/Api/api.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export function setBaseUrl(url: any): void;
2
2
  export function getAssetBaseUrl(): any;
3
3
  export function addData(url: any, data: any, token: any): Promise<any>;
4
+ export function postData(url: any, data: any, token: any): Promise<any>;
4
5
  export function getNewData(url: any, token: any): Promise<any>;
5
6
  export function getMenuData(url: any, token: any): Promise<any>;
6
7
  export function addDataReturn(url: any, data: any, token: any): Promise<boolean>;
@@ -128,3 +129,14 @@ export const getStudentClassSubjectUrl: "/branchapi/academy/getstudentClasssubje
128
129
  export const removeAssignStudentSubjectUrl: "/branchapi/academy/removeAssignStudentSubject";
129
130
  export const extraCurricularActivitiesUrl: "/branchapi/feesCollection/extraCurricularActivitiesFess";
130
131
  export const unAssignStudentSubjectUrl: "/branchapi/academy/unAssigneStudentSubject";
132
+ export const bulkUploadStudentUrl: "/branchapi/student/uploadstudentbyCSV";
133
+ export const categoryTableUrl: "api/branchapi/academy/categorytableList";
134
+ export const studentSampleFileUrl: "/sample_student.xlsx";
135
+ export const transportBulkUploadDownloadTemplate: "api/branchapi/transport/downloadBulkTemplate";
136
+ export const transportBulkUploadValidate: "api/branchapi/transport/validateBulkUpload";
137
+ export const transportBulkUploadConfirm: "api/branchapi/transport/confirmBulkImport";
138
+ export const transportBulkUploadErrorReport: "api/branchapi/transport/downloadBulkErrorReport";
139
+ export function downloadBulkTemplate({ class_id, section_id }: {} | undefined, token: any): Promise<any>;
140
+ export function validateBulkUpload(file: any, token: any): Promise<any>;
141
+ export function confirmBulkImport(rows: any, token: any, duplicateAction?: string): Promise<any>;
142
+ export function downloadBulkErrorReport(rows: any, token: any): Promise<any>;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default BulkUpload;
3
+ declare function BulkUpload({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from './BulkUpload';
@@ -1,3 +1,4 @@
1
1
  export { default as StudentLoginCredential } from './StudentLoginCredential';
2
2
  export { default as MedicalReport } from './MedicalReport';
3
3
  export { default as AssignStudentSubject } from './AssignStudentSubject';
4
+ export { default as BulkUpload } from './BulkUpload';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export default TransportBulkUpload;
3
+ declare function TransportBulkUpload({ token }: {
4
+ token: any;
5
+ }): React.JSX.Element;