@hapaul/api 0.1.58 → 0.1.59
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 +327 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1048,6 +1048,91 @@ interface paths {
|
|
|
1048
1048
|
patch: operations["updateUrinationDefecation"];
|
|
1049
1049
|
trace?: never;
|
|
1050
1050
|
};
|
|
1051
|
+
"/vaccination/createVaccination": {
|
|
1052
|
+
parameters: {
|
|
1053
|
+
query?: never;
|
|
1054
|
+
header?: never;
|
|
1055
|
+
path?: never;
|
|
1056
|
+
cookie?: never;
|
|
1057
|
+
};
|
|
1058
|
+
get?: never;
|
|
1059
|
+
put?: never;
|
|
1060
|
+
/** Create vaccination */
|
|
1061
|
+
post: operations["createVaccination"];
|
|
1062
|
+
delete?: never;
|
|
1063
|
+
options?: never;
|
|
1064
|
+
head?: never;
|
|
1065
|
+
patch?: never;
|
|
1066
|
+
trace?: never;
|
|
1067
|
+
};
|
|
1068
|
+
"/vaccination/queryVaccinations": {
|
|
1069
|
+
parameters: {
|
|
1070
|
+
query?: never;
|
|
1071
|
+
header?: never;
|
|
1072
|
+
path?: never;
|
|
1073
|
+
cookie?: never;
|
|
1074
|
+
};
|
|
1075
|
+
get?: never;
|
|
1076
|
+
put?: never;
|
|
1077
|
+
/** Query vaccinations */
|
|
1078
|
+
post: operations["queryVaccinations"];
|
|
1079
|
+
delete?: never;
|
|
1080
|
+
options?: never;
|
|
1081
|
+
head?: never;
|
|
1082
|
+
patch?: never;
|
|
1083
|
+
trace?: never;
|
|
1084
|
+
};
|
|
1085
|
+
"/vaccination/deleteVaccination": {
|
|
1086
|
+
parameters: {
|
|
1087
|
+
query?: never;
|
|
1088
|
+
header?: never;
|
|
1089
|
+
path?: never;
|
|
1090
|
+
cookie?: never;
|
|
1091
|
+
};
|
|
1092
|
+
get?: never;
|
|
1093
|
+
put?: never;
|
|
1094
|
+
post?: never;
|
|
1095
|
+
/** Delete vaccination */
|
|
1096
|
+
delete: operations["deleteVaccination"];
|
|
1097
|
+
options?: never;
|
|
1098
|
+
head?: never;
|
|
1099
|
+
patch?: never;
|
|
1100
|
+
trace?: never;
|
|
1101
|
+
};
|
|
1102
|
+
"/vaccination/updateVaccination": {
|
|
1103
|
+
parameters: {
|
|
1104
|
+
query?: never;
|
|
1105
|
+
header?: never;
|
|
1106
|
+
path?: never;
|
|
1107
|
+
cookie?: never;
|
|
1108
|
+
};
|
|
1109
|
+
get?: never;
|
|
1110
|
+
put?: never;
|
|
1111
|
+
post?: never;
|
|
1112
|
+
delete?: never;
|
|
1113
|
+
options?: never;
|
|
1114
|
+
head?: never;
|
|
1115
|
+
/** Update vaccination */
|
|
1116
|
+
patch: operations["updateVaccination"];
|
|
1117
|
+
trace?: never;
|
|
1118
|
+
};
|
|
1119
|
+
"/ws/info": {
|
|
1120
|
+
parameters: {
|
|
1121
|
+
query?: never;
|
|
1122
|
+
header?: never;
|
|
1123
|
+
path?: never;
|
|
1124
|
+
cookie?: never;
|
|
1125
|
+
};
|
|
1126
|
+
/** Get WebSocket connection info */
|
|
1127
|
+
get: operations["getWebSocketInfo"];
|
|
1128
|
+
put?: never;
|
|
1129
|
+
post?: never;
|
|
1130
|
+
delete?: never;
|
|
1131
|
+
options?: never;
|
|
1132
|
+
head?: never;
|
|
1133
|
+
patch?: never;
|
|
1134
|
+
trace?: never;
|
|
1135
|
+
};
|
|
1051
1136
|
}
|
|
1052
1137
|
interface components {
|
|
1053
1138
|
schemas: {
|
|
@@ -1203,6 +1288,21 @@ interface components {
|
|
|
1203
1288
|
account: string;
|
|
1204
1289
|
password: string;
|
|
1205
1290
|
};
|
|
1291
|
+
CreateVaccinationParams: {
|
|
1292
|
+
/** Format: uuid */
|
|
1293
|
+
babyId: string;
|
|
1294
|
+
name: string;
|
|
1295
|
+
/** Format: date-time */
|
|
1296
|
+
datetime: string;
|
|
1297
|
+
/** Format: int32 */
|
|
1298
|
+
doseNumber?: number | null;
|
|
1299
|
+
injectionSite?: string | null;
|
|
1300
|
+
hospital?: string | null;
|
|
1301
|
+
batchNumber?: string | null;
|
|
1302
|
+
notes?: string | null;
|
|
1303
|
+
/** Format: date-time */
|
|
1304
|
+
nextDoseDate?: string | null;
|
|
1305
|
+
};
|
|
1206
1306
|
DailyLog: {
|
|
1207
1307
|
records: components["schemas"]["DailyLogRecord"][];
|
|
1208
1308
|
};
|
|
@@ -1317,6 +1417,14 @@ interface components {
|
|
|
1317
1417
|
/** Format: date-time */
|
|
1318
1418
|
to?: string | null;
|
|
1319
1419
|
};
|
|
1420
|
+
FilterVaccinationParams: {
|
|
1421
|
+
/** Format: uuid */
|
|
1422
|
+
babyId?: string | null;
|
|
1423
|
+
/** Format: date-time */
|
|
1424
|
+
from?: string | null;
|
|
1425
|
+
/** Format: date-time */
|
|
1426
|
+
to?: string | null;
|
|
1427
|
+
};
|
|
1320
1428
|
/** @enum {string} */
|
|
1321
1429
|
Gender: "unknown" | "male" | "female";
|
|
1322
1430
|
GenericMetadata: unknown;
|
|
@@ -1501,6 +1609,21 @@ interface components {
|
|
|
1501
1609
|
};
|
|
1502
1610
|
sorts?: components["schemas"]["QuerySortDto_SortUrinationDefecationParams"][] | null;
|
|
1503
1611
|
};
|
|
1612
|
+
PageableQueryDto_FilterVaccinationParams_SortVaccinationParams: {
|
|
1613
|
+
/** Format: int64 */
|
|
1614
|
+
page?: number | null;
|
|
1615
|
+
/** Format: int64 */
|
|
1616
|
+
pageSize?: number | null;
|
|
1617
|
+
filters?: {
|
|
1618
|
+
/** Format: uuid */
|
|
1619
|
+
babyId?: string | null;
|
|
1620
|
+
/** Format: date-time */
|
|
1621
|
+
from?: string | null;
|
|
1622
|
+
/** Format: date-time */
|
|
1623
|
+
to?: string | null;
|
|
1624
|
+
};
|
|
1625
|
+
sorts?: components["schemas"]["QuerySortDto_SortVaccinationParams"][] | null;
|
|
1626
|
+
};
|
|
1504
1627
|
PageableQueryDto_PermissionFilters_PermissionOrders: {
|
|
1505
1628
|
/** Format: int64 */
|
|
1506
1629
|
page?: number | null;
|
|
@@ -1617,6 +1740,11 @@ interface components {
|
|
|
1617
1740
|
field: "datetime";
|
|
1618
1741
|
order: components["schemas"]["QueryOrder"];
|
|
1619
1742
|
};
|
|
1743
|
+
QuerySortDto_SortVaccinationParams: {
|
|
1744
|
+
/** @enum {string} */
|
|
1745
|
+
field: "datetime";
|
|
1746
|
+
order: components["schemas"]["QueryOrder"];
|
|
1747
|
+
};
|
|
1620
1748
|
QuerySortDto_String: {
|
|
1621
1749
|
field: string;
|
|
1622
1750
|
order: components["schemas"]["QueryOrder"];
|
|
@@ -1812,6 +1940,31 @@ interface components {
|
|
|
1812
1940
|
/** Format: int64 */
|
|
1813
1941
|
total: number;
|
|
1814
1942
|
};
|
|
1943
|
+
ResponseJson_PaginatedData_Vaccination: {
|
|
1944
|
+
records: {
|
|
1945
|
+
/** Format: uuid */
|
|
1946
|
+
id: string;
|
|
1947
|
+
/** Format: uuid */
|
|
1948
|
+
baby_id: string;
|
|
1949
|
+
name: string;
|
|
1950
|
+
/** Format: date-time */
|
|
1951
|
+
datetime: string;
|
|
1952
|
+
/** Format: int32 */
|
|
1953
|
+
dose_number?: number | null;
|
|
1954
|
+
injection_site?: string | null;
|
|
1955
|
+
hospital?: string | null;
|
|
1956
|
+
batch_number?: string | null;
|
|
1957
|
+
notes?: string | null;
|
|
1958
|
+
/** Format: date-time */
|
|
1959
|
+
next_dose_date?: string | null;
|
|
1960
|
+
/** Format: date-time */
|
|
1961
|
+
created_at: string;
|
|
1962
|
+
/** Format: date-time */
|
|
1963
|
+
updated_at: string;
|
|
1964
|
+
}[];
|
|
1965
|
+
/** Format: int64 */
|
|
1966
|
+
total: number;
|
|
1967
|
+
};
|
|
1815
1968
|
ResponseJson_SessionInfoDto: {
|
|
1816
1969
|
account: string;
|
|
1817
1970
|
nickname?: string | null;
|
|
@@ -1871,6 +2024,13 @@ interface components {
|
|
|
1871
2024
|
/** Format: date-time */
|
|
1872
2025
|
createdAt: string;
|
|
1873
2026
|
}[];
|
|
2027
|
+
ResponseJson_WebSocketInfoDto: {
|
|
2028
|
+
/** Format: uuid */
|
|
2029
|
+
userId: string;
|
|
2030
|
+
connectionCount: number;
|
|
2031
|
+
maxConnections: number;
|
|
2032
|
+
totalConnections: number;
|
|
2033
|
+
};
|
|
1874
2034
|
/** Format: int64 */
|
|
1875
2035
|
ResponseJson_u64: number;
|
|
1876
2036
|
RoleDto: {
|
|
@@ -1921,6 +2081,8 @@ interface components {
|
|
|
1921
2081
|
/** @enum {string} */
|
|
1922
2082
|
SortUrinationDefecationParams: "datetime";
|
|
1923
2083
|
/** @enum {string} */
|
|
2084
|
+
SortVaccinationParams: "datetime";
|
|
2085
|
+
/** @enum {string} */
|
|
1924
2086
|
ThirdParty: "wechat" | "github";
|
|
1925
2087
|
UnfollowBabyParams: {
|
|
1926
2088
|
/** Format: uuid */
|
|
@@ -1990,6 +2152,21 @@ interface components {
|
|
|
1990
2152
|
/** Format: date-time */
|
|
1991
2153
|
datetime?: string | null;
|
|
1992
2154
|
};
|
|
2155
|
+
UpdateVaccinationParams: {
|
|
2156
|
+
/** Format: uuid */
|
|
2157
|
+
id: string;
|
|
2158
|
+
name?: string | null;
|
|
2159
|
+
/** Format: date-time */
|
|
2160
|
+
datetime?: string | null;
|
|
2161
|
+
/** Format: int32 */
|
|
2162
|
+
doseNumber?: number | null;
|
|
2163
|
+
injectionSite?: string | null;
|
|
2164
|
+
hospital?: string | null;
|
|
2165
|
+
batchNumber?: string | null;
|
|
2166
|
+
notes?: string | null;
|
|
2167
|
+
/** Format: date-time */
|
|
2168
|
+
nextDoseDate?: string | null;
|
|
2169
|
+
};
|
|
1993
2170
|
Upload: {
|
|
1994
2171
|
/** Format: uuid */
|
|
1995
2172
|
id: string;
|
|
@@ -1999,23 +2176,23 @@ interface components {
|
|
|
1999
2176
|
/** Format: int64 */
|
|
2000
2177
|
size: number;
|
|
2001
2178
|
/** Format: int32 */
|
|
2002
|
-
|
|
2179
|
+
chunkSize: number;
|
|
2003
2180
|
status: components["schemas"]["UploadStatus"];
|
|
2004
2181
|
/** Format: date-time */
|
|
2005
|
-
|
|
2006
|
-
|
|
2182
|
+
mergedAt?: string | null;
|
|
2183
|
+
mimeType: components["schemas"]["MimeType"];
|
|
2007
2184
|
kind: components["schemas"]["MimeKind"];
|
|
2008
2185
|
metadata?: null | components["schemas"]["FileMetadata"];
|
|
2009
2186
|
/** Format: int32 */
|
|
2010
|
-
|
|
2187
|
+
thumbnailWidth?: number | null;
|
|
2011
2188
|
/** Format: int32 */
|
|
2012
|
-
|
|
2189
|
+
thumbnailHeight?: number | null;
|
|
2013
2190
|
/** Format: int32 */
|
|
2014
|
-
|
|
2191
|
+
thumbnailSize?: number | null;
|
|
2015
2192
|
/** Format: date-time */
|
|
2016
|
-
|
|
2193
|
+
createdAt: string;
|
|
2017
2194
|
/** Format: date-time */
|
|
2018
|
-
|
|
2195
|
+
updatedAt: string;
|
|
2019
2196
|
};
|
|
2020
2197
|
UploadDto: {
|
|
2021
2198
|
/** Format: uuid */
|
|
@@ -2095,6 +2272,27 @@ interface components {
|
|
|
2095
2272
|
UserFilterDto: {
|
|
2096
2273
|
account?: string | null;
|
|
2097
2274
|
};
|
|
2275
|
+
Vaccination: {
|
|
2276
|
+
/** Format: uuid */
|
|
2277
|
+
id: string;
|
|
2278
|
+
/** Format: uuid */
|
|
2279
|
+
baby_id: string;
|
|
2280
|
+
name: string;
|
|
2281
|
+
/** Format: date-time */
|
|
2282
|
+
datetime: string;
|
|
2283
|
+
/** Format: int32 */
|
|
2284
|
+
dose_number?: number | null;
|
|
2285
|
+
injection_site?: string | null;
|
|
2286
|
+
hospital?: string | null;
|
|
2287
|
+
batch_number?: string | null;
|
|
2288
|
+
notes?: string | null;
|
|
2289
|
+
/** Format: date-time */
|
|
2290
|
+
next_dose_date?: string | null;
|
|
2291
|
+
/** Format: date-time */
|
|
2292
|
+
created_at: string;
|
|
2293
|
+
/** Format: date-time */
|
|
2294
|
+
updated_at: string;
|
|
2295
|
+
};
|
|
2098
2296
|
VideoMetadata: {
|
|
2099
2297
|
/** Format: double */
|
|
2100
2298
|
duration?: number | null;
|
|
@@ -2110,6 +2308,13 @@ interface components {
|
|
|
2110
2308
|
bitrate?: number | null;
|
|
2111
2309
|
hasAudio?: boolean | null;
|
|
2112
2310
|
};
|
|
2311
|
+
WebSocketInfoDto: {
|
|
2312
|
+
/** Format: uuid */
|
|
2313
|
+
userId: string;
|
|
2314
|
+
connectionCount: number;
|
|
2315
|
+
maxConnections: number;
|
|
2316
|
+
totalConnections: number;
|
|
2317
|
+
};
|
|
2113
2318
|
};
|
|
2114
2319
|
responses: never;
|
|
2115
2320
|
parameters: never;
|
|
@@ -3596,6 +3801,120 @@ interface operations {
|
|
|
3596
3801
|
};
|
|
3597
3802
|
};
|
|
3598
3803
|
};
|
|
3804
|
+
createVaccination: {
|
|
3805
|
+
parameters: {
|
|
3806
|
+
query?: never;
|
|
3807
|
+
header?: never;
|
|
3808
|
+
path?: never;
|
|
3809
|
+
cookie?: never;
|
|
3810
|
+
};
|
|
3811
|
+
requestBody: {
|
|
3812
|
+
content: {
|
|
3813
|
+
"application/json": components["schemas"]["CreateVaccinationParams"];
|
|
3814
|
+
};
|
|
3815
|
+
};
|
|
3816
|
+
responses: {
|
|
3817
|
+
/** @description ok */
|
|
3818
|
+
200: {
|
|
3819
|
+
headers: {
|
|
3820
|
+
[name: string]: unknown;
|
|
3821
|
+
};
|
|
3822
|
+
content: {
|
|
3823
|
+
"application/json": components["schemas"]["ResponseJson_String"];
|
|
3824
|
+
};
|
|
3825
|
+
};
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
queryVaccinations: {
|
|
3829
|
+
parameters: {
|
|
3830
|
+
query?: never;
|
|
3831
|
+
header?: never;
|
|
3832
|
+
path?: never;
|
|
3833
|
+
cookie?: never;
|
|
3834
|
+
};
|
|
3835
|
+
requestBody: {
|
|
3836
|
+
content: {
|
|
3837
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterVaccinationParams_SortVaccinationParams"];
|
|
3838
|
+
};
|
|
3839
|
+
};
|
|
3840
|
+
responses: {
|
|
3841
|
+
/** @description ok */
|
|
3842
|
+
200: {
|
|
3843
|
+
headers: {
|
|
3844
|
+
[name: string]: unknown;
|
|
3845
|
+
};
|
|
3846
|
+
content: {
|
|
3847
|
+
"application/json": components["schemas"]["ResponseJson_PaginatedData_Vaccination"];
|
|
3848
|
+
};
|
|
3849
|
+
};
|
|
3850
|
+
};
|
|
3851
|
+
};
|
|
3852
|
+
deleteVaccination: {
|
|
3853
|
+
parameters: {
|
|
3854
|
+
query: {
|
|
3855
|
+
id: string;
|
|
3856
|
+
};
|
|
3857
|
+
header?: never;
|
|
3858
|
+
path?: never;
|
|
3859
|
+
cookie?: never;
|
|
3860
|
+
};
|
|
3861
|
+
requestBody?: never;
|
|
3862
|
+
responses: {
|
|
3863
|
+
/** @description ok */
|
|
3864
|
+
200: {
|
|
3865
|
+
headers: {
|
|
3866
|
+
[name: string]: unknown;
|
|
3867
|
+
};
|
|
3868
|
+
content: {
|
|
3869
|
+
"application/json": components["schemas"]["ResponseJson"];
|
|
3870
|
+
};
|
|
3871
|
+
};
|
|
3872
|
+
};
|
|
3873
|
+
};
|
|
3874
|
+
updateVaccination: {
|
|
3875
|
+
parameters: {
|
|
3876
|
+
query?: never;
|
|
3877
|
+
header?: never;
|
|
3878
|
+
path?: never;
|
|
3879
|
+
cookie?: never;
|
|
3880
|
+
};
|
|
3881
|
+
requestBody: {
|
|
3882
|
+
content: {
|
|
3883
|
+
"application/json": components["schemas"]["UpdateVaccinationParams"];
|
|
3884
|
+
};
|
|
3885
|
+
};
|
|
3886
|
+
responses: {
|
|
3887
|
+
/** @description ok */
|
|
3888
|
+
200: {
|
|
3889
|
+
headers: {
|
|
3890
|
+
[name: string]: unknown;
|
|
3891
|
+
};
|
|
3892
|
+
content: {
|
|
3893
|
+
"application/json": components["schemas"]["ResponseJson_Null"];
|
|
3894
|
+
};
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
};
|
|
3898
|
+
getWebSocketInfo: {
|
|
3899
|
+
parameters: {
|
|
3900
|
+
query?: never;
|
|
3901
|
+
header?: never;
|
|
3902
|
+
path?: never;
|
|
3903
|
+
cookie?: never;
|
|
3904
|
+
};
|
|
3905
|
+
requestBody?: never;
|
|
3906
|
+
responses: {
|
|
3907
|
+
/** @description WebSocket connection info */
|
|
3908
|
+
200: {
|
|
3909
|
+
headers: {
|
|
3910
|
+
[name: string]: unknown;
|
|
3911
|
+
};
|
|
3912
|
+
content: {
|
|
3913
|
+
"application/json": components["schemas"]["ResponseJson_WebSocketInfoDto"];
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3599
3918
|
}
|
|
3600
3919
|
//#endregion
|
|
3601
3920
|
//#region index.d.ts
|