@hapaul/api 0.1.50 → 0.1.51
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.d.ts +256 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -742,6 +742,74 @@ interface paths {
|
|
|
742
742
|
patch: operations["updateHealthRecord"];
|
|
743
743
|
trace?: never;
|
|
744
744
|
};
|
|
745
|
+
"/medication/createMedication": {
|
|
746
|
+
parameters: {
|
|
747
|
+
query?: never;
|
|
748
|
+
header?: never;
|
|
749
|
+
path?: never;
|
|
750
|
+
cookie?: never;
|
|
751
|
+
};
|
|
752
|
+
get?: never;
|
|
753
|
+
put?: never;
|
|
754
|
+
/** Create medication */
|
|
755
|
+
post: operations["createMedication"];
|
|
756
|
+
delete?: never;
|
|
757
|
+
options?: never;
|
|
758
|
+
head?: never;
|
|
759
|
+
patch?: never;
|
|
760
|
+
trace?: never;
|
|
761
|
+
};
|
|
762
|
+
"/medication/queryMedications": {
|
|
763
|
+
parameters: {
|
|
764
|
+
query?: never;
|
|
765
|
+
header?: never;
|
|
766
|
+
path?: never;
|
|
767
|
+
cookie?: never;
|
|
768
|
+
};
|
|
769
|
+
get?: never;
|
|
770
|
+
put?: never;
|
|
771
|
+
/** Query medications */
|
|
772
|
+
post: operations["queryMedications"];
|
|
773
|
+
delete?: never;
|
|
774
|
+
options?: never;
|
|
775
|
+
head?: never;
|
|
776
|
+
patch?: never;
|
|
777
|
+
trace?: never;
|
|
778
|
+
};
|
|
779
|
+
"/medication/deleteMedication": {
|
|
780
|
+
parameters: {
|
|
781
|
+
query?: never;
|
|
782
|
+
header?: never;
|
|
783
|
+
path?: never;
|
|
784
|
+
cookie?: never;
|
|
785
|
+
};
|
|
786
|
+
get?: never;
|
|
787
|
+
put?: never;
|
|
788
|
+
post?: never;
|
|
789
|
+
/** Delete medication */
|
|
790
|
+
delete: operations["deleteMedication"];
|
|
791
|
+
options?: never;
|
|
792
|
+
head?: never;
|
|
793
|
+
patch?: never;
|
|
794
|
+
trace?: never;
|
|
795
|
+
};
|
|
796
|
+
"/medication/updateMedication": {
|
|
797
|
+
parameters: {
|
|
798
|
+
query?: never;
|
|
799
|
+
header?: never;
|
|
800
|
+
path?: never;
|
|
801
|
+
cookie?: never;
|
|
802
|
+
};
|
|
803
|
+
get?: never;
|
|
804
|
+
put?: never;
|
|
805
|
+
post?: never;
|
|
806
|
+
delete?: never;
|
|
807
|
+
options?: never;
|
|
808
|
+
head?: never;
|
|
809
|
+
/** Update medication */
|
|
810
|
+
patch: operations["updateMedication"];
|
|
811
|
+
trace?: never;
|
|
812
|
+
};
|
|
745
813
|
"/post/createPost": {
|
|
746
814
|
parameters: {
|
|
747
815
|
query?: never;
|
|
@@ -938,6 +1006,17 @@ interface components {
|
|
|
938
1006
|
babyId: string;
|
|
939
1007
|
relationCode: components["schemas"]["BabyRelationCode"];
|
|
940
1008
|
};
|
|
1009
|
+
CreateMedicationParams: {
|
|
1010
|
+
/** Format: uuid */
|
|
1011
|
+
babyId: string;
|
|
1012
|
+
medicationType: components["schemas"]["MedicationType"];
|
|
1013
|
+
description?: string | null;
|
|
1014
|
+
/** Format: int32 */
|
|
1015
|
+
quantity: number;
|
|
1016
|
+
unit: components["schemas"]["MedicationUnit"];
|
|
1017
|
+
/** Format: date-time */
|
|
1018
|
+
datetime: string;
|
|
1019
|
+
};
|
|
941
1020
|
CreatePermissionParams: {
|
|
942
1021
|
code: string;
|
|
943
1022
|
kind: string;
|
|
@@ -1051,6 +1130,14 @@ interface components {
|
|
|
1051
1130
|
/** Format: date-time */
|
|
1052
1131
|
to?: string | null;
|
|
1053
1132
|
};
|
|
1133
|
+
FilterMedicationParams: {
|
|
1134
|
+
/** Format: uuid */
|
|
1135
|
+
babyId?: string | null;
|
|
1136
|
+
/** Format: date-time */
|
|
1137
|
+
from?: string | null;
|
|
1138
|
+
/** Format: date-time */
|
|
1139
|
+
to?: string | null;
|
|
1140
|
+
};
|
|
1054
1141
|
FilterUrinationDefecationParams: {
|
|
1055
1142
|
/** Format: uuid */
|
|
1056
1143
|
babyId?: string | null;
|
|
@@ -1127,6 +1214,27 @@ interface components {
|
|
|
1127
1214
|
account: string;
|
|
1128
1215
|
accessToken: string;
|
|
1129
1216
|
};
|
|
1217
|
+
Medication: {
|
|
1218
|
+
/** Format: uuid */
|
|
1219
|
+
id: string;
|
|
1220
|
+
/** Format: uuid */
|
|
1221
|
+
baby_id: string;
|
|
1222
|
+
medication_type: components["schemas"]["MedicationType"];
|
|
1223
|
+
description?: string | null;
|
|
1224
|
+
/** Format: int32 */
|
|
1225
|
+
quantity: number;
|
|
1226
|
+
unit: components["schemas"]["MedicationUnit"];
|
|
1227
|
+
/** Format: date-time */
|
|
1228
|
+
datetime: string;
|
|
1229
|
+
/** Format: date-time */
|
|
1230
|
+
created_at: string;
|
|
1231
|
+
/** Format: date-time */
|
|
1232
|
+
updated_at: string;
|
|
1233
|
+
};
|
|
1234
|
+
/** @enum {string} */
|
|
1235
|
+
MedicationType: "health" | "prescription";
|
|
1236
|
+
/** @enum {string} */
|
|
1237
|
+
MedicationUnit: "pill" | "piece" | "milliliter" | "milligram" | "gram" | "bottle" | "bag";
|
|
1130
1238
|
MergeFileChunksDto: {
|
|
1131
1239
|
/** Format: uuid */
|
|
1132
1240
|
uploadId: string;
|
|
@@ -1179,6 +1287,21 @@ interface components {
|
|
|
1179
1287
|
};
|
|
1180
1288
|
sorts?: components["schemas"]["QuerySortDto_SortHealthRecordsParams"][] | null;
|
|
1181
1289
|
};
|
|
1290
|
+
PageableQueryDto_FilterMedicationParams_SortMedicationParams: {
|
|
1291
|
+
/** Format: int64 */
|
|
1292
|
+
page?: number | null;
|
|
1293
|
+
/** Format: int64 */
|
|
1294
|
+
pageSize?: number | null;
|
|
1295
|
+
filters?: {
|
|
1296
|
+
/** Format: uuid */
|
|
1297
|
+
babyId?: string | null;
|
|
1298
|
+
/** Format: date-time */
|
|
1299
|
+
from?: string | null;
|
|
1300
|
+
/** Format: date-time */
|
|
1301
|
+
to?: string | null;
|
|
1302
|
+
};
|
|
1303
|
+
sorts?: components["schemas"]["QuerySortDto_SortMedicationParams"][] | null;
|
|
1304
|
+
};
|
|
1182
1305
|
PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams: {
|
|
1183
1306
|
/** Format: int64 */
|
|
1184
1307
|
page?: number | null;
|
|
@@ -1295,6 +1418,11 @@ interface components {
|
|
|
1295
1418
|
field: "datetime";
|
|
1296
1419
|
order: components["schemas"]["QueryOrder"];
|
|
1297
1420
|
};
|
|
1421
|
+
QuerySortDto_SortMedicationParams: {
|
|
1422
|
+
/** @enum {string} */
|
|
1423
|
+
field: "datetime";
|
|
1424
|
+
order: components["schemas"]["QueryOrder"];
|
|
1425
|
+
};
|
|
1298
1426
|
QuerySortDto_SortUrinationDefecationParams: {
|
|
1299
1427
|
/** @enum {string} */
|
|
1300
1428
|
field: "datetime";
|
|
@@ -1384,6 +1512,27 @@ interface components {
|
|
|
1384
1512
|
/** Format: int64 */
|
|
1385
1513
|
total: number;
|
|
1386
1514
|
};
|
|
1515
|
+
ResponseJson_PaginatedData_Medication: {
|
|
1516
|
+
records: {
|
|
1517
|
+
/** Format: uuid */
|
|
1518
|
+
id: string;
|
|
1519
|
+
/** Format: uuid */
|
|
1520
|
+
baby_id: string;
|
|
1521
|
+
medication_type: components["schemas"]["MedicationType"];
|
|
1522
|
+
description?: string | null;
|
|
1523
|
+
/** Format: int32 */
|
|
1524
|
+
quantity: number;
|
|
1525
|
+
unit: components["schemas"]["MedicationUnit"];
|
|
1526
|
+
/** Format: date-time */
|
|
1527
|
+
datetime: string;
|
|
1528
|
+
/** Format: date-time */
|
|
1529
|
+
created_at: string;
|
|
1530
|
+
/** Format: date-time */
|
|
1531
|
+
updated_at: string;
|
|
1532
|
+
}[];
|
|
1533
|
+
/** Format: int64 */
|
|
1534
|
+
total: number;
|
|
1535
|
+
};
|
|
1387
1536
|
ResponseJson_PaginatedData_Permission: {
|
|
1388
1537
|
records: {
|
|
1389
1538
|
/** Format: uuid */
|
|
@@ -1549,6 +1698,8 @@ interface components {
|
|
|
1549
1698
|
/** @enum {string} */
|
|
1550
1699
|
SortHealthRecordsParams: "datetime";
|
|
1551
1700
|
/** @enum {string} */
|
|
1701
|
+
SortMedicationParams: "datetime";
|
|
1702
|
+
/** @enum {string} */
|
|
1552
1703
|
SortUrinationDefecationParams: "datetime";
|
|
1553
1704
|
/** @enum {string} */
|
|
1554
1705
|
ThirdParty: "wechat" | "github";
|
|
@@ -1579,6 +1730,17 @@ interface components {
|
|
|
1579
1730
|
/** Format: date-time */
|
|
1580
1731
|
datetime?: string | null;
|
|
1581
1732
|
};
|
|
1733
|
+
UpdateMedicationParams: {
|
|
1734
|
+
/** Format: uuid */
|
|
1735
|
+
id: string;
|
|
1736
|
+
medicationType?: null | components["schemas"]["MedicationType"];
|
|
1737
|
+
description?: string | null;
|
|
1738
|
+
/** Format: int32 */
|
|
1739
|
+
quantity?: number | null;
|
|
1740
|
+
unit?: null | components["schemas"]["MedicationUnit"];
|
|
1741
|
+
/** Format: date-time */
|
|
1742
|
+
datetime?: string | null;
|
|
1743
|
+
};
|
|
1582
1744
|
UpdatePermissionParams: {
|
|
1583
1745
|
/** Format: uuid */
|
|
1584
1746
|
id: string;
|
|
@@ -2765,6 +2927,100 @@ interface operations {
|
|
|
2765
2927
|
};
|
|
2766
2928
|
};
|
|
2767
2929
|
};
|
|
2930
|
+
createMedication: {
|
|
2931
|
+
parameters: {
|
|
2932
|
+
query?: never;
|
|
2933
|
+
header?: never;
|
|
2934
|
+
path?: never;
|
|
2935
|
+
cookie?: never;
|
|
2936
|
+
};
|
|
2937
|
+
requestBody: {
|
|
2938
|
+
content: {
|
|
2939
|
+
"application/json": components["schemas"]["CreateMedicationParams"];
|
|
2940
|
+
};
|
|
2941
|
+
};
|
|
2942
|
+
responses: {
|
|
2943
|
+
/** @description ok */
|
|
2944
|
+
200: {
|
|
2945
|
+
headers: {
|
|
2946
|
+
[name: string]: unknown;
|
|
2947
|
+
};
|
|
2948
|
+
content: {
|
|
2949
|
+
"application/json": components["schemas"]["ResponseJson_String"];
|
|
2950
|
+
};
|
|
2951
|
+
};
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
queryMedications: {
|
|
2955
|
+
parameters: {
|
|
2956
|
+
query?: never;
|
|
2957
|
+
header?: never;
|
|
2958
|
+
path?: never;
|
|
2959
|
+
cookie?: never;
|
|
2960
|
+
};
|
|
2961
|
+
requestBody: {
|
|
2962
|
+
content: {
|
|
2963
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterMedicationParams_SortMedicationParams"];
|
|
2964
|
+
};
|
|
2965
|
+
};
|
|
2966
|
+
responses: {
|
|
2967
|
+
/** @description ok */
|
|
2968
|
+
200: {
|
|
2969
|
+
headers: {
|
|
2970
|
+
[name: string]: unknown;
|
|
2971
|
+
};
|
|
2972
|
+
content: {
|
|
2973
|
+
"application/json": components["schemas"]["ResponseJson_PaginatedData_Medication"];
|
|
2974
|
+
};
|
|
2975
|
+
};
|
|
2976
|
+
};
|
|
2977
|
+
};
|
|
2978
|
+
deleteMedication: {
|
|
2979
|
+
parameters: {
|
|
2980
|
+
query: {
|
|
2981
|
+
id: string;
|
|
2982
|
+
};
|
|
2983
|
+
header?: never;
|
|
2984
|
+
path?: never;
|
|
2985
|
+
cookie?: never;
|
|
2986
|
+
};
|
|
2987
|
+
requestBody?: never;
|
|
2988
|
+
responses: {
|
|
2989
|
+
/** @description ok */
|
|
2990
|
+
200: {
|
|
2991
|
+
headers: {
|
|
2992
|
+
[name: string]: unknown;
|
|
2993
|
+
};
|
|
2994
|
+
content: {
|
|
2995
|
+
"application/json": components["schemas"]["ResponseJson"];
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
};
|
|
2999
|
+
};
|
|
3000
|
+
updateMedication: {
|
|
3001
|
+
parameters: {
|
|
3002
|
+
query?: never;
|
|
3003
|
+
header?: never;
|
|
3004
|
+
path?: never;
|
|
3005
|
+
cookie?: never;
|
|
3006
|
+
};
|
|
3007
|
+
requestBody: {
|
|
3008
|
+
content: {
|
|
3009
|
+
"application/json": components["schemas"]["UpdateMedicationParams"];
|
|
3010
|
+
};
|
|
3011
|
+
};
|
|
3012
|
+
responses: {
|
|
3013
|
+
/** @description ok */
|
|
3014
|
+
200: {
|
|
3015
|
+
headers: {
|
|
3016
|
+
[name: string]: unknown;
|
|
3017
|
+
};
|
|
3018
|
+
content: {
|
|
3019
|
+
"application/json": components["schemas"]["ResponseJson_Null"];
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
};
|
|
3023
|
+
};
|
|
2768
3024
|
createPost: {
|
|
2769
3025
|
parameters: {
|
|
2770
3026
|
query?: never;
|