@hapaul/api 0.1.28 → 0.1.31
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 +10 -3
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -904,7 +904,7 @@ interface components {
|
|
|
904
904
|
};
|
|
905
905
|
sorts?: components["schemas"]["QuerySortDto_String"][] | null;
|
|
906
906
|
};
|
|
907
|
-
|
|
907
|
+
PageableQueryDto_FilterFeedingParams_SortFeedingParams: {
|
|
908
908
|
/** Format: int64 */
|
|
909
909
|
page?: number | null;
|
|
910
910
|
/** Format: int64 */
|
|
@@ -917,7 +917,7 @@ interface components {
|
|
|
917
917
|
/** Format: date-time */
|
|
918
918
|
to?: string | null;
|
|
919
919
|
};
|
|
920
|
-
sorts?: components["schemas"]["
|
|
920
|
+
sorts?: components["schemas"]["QuerySortDto_SortFeedingParams"][] | null;
|
|
921
921
|
};
|
|
922
922
|
PageableQueryDto_FilterHealthRecordsParams: {
|
|
923
923
|
/** Format: int64 */
|
|
@@ -1015,6 +1015,11 @@ interface components {
|
|
|
1015
1015
|
field: "name";
|
|
1016
1016
|
order: components["schemas"]["QueryOrder"];
|
|
1017
1017
|
};
|
|
1018
|
+
QuerySortDto_SortFeedingParams: {
|
|
1019
|
+
/** @enum {string} */
|
|
1020
|
+
field: "datetime";
|
|
1021
|
+
order: components["schemas"]["QueryOrder"];
|
|
1022
|
+
};
|
|
1018
1023
|
QuerySortDto_String: {
|
|
1019
1024
|
field: string;
|
|
1020
1025
|
order: components["schemas"]["QueryOrder"];
|
|
@@ -1243,6 +1248,8 @@ interface components {
|
|
|
1243
1248
|
signature: string;
|
|
1244
1249
|
};
|
|
1245
1250
|
/** @enum {string} */
|
|
1251
|
+
SortFeedingParams: "datetime";
|
|
1252
|
+
/** @enum {string} */
|
|
1246
1253
|
ThirdParty: "wechat" | "github";
|
|
1247
1254
|
UpdateBabyParams: {
|
|
1248
1255
|
/** Format: uuid */
|
|
@@ -2128,7 +2135,7 @@ interface operations {
|
|
|
2128
2135
|
};
|
|
2129
2136
|
requestBody: {
|
|
2130
2137
|
content: {
|
|
2131
|
-
"application/json": components["schemas"]["
|
|
2138
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterFeedingParams_SortFeedingParams"];
|
|
2132
2139
|
};
|
|
2133
2140
|
};
|
|
2134
2141
|
responses: {
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,8 @@ var Client = class {
|
|
|
31
31
|
const body = requestConfig.body;
|
|
32
32
|
if (!contentType) headers.set("Content-Type", "application/json");
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
let serializedBody;
|
|
35
|
+
if (body) serializedBody = await this.bodySerializer(body, headers);
|
|
35
36
|
let response = await this.fetch(url, {
|
|
36
37
|
...requestConfig,
|
|
37
38
|
body: serializedBody,
|