waltronics-types 1.0.0
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/Appointment.ts +36 -0
- package/AppointmentList.ts +29 -0
- package/Diagnosis.ts +5 -0
- package/Employee.ts +18 -0
- package/Event.ts +18 -0
- package/Information.ts +23 -0
- package/Label.ts +16 -0
- package/Note.ts +34 -0
- package/Part.ts +7 -0
- package/Payment.ts +10 -0
- package/ProtectedAppointment.ts +30 -0
- package/Repair.ts +4 -0
- package/Service.ts +12 -0
- package/index.d.ts +13 -0
- package/index.js +13 -0
- package/package.json +12 -0
package/Appointment.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EmployeeNote } from "./Note";
|
|
2
|
+
import { AppointmentLabels } from "./Label";
|
|
3
|
+
import { Part } from "./Part";
|
|
4
|
+
import { Repair } from "./Repair";
|
|
5
|
+
import { Payment } from "./Payment";
|
|
6
|
+
import { Service } from "./Service";
|
|
7
|
+
import { Diagnosis } from "./Diagnosis";
|
|
8
|
+
|
|
9
|
+
export type Appointment = {
|
|
10
|
+
CustomerID: number;
|
|
11
|
+
AppointmentID: string;
|
|
12
|
+
FName: string;
|
|
13
|
+
LName: string;
|
|
14
|
+
Email: string;
|
|
15
|
+
Phone: string;
|
|
16
|
+
CreationDate: Date;
|
|
17
|
+
UpdationDate: Date;
|
|
18
|
+
StartDate: string|null;
|
|
19
|
+
EndDate: string|null;
|
|
20
|
+
Cost: number;
|
|
21
|
+
StatusID: number;
|
|
22
|
+
Status: string;
|
|
23
|
+
Make: string;
|
|
24
|
+
Model: string;
|
|
25
|
+
ModelYear: number;
|
|
26
|
+
VIN: string;
|
|
27
|
+
Mileage: number;
|
|
28
|
+
LicensePlate: string;
|
|
29
|
+
Labels: AppointmentLabels;
|
|
30
|
+
Notes: Array<EmployeeNote>;
|
|
31
|
+
Parts: Array<Part>;
|
|
32
|
+
Repairs: Array<Repair>;
|
|
33
|
+
Payments: Array<Payment>;
|
|
34
|
+
Services: Array<Service>;
|
|
35
|
+
Diagnoses: Array<Diagnosis>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AppointmentLabels } from "./Label";
|
|
2
|
+
|
|
3
|
+
export type AppointmentEntry = {
|
|
4
|
+
AppointmentID: string;
|
|
5
|
+
CustomerID: string;
|
|
6
|
+
FName: string;
|
|
7
|
+
LName: string;
|
|
8
|
+
Email: string;
|
|
9
|
+
Phone: string;
|
|
10
|
+
CreationDate: Date;
|
|
11
|
+
UpdationDate: Date;
|
|
12
|
+
StartDate: Date;
|
|
13
|
+
EndDate: Date;
|
|
14
|
+
Cost: number;
|
|
15
|
+
StatusID: number;
|
|
16
|
+
Status: number;
|
|
17
|
+
Make: string;
|
|
18
|
+
Model: string;
|
|
19
|
+
ModelYear: number;
|
|
20
|
+
VIN: string;
|
|
21
|
+
Mileage: number;
|
|
22
|
+
LicensePlate: string;
|
|
23
|
+
Labels: AppointmentLabels;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type AppointmentList = {
|
|
27
|
+
Count: number;
|
|
28
|
+
Appointments: Array<AppointmentEntry>;
|
|
29
|
+
}
|
package/Diagnosis.ts
ADDED
package/Employee.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Employee = {
|
|
2
|
+
EmployeeID: string;
|
|
3
|
+
FName: string;
|
|
4
|
+
LName: string;
|
|
5
|
+
Email: string;
|
|
6
|
+
Phone: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type EmployeeName = {
|
|
10
|
+
EmployeeID: string;
|
|
11
|
+
FName: string;
|
|
12
|
+
LName: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type EmployeeFullName = {
|
|
16
|
+
EmployeeID: string;
|
|
17
|
+
FullName: string;
|
|
18
|
+
}
|
package/Event.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Event = {
|
|
2
|
+
EventID: number;
|
|
3
|
+
EmployeeID: string;
|
|
4
|
+
Name: string;
|
|
5
|
+
Date: string;
|
|
6
|
+
Summary: string;
|
|
7
|
+
AppointmentID: string|null;
|
|
8
|
+
Sharees: Array<{
|
|
9
|
+
ShareeID: string;
|
|
10
|
+
EventID: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type EventSharee = {
|
|
15
|
+
ShareeFName: string;
|
|
16
|
+
ShareeLName: string;
|
|
17
|
+
ShareeID: string;
|
|
18
|
+
}
|
package/Information.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type InfoMake = {
|
|
2
|
+
Make: string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export type InfoLabel = {
|
|
6
|
+
LabelID: number;
|
|
7
|
+
Label: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type InfoStatus = {
|
|
11
|
+
StatusID: number;
|
|
12
|
+
Status: string;
|
|
13
|
+
Description: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type InfoService = {
|
|
17
|
+
ClassID: number;
|
|
18
|
+
DivisionID: number;
|
|
19
|
+
ServiceID: number;
|
|
20
|
+
Class: string;
|
|
21
|
+
Division: string;
|
|
22
|
+
Service: string;
|
|
23
|
+
}
|
package/Label.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type Label = {
|
|
2
|
+
LabelID: number;
|
|
3
|
+
Label: string;
|
|
4
|
+
Value: number|null;
|
|
5
|
+
AppointmentID: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type AppointmentLabels = {
|
|
9
|
+
// The "LabelName" is what the "Label"
|
|
10
|
+
// property is in the "Label" type.
|
|
11
|
+
[LabelName: string]: Label;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type MultipleAppointmentLabels = {
|
|
15
|
+
[AppointmentID: string]: AppointmentLabels;
|
|
16
|
+
}
|
package/Note.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type Note = {
|
|
2
|
+
NoteID: string;
|
|
3
|
+
EmployeeID: string;
|
|
4
|
+
AppointmentID: string;
|
|
5
|
+
Head: string;
|
|
6
|
+
Body: string;
|
|
7
|
+
ShowCustomer: string;
|
|
8
|
+
CreationDate: Date;
|
|
9
|
+
UpdationDate: Date;
|
|
10
|
+
Sharees: Array<{
|
|
11
|
+
ShareeID: string;
|
|
12
|
+
NoteID: string;
|
|
13
|
+
}>;
|
|
14
|
+
Attachments: Array<NoteAttachment>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type NoteAttachment = {
|
|
18
|
+
NoteID: number;
|
|
19
|
+
AttachmentID: number;
|
|
20
|
+
URL: string;
|
|
21
|
+
Name: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type NoteSharee = {
|
|
25
|
+
ShareeFName: string;
|
|
26
|
+
ShareeLName: string;
|
|
27
|
+
ShareeID: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type EmployeeNote = Note & {
|
|
31
|
+
OwnerFName: string;
|
|
32
|
+
OwnerLName: string;
|
|
33
|
+
OwnerID: string;
|
|
34
|
+
}
|
package/Part.ts
ADDED
package/Payment.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Note } from "./Note";
|
|
2
|
+
import { Repair } from "./Repair";
|
|
3
|
+
import { Service } from "./Service";
|
|
4
|
+
import { Diagnosis } from "./Diagnosis";
|
|
5
|
+
|
|
6
|
+
export type ProtectedAppointment = {
|
|
7
|
+
AppointmentID: string;
|
|
8
|
+
CustomerID: number;
|
|
9
|
+
FName: string;
|
|
10
|
+
LName: string;
|
|
11
|
+
Email: string;
|
|
12
|
+
Phone: string;
|
|
13
|
+
CreationDate: Date;
|
|
14
|
+
UpdationDate: Date;
|
|
15
|
+
StartDate: Date;
|
|
16
|
+
EndDate: Date;
|
|
17
|
+
Cost: number;
|
|
18
|
+
StatusID: number;
|
|
19
|
+
Status: string;
|
|
20
|
+
Make: string;
|
|
21
|
+
Model: string;
|
|
22
|
+
ModelYear: number;
|
|
23
|
+
VIN: string;
|
|
24
|
+
Mileage: number;
|
|
25
|
+
LicensePlate: string;
|
|
26
|
+
Notes: Array<Note>;
|
|
27
|
+
Repairs: Array<Repair>;
|
|
28
|
+
Services: Array<Service>;
|
|
29
|
+
Diagnoses: Array<Diagnosis>;
|
|
30
|
+
}
|
package/Repair.ts
ADDED
package/Service.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Service = {
|
|
2
|
+
// It's kind of confusing, but "AppointmentServiceID"
|
|
3
|
+
// refers to the unique ID given to each Service instance.
|
|
4
|
+
// "ServiceID" refers to the Info.Service information that this
|
|
5
|
+
// Service has.
|
|
6
|
+
AppointmentServiceID: number;
|
|
7
|
+
AppointmentID: string;
|
|
8
|
+
Class: string;
|
|
9
|
+
Division: string;
|
|
10
|
+
Service: string;
|
|
11
|
+
ServiceID: number|null;
|
|
12
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Appointment.ts";
|
|
2
|
+
export * from "./AppointmentList.ts";
|
|
3
|
+
export * from "./Diagnosis.ts";
|
|
4
|
+
export * from "./Employee.ts";
|
|
5
|
+
export * from "./Event.ts";
|
|
6
|
+
export * from "./Information.ts";
|
|
7
|
+
export * from "./Label.ts";
|
|
8
|
+
export * from "./Note.ts";
|
|
9
|
+
export * from "./Part.ts";
|
|
10
|
+
export * from "./Payment.ts";
|
|
11
|
+
export * from "./ProtectedAppointment.ts";
|
|
12
|
+
export * from "./Repair.ts";
|
|
13
|
+
export * from "./Service.ts";
|
package/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Appointment.ts";
|
|
2
|
+
export * from "./AppointmentList.ts";
|
|
3
|
+
export * from "./Diagnosis.ts";
|
|
4
|
+
export * from "./Employee.ts";
|
|
5
|
+
export * from "./Event.ts";
|
|
6
|
+
export * from "./Information.ts";
|
|
7
|
+
export * from "./Label.ts";
|
|
8
|
+
export * from "./Note.ts";
|
|
9
|
+
export * from "./Part.ts";
|
|
10
|
+
export * from "./Payment.ts";
|
|
11
|
+
export * from "./ProtectedAppointment.ts";
|
|
12
|
+
export * from "./Repair.ts";
|
|
13
|
+
export * from "./Service.ts";
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "waltronics-types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Contains the types used in the Waltronics application.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|