ubk.erp.webpack 1.2.6 → 1.2.8
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 +48 -0
- package/dist/Api/api.d.ts +53 -0
- package/dist/Layout/FontOffice/Complain.d.ts +5 -0
- package/dist/Layout/FontOffice/ComplainEdit.d.ts +5 -0
- package/dist/Layout/FontOffice/GatePass.d.ts +5 -0
- package/dist/Layout/FontOffice/PhoneCallLog.d.ts +5 -0
- package/dist/Layout/FontOffice/PhoneCallLogEdit.d.ts +5 -0
- package/dist/Layout/FontOffice/PostalDispatch.d.ts +5 -0
- package/dist/Layout/FontOffice/PostalDispatchEdit.d.ts +5 -0
- package/dist/Layout/FontOffice/PostalReceive.d.ts +5 -0
- package/dist/Layout/FontOffice/PostalReceiveEdit.d.ts +5 -0
- package/dist/Layout/FontOffice/SetupFrontOffice.d.ts +5 -0
- package/dist/Layout/FontOffice/VisitorBook.d.ts +5 -0
- package/dist/Layout/FontOffice/VisitorEdit.d.ts +5 -0
- package/dist/Layout/Library/IssueReturn.d.ts +1 -4
- package/dist/Layout/Transport/AssignStudentToTransport.d.ts +2 -1
- package/dist/Layout/Transport/TransportRoutes.d.ts +2 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.ts +7 -0
- package/dist/index.js +11518 -9446
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -201,6 +201,36 @@ const GeneralSettingPage = ({ token }) => {
|
|
|
201
201
|
};
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
+
### Using the Front Office Module
|
|
205
|
+
|
|
206
|
+
```jsx
|
|
207
|
+
import {
|
|
208
|
+
AdmissionEnquiry,
|
|
209
|
+
VisitorBook,
|
|
210
|
+
PhoneCallLog,
|
|
211
|
+
PostalDispatch,
|
|
212
|
+
PostalReceive,
|
|
213
|
+
Complain,
|
|
214
|
+
SetupFrontOffice,
|
|
215
|
+
GatePass,
|
|
216
|
+
} from "ubk.erp.webpack";
|
|
217
|
+
|
|
218
|
+
const FrontOfficePage = ({ token }) => {
|
|
219
|
+
return (
|
|
220
|
+
<>
|
|
221
|
+
<AdmissionEnquiry token={token} />
|
|
222
|
+
<VisitorBook token={token} />
|
|
223
|
+
<PhoneCallLog token={token} />
|
|
224
|
+
<PostalDispatch token={token} />
|
|
225
|
+
<PostalReceive token={token} />
|
|
226
|
+
<Complain token={token} />
|
|
227
|
+
<SetupFrontOffice token={token} />
|
|
228
|
+
<GatePass token={token} />
|
|
229
|
+
</>
|
|
230
|
+
);
|
|
231
|
+
};
|
|
232
|
+
```
|
|
233
|
+
|
|
204
234
|
## 🧩 Available Components
|
|
205
235
|
|
|
206
236
|
### Core
|
|
@@ -215,6 +245,14 @@ const GeneralSettingPage = ({ token }) => {
|
|
|
215
245
|
| Component | Description |
|
|
216
246
|
| :--- | :--- |
|
|
217
247
|
| `AdmissionEnquiry` | Admission enquiry management. |
|
|
248
|
+
| `VisitorBook` | Visitor entry tracking with purpose, contact, date, and image upload. |
|
|
249
|
+
| `PhoneCallLog` | Phone call log management with call type, follow-up date, and duration. |
|
|
250
|
+
| `PostalDispatch` | Postal dispatch management with reference, address, and document upload. |
|
|
251
|
+
| `PostalReceive` | Postal receive management with from/to title, reference, and document upload. |
|
|
252
|
+
| `Complain` | Complaint management with type, description, action taken, and assignment. |
|
|
253
|
+
| `SetupFrontOffice` | Front office setup/master data (Purpose, Complaint Type, Source, Reference). |
|
|
254
|
+
| `GatePass` | Student gate pass list with print support and today's gate pass summary. |
|
|
255
|
+
|
|
218
256
|
|
|
219
257
|
### Academics
|
|
220
258
|
|
|
@@ -289,8 +327,17 @@ Each object in the returned array represents one returned book:
|
|
|
289
327
|
|
|
290
328
|
```jsx
|
|
291
329
|
import { IssueReturn } from "ubk.erp.webpack";
|
|
330
|
+
import { useRef } from "react";
|
|
292
331
|
|
|
293
332
|
const LibraryPage = ({ token }) => {
|
|
333
|
+
|
|
334
|
+
const issueReturnRef = useRef(null);
|
|
335
|
+
|
|
336
|
+
// Reload pay later
|
|
337
|
+
const handleReloadPayLater = () => {
|
|
338
|
+
issueReturnRef.current?.reloadPayLater();
|
|
339
|
+
};
|
|
340
|
+
|
|
294
341
|
const handleIssueReturn = (returnArray) => {
|
|
295
342
|
// Example returnArray:
|
|
296
343
|
const example = [
|
|
@@ -307,6 +354,7 @@ const LibraryPage = ({ token }) => {
|
|
|
307
354
|
<IssueReturn
|
|
308
355
|
token={token}
|
|
309
356
|
onReturn={handleIssueReturn}
|
|
357
|
+
ref={issueReturnRef}
|
|
310
358
|
/>
|
|
311
359
|
);
|
|
312
360
|
};
|
package/dist/Api/api.d.ts
CHANGED
|
@@ -32,3 +32,56 @@ export const libraryRenewalBookWise: "api/report/LibraryRenewalReport/bookWiseRe
|
|
|
32
32
|
export const libraryRenewalClassWise: "api/report/LibraryRenewalReport/classWiseReport";
|
|
33
33
|
export const libraryRenewalStaffWise: "api/report/LibraryRenewalReport/staffWiseReport";
|
|
34
34
|
export const libraryRenewalStatistics: "api/report/LibraryRenewalReport/renewalStatisticsByDate";
|
|
35
|
+
export const visitorListUrl: "api/branchapi/Frontoffice/visitortablelist";
|
|
36
|
+
export const purposeUrl: "api/branchapi/Frontoffice/purposedropdown";
|
|
37
|
+
export const visitorAddUrl: "api/branchapi/frontoffice/addvisitors";
|
|
38
|
+
export const visitorUpdateUrl: "api/branchapi/frontoffice/editvisitorsdata";
|
|
39
|
+
export const visitorDeleteUrl: "api/branchapi/frontoffice/deletevisitors";
|
|
40
|
+
export const visitorUploadUrl: "api/branchapi/frontoffice/uploadfrontofficeDocument";
|
|
41
|
+
export const generalcallUrl: "api/branchapi/frontoffice/generalcallsShowdata";
|
|
42
|
+
export const generalcallAddUrl: "api/branchapi/frontoffice/addgenaralcalls";
|
|
43
|
+
export const generalcallUpdateUrl: "api/branchapi/frontoffice/editgeneralcall";
|
|
44
|
+
export const generalcallDeleteUrl: "api/branchapi/frontoffice/deletegeneralcall";
|
|
45
|
+
export const postalDispatchUrl: "api/branchapi/frontoffice/postaldispatchtablelist";
|
|
46
|
+
export const postalDispatchAddUrl: "api/branchapi/frontoffice/addpostaldispatch";
|
|
47
|
+
export const postalDispatchUpdateUrl: "api/branchapi/frontoffice/editpostaldispatch";
|
|
48
|
+
export const postalDispatchDeleteUrl: "api/branchapi/frontoffice/deletepostalreceivedispatch";
|
|
49
|
+
export const postalReceiveUrl: "api/branchapi/frontoffice/postalrecivetablelist";
|
|
50
|
+
export const postalReceiveAddUrl: "api/branchapi/frontoffice/addpostalrecive";
|
|
51
|
+
export const postalReceiveUpdateUrl: "api/branchapi/frontoffice/editpostalrecive";
|
|
52
|
+
export const postalReceiveDeleteUrl: "api/branchapi/frontoffice/deletepostalreceivedispatch";
|
|
53
|
+
export const complainUrl: "api/branchapi/frontoffice/complainttablelist";
|
|
54
|
+
export const complainTypeUrl: "api/branchapi/frontoffice/complainttypedropdown";
|
|
55
|
+
export const complainAddUrl: "api/branchapi/frontoffice/addcomplaint";
|
|
56
|
+
export const complainUpdateUrl: "api/branchapi/frontoffice/editcomplaint";
|
|
57
|
+
export const complainDeleteUrl: "api/branchapi/frontoffice/deletecomplaint";
|
|
58
|
+
export const purposeTableUrl: "api/branchapi/Frontoffice/purposetablelist";
|
|
59
|
+
export const complaintTypeTableUrl: "api/branchapi/Frontoffice/complaint_typetablelist";
|
|
60
|
+
export const sourceTableUrl: "api/branchapi/Frontoffice/sourcetablelist";
|
|
61
|
+
export const referencTableUrl: "api/branchapi/Frontoffice/referencetablelist";
|
|
62
|
+
export const purposeAddUrl: "api/branchapi/frontoffice/addvisitors_purpose";
|
|
63
|
+
export const complainTypeAddUrl: "api/branchapi/frontoffice/addcomplaint_type";
|
|
64
|
+
export const sourceAddUrl: "api/branchapi/frontoffice/addsource";
|
|
65
|
+
export const referenceAddUrl: "api/branchapi/frontoffice/addreference";
|
|
66
|
+
export const deleteVisitorsPurpose: "api/branchapi/frontoffice/deleteVisitorsPurpose";
|
|
67
|
+
export const deleteComplaintType: "api/branchapi/frontoffice/deletecomplaint_type";
|
|
68
|
+
export const deleteSource: "api/branchapi/frontoffice/deletesource";
|
|
69
|
+
export const deleteReference: "api/branchapi/frontoffice/deletereference";
|
|
70
|
+
export const studentGatePassList: "api/branchapi/Student/studentGatePassList";
|
|
71
|
+
export const studentGatePass: "api/branchapi/Student/studentGatePass";
|
|
72
|
+
export const routeTableListUrl: "api/branchapi/Transport/routeTableList";
|
|
73
|
+
export const routeShowdataUrl: "api/branchapi/Transport/routeShowdata";
|
|
74
|
+
export const uploadRouteByCsvUrl: "api/branchapi/transport/uploadroutebyCSV";
|
|
75
|
+
export const routeSampleTemplateUrl: "/sample_templates/route_upload.xlsx";
|
|
76
|
+
export const classUrl: "api/branchapi/academy/classdropdownlist";
|
|
77
|
+
export const sectionUrl: "api/branchapi/academy/sectionoftheClass";
|
|
78
|
+
export const routeStudentList: "api/branchapi/Transport/routeStudentList";
|
|
79
|
+
export const getrouteDropdownUrl: "api/branchapi/Transport/getrouteDropdown";
|
|
80
|
+
export const getvehicleListByRouteIdwithCount: "api/branchapi/transport/getvehicleListByRouteIdwithCount";
|
|
81
|
+
export const getStoppageDropdown: "api/branchapi/transport/getStoppageDropdown";
|
|
82
|
+
export const showRouteAssignStudentUrl: "api/branchapi/Transport/showRouteAssignStudent";
|
|
83
|
+
export const assignTransportRoutesStudent: "api/branchapi/Transport/assignTransportRoutesStudent";
|
|
84
|
+
export const updateTransportRoutesStudent: "api/branchapi/Transport/updateTransportRoutesStudent";
|
|
85
|
+
export const removeStudentTransport: "api/branchapi/transport/removeStudentTransport";
|
|
86
|
+
export const assignTransportRoutesStudentBulkUrl: "api/branchapi/transport/assignTransportRoutesStudentBulk";
|
|
87
|
+
export const assignStudentSampleTemplateUrl: "/sample_templates/student_transport_upload.xlsx";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default IssueReturn;
|
|
3
|
-
declare
|
|
4
|
-
token: any;
|
|
5
|
-
onReturn: any;
|
|
6
|
-
}): React.JSX.Element;
|
|
3
|
+
declare const IssueReturn: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default AssignStudentToTransport;
|
|
3
|
-
declare function AssignStudentToTransport({ token, editType, onNavigate, editPagePath, }: {
|
|
3
|
+
declare function AssignStudentToTransport({ token, editType, onNavigate, editPagePath, sampleTemplateUrl, }: {
|
|
4
4
|
token: any;
|
|
5
5
|
editType: any;
|
|
6
6
|
onNavigate: any;
|
|
7
7
|
editPagePath: any;
|
|
8
|
+
sampleTemplateUrl?: string | undefined;
|
|
8
9
|
}): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export default TransportRoutes;
|
|
3
|
-
declare function TransportRoutes({ token }: {
|
|
3
|
+
declare function TransportRoutes({ token, sampleTemplateUrl }: {
|
|
4
4
|
token: any;
|
|
5
|
+
sampleTemplateUrl?: string | undefined;
|
|
5
6
|
}): React.JSX.Element;
|