@hapaul/api 0.1.57 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +388 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -347,6 +347,23 @@ interface paths {
347
347
  patch?: never;
348
348
  trace?: never;
349
349
  };
350
+ "/uploads/getThumbnail": {
351
+ parameters: {
352
+ query?: never;
353
+ header?: never;
354
+ path?: never;
355
+ cookie?: never;
356
+ };
357
+ /** Get thumbnail */
358
+ get: operations["getThumbnail"];
359
+ put?: never;
360
+ post?: never;
361
+ delete?: never;
362
+ options?: never;
363
+ head?: never;
364
+ patch?: never;
365
+ trace?: never;
366
+ };
350
367
  "/uploads/createUpload": {
351
368
  parameters: {
352
369
  query?: never;
@@ -1031,6 +1048,91 @@ interface paths {
1031
1048
  patch: operations["updateUrinationDefecation"];
1032
1049
  trace?: never;
1033
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
+ };
1034
1136
  }
1035
1137
  interface components {
1036
1138
  schemas: {
@@ -1186,6 +1288,21 @@ interface components {
1186
1288
  account: string;
1187
1289
  password: string;
1188
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
+ };
1189
1306
  DailyLog: {
1190
1307
  records: components["schemas"]["DailyLogRecord"][];
1191
1308
  };
@@ -1300,6 +1417,14 @@ interface components {
1300
1417
  /** Format: date-time */
1301
1418
  to?: string | null;
1302
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
+ };
1303
1428
  /** @enum {string} */
1304
1429
  Gender: "unknown" | "male" | "female";
1305
1430
  GenericMetadata: unknown;
@@ -1484,6 +1609,21 @@ interface components {
1484
1609
  };
1485
1610
  sorts?: components["schemas"]["QuerySortDto_SortUrinationDefecationParams"][] | null;
1486
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
+ };
1487
1627
  PageableQueryDto_PermissionFilters_PermissionOrders: {
1488
1628
  /** Format: int64 */
1489
1629
  page?: number | null;
@@ -1600,6 +1740,11 @@ interface components {
1600
1740
  field: "datetime";
1601
1741
  order: components["schemas"]["QueryOrder"];
1602
1742
  };
1743
+ QuerySortDto_SortVaccinationParams: {
1744
+ /** @enum {string} */
1745
+ field: "datetime";
1746
+ order: components["schemas"]["QueryOrder"];
1747
+ };
1603
1748
  QuerySortDto_String: {
1604
1749
  field: string;
1605
1750
  order: components["schemas"]["QueryOrder"];
@@ -1795,6 +1940,31 @@ interface components {
1795
1940
  /** Format: int64 */
1796
1941
  total: number;
1797
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
+ };
1798
1968
  ResponseJson_SessionInfoDto: {
1799
1969
  account: string;
1800
1970
  nickname?: string | null;
@@ -1814,6 +1984,12 @@ interface components {
1814
1984
  missingChunks: number[];
1815
1985
  /** Format: date-time */
1816
1986
  mergedAt?: string | null;
1987
+ /** Format: int32 */
1988
+ thumbnailWidth?: number | null;
1989
+ /** Format: int32 */
1990
+ thumbnailHeight?: number | null;
1991
+ /** Format: int32 */
1992
+ thumbnailSize?: number | null;
1817
1993
  /** Format: date-time */
1818
1994
  createdAt: string;
1819
1995
  /** Format: date-time */
@@ -1848,6 +2024,13 @@ interface components {
1848
2024
  /** Format: date-time */
1849
2025
  createdAt: string;
1850
2026
  }[];
2027
+ ResponseJson_WebSocketInfoDto: {
2028
+ /** Format: uuid */
2029
+ userId: string;
2030
+ connectionCount: number;
2031
+ maxConnections: number;
2032
+ totalConnections: number;
2033
+ };
1851
2034
  /** Format: int64 */
1852
2035
  ResponseJson_u64: number;
1853
2036
  RoleDto: {
@@ -1898,6 +2081,8 @@ interface components {
1898
2081
  /** @enum {string} */
1899
2082
  SortUrinationDefecationParams: "datetime";
1900
2083
  /** @enum {string} */
2084
+ SortVaccinationParams: "datetime";
2085
+ /** @enum {string} */
1901
2086
  ThirdParty: "wechat" | "github";
1902
2087
  UnfollowBabyParams: {
1903
2088
  /** Format: uuid */
@@ -1967,6 +2152,21 @@ interface components {
1967
2152
  /** Format: date-time */
1968
2153
  datetime?: string | null;
1969
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
+ };
1970
2170
  Upload: {
1971
2171
  /** Format: uuid */
1972
2172
  id: string;
@@ -1976,17 +2176,23 @@ interface components {
1976
2176
  /** Format: int64 */
1977
2177
  size: number;
1978
2178
  /** Format: int32 */
1979
- chunk_size: number;
2179
+ chunkSize: number;
1980
2180
  status: components["schemas"]["UploadStatus"];
1981
2181
  /** Format: date-time */
1982
- merged_at?: string | null;
1983
- mime_type: components["schemas"]["MimeType"];
2182
+ mergedAt?: string | null;
2183
+ mimeType: components["schemas"]["MimeType"];
1984
2184
  kind: components["schemas"]["MimeKind"];
1985
2185
  metadata?: null | components["schemas"]["FileMetadata"];
2186
+ /** Format: int32 */
2187
+ thumbnailWidth?: number | null;
2188
+ /** Format: int32 */
2189
+ thumbnailHeight?: number | null;
2190
+ /** Format: int32 */
2191
+ thumbnailSize?: number | null;
1986
2192
  /** Format: date-time */
1987
- created_at: string;
2193
+ createdAt: string;
1988
2194
  /** Format: date-time */
1989
- updated_at: string;
2195
+ updatedAt: string;
1990
2196
  };
1991
2197
  UploadDto: {
1992
2198
  /** Format: uuid */
@@ -2002,6 +2208,12 @@ interface components {
2002
2208
  missingChunks: number[];
2003
2209
  /** Format: date-time */
2004
2210
  mergedAt?: string | null;
2211
+ /** Format: int32 */
2212
+ thumbnailWidth?: number | null;
2213
+ /** Format: int32 */
2214
+ thumbnailHeight?: number | null;
2215
+ /** Format: int32 */
2216
+ thumbnailSize?: number | null;
2005
2217
  /** Format: date-time */
2006
2218
  createdAt: string;
2007
2219
  /** Format: date-time */
@@ -2060,6 +2272,27 @@ interface components {
2060
2272
  UserFilterDto: {
2061
2273
  account?: string | null;
2062
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
+ };
2063
2296
  VideoMetadata: {
2064
2297
  /** Format: double */
2065
2298
  duration?: number | null;
@@ -2075,6 +2308,13 @@ interface components {
2075
2308
  bitrate?: number | null;
2076
2309
  hasAudio?: boolean | null;
2077
2310
  };
2311
+ WebSocketInfoDto: {
2312
+ /** Format: uuid */
2313
+ userId: string;
2314
+ connectionCount: number;
2315
+ maxConnections: number;
2316
+ totalConnections: number;
2317
+ };
2078
2318
  };
2079
2319
  responses: never;
2080
2320
  parameters: never;
@@ -2570,6 +2810,35 @@ interface operations {
2570
2810
  };
2571
2811
  };
2572
2812
  };
2813
+ getThumbnail: {
2814
+ parameters: {
2815
+ query: {
2816
+ id: string;
2817
+ };
2818
+ header?: never;
2819
+ path?: never;
2820
+ cookie?: never;
2821
+ };
2822
+ requestBody?: never;
2823
+ responses: {
2824
+ /** @description ok */
2825
+ 200: {
2826
+ headers: {
2827
+ [name: string]: unknown;
2828
+ };
2829
+ content: {
2830
+ "image/*": number[];
2831
+ };
2832
+ };
2833
+ /** @description not found */
2834
+ 404: {
2835
+ headers: {
2836
+ [name: string]: unknown;
2837
+ };
2838
+ content?: never;
2839
+ };
2840
+ };
2841
+ };
2573
2842
  createUpload: {
2574
2843
  parameters: {
2575
2844
  query?: never;
@@ -3532,6 +3801,120 @@ interface operations {
3532
3801
  };
3533
3802
  };
3534
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
+ };
3535
3918
  }
3536
3919
  //#endregion
3537
3920
  //#region index.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [