pat-shared-components 0.3.0 → 0.4.0-beta.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/dist/index.es.js +11640 -13247
- package/dist/index.umd.js +48 -51
- package/dist/style.css +1 -1
- package/dist/types/components/{TestResult/Mobile/BookingTab/BookingDetail/BookingDetail.vue.d.ts → BookingDetail/BasicInfo.vue.d.ts} +8 -12
- package/dist/types/components/BookingDetail/BasicInfoSection.vue.d.ts +31 -0
- package/dist/types/components/BookingDetail/BookingDetail.vue.d.ts +25 -0
- package/dist/types/components/BookingDetail/BookingDetailDesktop.vue.d.ts +25 -0
- package/dist/types/components/BookingDetail/BookingNote.vue.d.ts +28 -0
- package/dist/types/components/BookingDetail/BookingNumber.vue.d.ts +25 -0
- package/dist/types/components/BookingDetail/BookingResultStatus.vue.d.ts +31 -0
- package/dist/types/components/{TestResult/Mobile/BookingTab/BookingDetail/BookingNumber.vue.d.ts → BookingDetail/BookingStatusComponent.vue.d.ts} +2 -2
- package/dist/types/components/BookingDetail/BottomCurved.vue.d.ts +29 -0
- package/dist/types/components/BookingDetail/CtaButton.vue.d.ts +40 -0
- package/dist/types/components/{TestResult/Mobile/BookingTab/BookingDetail → BookingDetail}/DiagLogo.vue.d.ts +1 -1
- package/dist/types/components/{TestResult/Mobile/BookingTab/BookingDetail/BookingPrescription.vue.d.ts → BookingDetail/PaymentStatusComponent.vue.d.ts} +2 -2
- package/dist/types/components/BookingDetail/SampleCollectionInfo.vue.d.ts +36 -0
- package/dist/types/components/BookingDetail/TestList.vue.d.ts +27 -0
- package/dist/types/components/{TestResult/Mobile/BookingTab/BookingDetail/PatientInfo.vue.d.ts → BookingDetail/TotalPayment.vue.d.ts} +1 -2
- package/dist/types/components/BookingDetail/index.d.ts +2 -0
- package/dist/types/components/Shared/ResultStatus.vue.d.ts +23 -0
- package/dist/types/components/Shared/SectionTitle.vue.d.ts +9 -0
- package/dist/types/components/Shared/TitleIcon.vue.d.ts +30 -0
- package/dist/types/components/TestResult/index.d.ts +0 -2
- package/dist/types/composables/BookingDetail.d.ts +21 -0
- package/dist/types/composables/Patient.d.ts +5 -0
- package/dist/types/constants/Enums.d.ts +37 -5
- package/dist/types/types/Booking.d.ts +54 -21
- package/package.json +1 -1
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingSupport.vue.d.ts +0 -2
- package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/GetToDiag.vue.d.ts +0 -4
- /package/dist/types/components/{TestResult/CheckOthersButton.vue.d.ts → BookingDetail/DiagSupport.vue.d.ts} +0 -0
- /package/dist/types/components/{TestResult/PatientShortInfoV2.vue.d.ts → Shared/PatientName.vue.d.ts} +0 -0
|
@@ -2,14 +2,24 @@
|
|
|
2
2
|
* Booking
|
|
3
3
|
*/
|
|
4
4
|
export declare enum BookingStatus {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Created = "created",
|
|
6
|
+
InProgress = "in-progress",
|
|
7
|
+
Completed = "completed",
|
|
8
|
+
Canceled = "canceled"
|
|
8
9
|
}
|
|
9
10
|
export declare enum PaymentStatus {
|
|
10
|
-
|
|
11
|
+
RefundInProgress = "refund_in_progress",
|
|
11
12
|
Refunded = "refunded",
|
|
12
|
-
|
|
13
|
+
PayLater = "pay-later",
|
|
14
|
+
PaidOnline = "paid-online",
|
|
15
|
+
Paid = "paid",
|
|
16
|
+
Canceled = "cancelled"
|
|
17
|
+
}
|
|
18
|
+
export declare enum ServiceType {
|
|
19
|
+
Group = "GRP",
|
|
20
|
+
Package = "PKG",
|
|
21
|
+
Investigation = "INV",
|
|
22
|
+
ImagingService = "IMG"
|
|
13
23
|
}
|
|
14
24
|
/**
|
|
15
25
|
* Test Result
|
|
@@ -60,12 +70,34 @@ export declare enum ResultSegmentValueOPR {
|
|
|
60
70
|
BTW = "btw",
|
|
61
71
|
Txt = "txt"
|
|
62
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Patient
|
|
75
|
+
*/
|
|
76
|
+
export declare enum DocumentType {
|
|
77
|
+
IDCard = "ID Card",
|
|
78
|
+
Passport = "Passport",
|
|
79
|
+
PassportNo = "Passport No",
|
|
80
|
+
Unknown = "Unknown"
|
|
81
|
+
}
|
|
63
82
|
export declare enum Gender {
|
|
64
83
|
Male = "Male",
|
|
65
84
|
Female = "Female"
|
|
66
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Others
|
|
88
|
+
*/
|
|
67
89
|
export declare enum DayPartType {
|
|
68
90
|
Morning = "morning",
|
|
69
91
|
Afternoon = "afternoon",
|
|
70
92
|
Evening = "evening"
|
|
71
93
|
}
|
|
94
|
+
export declare enum AccountSegment {
|
|
95
|
+
HomeKit = "homekit",
|
|
96
|
+
Walkin = "walkin",
|
|
97
|
+
Doctor = "doctor",
|
|
98
|
+
Corporate = "corporate"
|
|
99
|
+
}
|
|
100
|
+
export declare enum BottomCursedType {
|
|
101
|
+
Medium = "md",
|
|
102
|
+
Large = "lg"
|
|
103
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { BookingStatus, Gender, PaymentStatus } from '@/constants/Enums';
|
|
1
|
+
import type { AccountSegment, BookingStatus, DocumentType, Gender, PaymentStatus, TestResultStatus, ServiceType } from '@/constants/Enums';
|
|
2
2
|
export interface BookingCompact {
|
|
3
3
|
booking_code: string;
|
|
4
4
|
booking_status: BookingStatus;
|
|
5
5
|
created_at: string;
|
|
6
6
|
date_of_birth: string;
|
|
7
|
-
document_number:
|
|
8
|
-
document_type:
|
|
7
|
+
document_number: string;
|
|
8
|
+
document_type: DocumentType;
|
|
9
9
|
email: string;
|
|
10
10
|
first_name: string;
|
|
11
11
|
gender: Gender;
|
|
@@ -20,10 +20,12 @@ export interface BookingCompact {
|
|
|
20
20
|
export interface Booking {
|
|
21
21
|
booking_code: string;
|
|
22
22
|
booking_status: BookingStatus;
|
|
23
|
+
result_status: TestResultStatus;
|
|
23
24
|
created_at: string;
|
|
24
25
|
date_of_birth: string;
|
|
25
|
-
document_number
|
|
26
|
-
document_type:
|
|
26
|
+
document_number: string;
|
|
27
|
+
document_type: DocumentType;
|
|
28
|
+
address?: string;
|
|
27
29
|
email?: string;
|
|
28
30
|
first_name: string;
|
|
29
31
|
note?: string;
|
|
@@ -49,24 +51,55 @@ export interface Booking {
|
|
|
49
51
|
actor: any;
|
|
50
52
|
};
|
|
51
53
|
};
|
|
52
|
-
account:
|
|
54
|
+
account: BookingAccount;
|
|
53
55
|
services: Array<BookingService>;
|
|
54
56
|
total_amount: number;
|
|
57
|
+
test_result_key?: string;
|
|
58
|
+
data?: {
|
|
59
|
+
is_hbc: boolean;
|
|
60
|
+
planned_test_date?: string;
|
|
61
|
+
supportingInformation?: {
|
|
62
|
+
appointmentSampleCollectionPlace: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export interface BookingAccount {
|
|
67
|
+
account_code: string;
|
|
68
|
+
name: string;
|
|
69
|
+
phone_number?: string;
|
|
70
|
+
account_segment: AccountSegment;
|
|
55
71
|
}
|
|
56
72
|
export interface BookingService {
|
|
57
|
-
service:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
service: BookingServiceDetail;
|
|
74
|
+
}
|
|
75
|
+
export interface BookingServiceDetail {
|
|
76
|
+
test_code: string;
|
|
77
|
+
group: string;
|
|
78
|
+
test_name_en: string;
|
|
79
|
+
test_name_vi: string;
|
|
80
|
+
simple_name_en: string | null;
|
|
81
|
+
simple_name_vi: string | null;
|
|
82
|
+
walkin_price: number;
|
|
83
|
+
simple_cate_en: string;
|
|
84
|
+
simple_cate_vi: string;
|
|
85
|
+
service_type: ServiceType;
|
|
86
|
+
}
|
|
87
|
+
export interface BookingBasicInfoPatient {
|
|
88
|
+
first_name: string;
|
|
89
|
+
date_of_birth: string;
|
|
90
|
+
gender: Gender;
|
|
91
|
+
phone_number: string;
|
|
92
|
+
document_type: DocumentType;
|
|
93
|
+
document_number: string;
|
|
94
|
+
address?: string;
|
|
95
|
+
email?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface BookingBasicInfoDoctor {
|
|
98
|
+
account_code: string;
|
|
99
|
+
name: string;
|
|
100
|
+
phone_number?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface BookingBasicInfoSectionItem {
|
|
103
|
+
icon: string;
|
|
104
|
+
text?: string;
|
|
72
105
|
}
|
package/package.json
CHANGED
package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingSupport.vue.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click:find-branch"[], "click:find-branch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
2
|
-
"onClick:find-branch"?: (...args: any[]) => any;
|
|
3
|
-
}, {}>;
|
|
4
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|