@hapaul/api 0.1.34 → 0.1.36
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 +208 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -521,6 +521,74 @@ interface paths {
|
|
|
521
521
|
patch: operations["updateBaby"];
|
|
522
522
|
trace?: never;
|
|
523
523
|
};
|
|
524
|
+
"/babyInvitation/createInvitation": {
|
|
525
|
+
parameters: {
|
|
526
|
+
query?: never;
|
|
527
|
+
header?: never;
|
|
528
|
+
path?: never;
|
|
529
|
+
cookie?: never;
|
|
530
|
+
};
|
|
531
|
+
get?: never;
|
|
532
|
+
put?: never;
|
|
533
|
+
/** Create invitation */
|
|
534
|
+
post: operations["createInvitation"];
|
|
535
|
+
delete?: never;
|
|
536
|
+
options?: never;
|
|
537
|
+
head?: never;
|
|
538
|
+
patch?: never;
|
|
539
|
+
trace?: never;
|
|
540
|
+
};
|
|
541
|
+
"/babyInvitation/acceptInvitation": {
|
|
542
|
+
parameters: {
|
|
543
|
+
query?: never;
|
|
544
|
+
header?: never;
|
|
545
|
+
path?: never;
|
|
546
|
+
cookie?: never;
|
|
547
|
+
};
|
|
548
|
+
get?: never;
|
|
549
|
+
put?: never;
|
|
550
|
+
/** Accept invitation */
|
|
551
|
+
post: operations["acceptInvitation"];
|
|
552
|
+
delete?: never;
|
|
553
|
+
options?: never;
|
|
554
|
+
head?: never;
|
|
555
|
+
patch?: never;
|
|
556
|
+
trace?: never;
|
|
557
|
+
};
|
|
558
|
+
"/babyInvitation/queryInvitationByCode": {
|
|
559
|
+
parameters: {
|
|
560
|
+
query?: never;
|
|
561
|
+
header?: never;
|
|
562
|
+
path?: never;
|
|
563
|
+
cookie?: never;
|
|
564
|
+
};
|
|
565
|
+
/** Query invitation by code */
|
|
566
|
+
get: operations["queryInvitationByCode"];
|
|
567
|
+
put?: never;
|
|
568
|
+
post?: never;
|
|
569
|
+
delete?: never;
|
|
570
|
+
options?: never;
|
|
571
|
+
head?: never;
|
|
572
|
+
patch?: never;
|
|
573
|
+
trace?: never;
|
|
574
|
+
};
|
|
575
|
+
"/babyInvitation/cancelInvitation": {
|
|
576
|
+
parameters: {
|
|
577
|
+
query?: never;
|
|
578
|
+
header?: never;
|
|
579
|
+
path?: never;
|
|
580
|
+
cookie?: never;
|
|
581
|
+
};
|
|
582
|
+
get?: never;
|
|
583
|
+
put?: never;
|
|
584
|
+
post?: never;
|
|
585
|
+
/** Cancel invitation */
|
|
586
|
+
delete: operations["cancelInvitation"];
|
|
587
|
+
options?: never;
|
|
588
|
+
head?: never;
|
|
589
|
+
patch?: never;
|
|
590
|
+
trace?: never;
|
|
591
|
+
};
|
|
524
592
|
"/feeding/createFeeding": {
|
|
525
593
|
parameters: {
|
|
526
594
|
query?: never;
|
|
@@ -589,7 +657,7 @@ interface paths {
|
|
|
589
657
|
patch: operations["updateFeeding"];
|
|
590
658
|
trace?: never;
|
|
591
659
|
};
|
|
592
|
-
"/
|
|
660
|
+
"/healthRecord/createHealthRecord": {
|
|
593
661
|
parameters: {
|
|
594
662
|
query?: never;
|
|
595
663
|
header?: never;
|
|
@@ -606,7 +674,7 @@ interface paths {
|
|
|
606
674
|
patch?: never;
|
|
607
675
|
trace?: never;
|
|
608
676
|
};
|
|
609
|
-
"/
|
|
677
|
+
"/healthRecord/queryHealthRecords": {
|
|
610
678
|
parameters: {
|
|
611
679
|
query?: never;
|
|
612
680
|
header?: never;
|
|
@@ -623,7 +691,7 @@ interface paths {
|
|
|
623
691
|
patch?: never;
|
|
624
692
|
trace?: never;
|
|
625
693
|
};
|
|
626
|
-
"/
|
|
694
|
+
"/healthRecord/deleteHealthRecords": {
|
|
627
695
|
parameters: {
|
|
628
696
|
query?: never;
|
|
629
697
|
header?: never;
|
|
@@ -640,7 +708,7 @@ interface paths {
|
|
|
640
708
|
patch?: never;
|
|
641
709
|
trace?: never;
|
|
642
710
|
};
|
|
643
|
-
"/
|
|
711
|
+
"/healthRecord/updateHealthRecord": {
|
|
644
712
|
parameters: {
|
|
645
713
|
query?: never;
|
|
646
714
|
header?: never;
|
|
@@ -657,7 +725,7 @@ interface paths {
|
|
|
657
725
|
patch: operations["updateHealthRecord"];
|
|
658
726
|
trace?: never;
|
|
659
727
|
};
|
|
660
|
-
"/
|
|
728
|
+
"/urinationDefecation/createUrinationDefecation": {
|
|
661
729
|
parameters: {
|
|
662
730
|
query?: never;
|
|
663
731
|
header?: never;
|
|
@@ -674,7 +742,7 @@ interface paths {
|
|
|
674
742
|
patch?: never;
|
|
675
743
|
trace?: never;
|
|
676
744
|
};
|
|
677
|
-
"/
|
|
745
|
+
"/urinationDefecation/queryUrinationDefecations": {
|
|
678
746
|
parameters: {
|
|
679
747
|
query?: never;
|
|
680
748
|
header?: never;
|
|
@@ -691,7 +759,7 @@ interface paths {
|
|
|
691
759
|
patch?: never;
|
|
692
760
|
trace?: never;
|
|
693
761
|
};
|
|
694
|
-
"/
|
|
762
|
+
"/urinationDefecation/deleteUrinationDefecations": {
|
|
695
763
|
parameters: {
|
|
696
764
|
query?: never;
|
|
697
765
|
header?: never;
|
|
@@ -708,7 +776,7 @@ interface paths {
|
|
|
708
776
|
patch?: never;
|
|
709
777
|
trace?: never;
|
|
710
778
|
};
|
|
711
|
-
"/
|
|
779
|
+
"/urinationDefecation/updateUrinationDefecation": {
|
|
712
780
|
parameters: {
|
|
713
781
|
query?: never;
|
|
714
782
|
header?: never;
|
|
@@ -728,6 +796,9 @@ interface paths {
|
|
|
728
796
|
}
|
|
729
797
|
interface components {
|
|
730
798
|
schemas: {
|
|
799
|
+
AcceptInvitationDto: {
|
|
800
|
+
invitationCode: string;
|
|
801
|
+
};
|
|
731
802
|
Baby: {
|
|
732
803
|
/** Format: uuid */
|
|
733
804
|
id: string;
|
|
@@ -770,6 +841,11 @@ interface components {
|
|
|
770
841
|
/** Format: date-time */
|
|
771
842
|
datetime: string;
|
|
772
843
|
};
|
|
844
|
+
CreateInvitationDto: {
|
|
845
|
+
/** Format: uuid */
|
|
846
|
+
babyId: string;
|
|
847
|
+
relationCode: components["schemas"]["BabyRelationCode"];
|
|
848
|
+
};
|
|
773
849
|
CreatePermissionParams: {
|
|
774
850
|
code: string;
|
|
775
851
|
kind: string;
|
|
@@ -869,6 +945,12 @@ interface components {
|
|
|
869
945
|
};
|
|
870
946
|
/** @enum {string} */
|
|
871
947
|
HealthRecordKind: "height" | "weight";
|
|
948
|
+
InvitationPreview: {
|
|
949
|
+
invitationCode: string;
|
|
950
|
+
babyName: string;
|
|
951
|
+
inviterName: string;
|
|
952
|
+
relationName: string;
|
|
953
|
+
};
|
|
872
954
|
LoginMethod: {
|
|
873
955
|
account: string;
|
|
874
956
|
password: string;
|
|
@@ -919,7 +1001,7 @@ interface components {
|
|
|
919
1001
|
};
|
|
920
1002
|
sorts?: components["schemas"]["QuerySortDto_SortFeedingParams"][] | null;
|
|
921
1003
|
};
|
|
922
|
-
|
|
1004
|
+
PageableQueryDto_FilterHealthRecordsParams_SortHealthRecordsParams: {
|
|
923
1005
|
/** Format: int64 */
|
|
924
1006
|
page?: number | null;
|
|
925
1007
|
/** Format: int64 */
|
|
@@ -933,9 +1015,9 @@ interface components {
|
|
|
933
1015
|
/** Format: date-time */
|
|
934
1016
|
to?: string | null;
|
|
935
1017
|
};
|
|
936
|
-
sorts?: components["schemas"]["
|
|
1018
|
+
sorts?: components["schemas"]["QuerySortDto_SortHealthRecordsParams"][] | null;
|
|
937
1019
|
};
|
|
938
|
-
|
|
1020
|
+
PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams: {
|
|
939
1021
|
/** Format: int64 */
|
|
940
1022
|
page?: number | null;
|
|
941
1023
|
/** Format: int64 */
|
|
@@ -948,7 +1030,7 @@ interface components {
|
|
|
948
1030
|
/** Format: date-time */
|
|
949
1031
|
to?: string | null;
|
|
950
1032
|
};
|
|
951
|
-
sorts?: components["schemas"]["
|
|
1033
|
+
sorts?: components["schemas"]["QuerySortDto_SortUrinationDefecationParams"][] | null;
|
|
952
1034
|
};
|
|
953
1035
|
PageableQueryDto_PermissionFilters_PermissionOrders: {
|
|
954
1036
|
/** Format: int64 */
|
|
@@ -1020,6 +1102,16 @@ interface components {
|
|
|
1020
1102
|
field: "datetime";
|
|
1021
1103
|
order: components["schemas"]["QueryOrder"];
|
|
1022
1104
|
};
|
|
1105
|
+
QuerySortDto_SortHealthRecordsParams: {
|
|
1106
|
+
/** @enum {string} */
|
|
1107
|
+
field: "datetime";
|
|
1108
|
+
order: components["schemas"]["QueryOrder"];
|
|
1109
|
+
};
|
|
1110
|
+
QuerySortDto_SortUrinationDefecationParams: {
|
|
1111
|
+
/** @enum {string} */
|
|
1112
|
+
field: "datetime";
|
|
1113
|
+
order: components["schemas"]["QueryOrder"];
|
|
1114
|
+
};
|
|
1023
1115
|
QuerySortDto_String: {
|
|
1024
1116
|
field: string;
|
|
1025
1117
|
order: components["schemas"]["QueryOrder"];
|
|
@@ -1031,6 +1123,12 @@ interface components {
|
|
|
1031
1123
|
platform?: null | components["schemas"]["LoginPlatform"];
|
|
1032
1124
|
};
|
|
1033
1125
|
ResponseJson: components["schemas"]["Null"];
|
|
1126
|
+
ResponseJson_InvitationPreview: {
|
|
1127
|
+
invitationCode: string;
|
|
1128
|
+
babyName: string;
|
|
1129
|
+
inviterName: string;
|
|
1130
|
+
relationName: string;
|
|
1131
|
+
};
|
|
1034
1132
|
ResponseJson_LoginResponseDto: {
|
|
1035
1133
|
/** Format: uuid */
|
|
1036
1134
|
userId: string;
|
|
@@ -1250,6 +1348,10 @@ interface components {
|
|
|
1250
1348
|
/** @enum {string} */
|
|
1251
1349
|
SortFeedingParams: "datetime";
|
|
1252
1350
|
/** @enum {string} */
|
|
1351
|
+
SortHealthRecordsParams: "datetime";
|
|
1352
|
+
/** @enum {string} */
|
|
1353
|
+
SortUrinationDefecationParams: "datetime";
|
|
1354
|
+
/** @enum {string} */
|
|
1253
1355
|
ThirdParty: "wechat" | "github";
|
|
1254
1356
|
UpdateBabyParams: {
|
|
1255
1357
|
/** Format: uuid */
|
|
@@ -2102,6 +2204,98 @@ interface operations {
|
|
|
2102
2204
|
};
|
|
2103
2205
|
};
|
|
2104
2206
|
};
|
|
2207
|
+
createInvitation: {
|
|
2208
|
+
parameters: {
|
|
2209
|
+
query?: never;
|
|
2210
|
+
header?: never;
|
|
2211
|
+
path?: never;
|
|
2212
|
+
cookie?: never;
|
|
2213
|
+
};
|
|
2214
|
+
requestBody: {
|
|
2215
|
+
content: {
|
|
2216
|
+
"application/json": components["schemas"]["CreateInvitationDto"];
|
|
2217
|
+
};
|
|
2218
|
+
};
|
|
2219
|
+
responses: {
|
|
2220
|
+
/** @description ok */
|
|
2221
|
+
200: {
|
|
2222
|
+
headers: {
|
|
2223
|
+
[name: string]: unknown;
|
|
2224
|
+
};
|
|
2225
|
+
content: {
|
|
2226
|
+
"application/json": components["schemas"]["ResponseJson_InvitationPreview"];
|
|
2227
|
+
};
|
|
2228
|
+
};
|
|
2229
|
+
};
|
|
2230
|
+
};
|
|
2231
|
+
acceptInvitation: {
|
|
2232
|
+
parameters: {
|
|
2233
|
+
query?: never;
|
|
2234
|
+
header?: never;
|
|
2235
|
+
path?: never;
|
|
2236
|
+
cookie?: never;
|
|
2237
|
+
};
|
|
2238
|
+
requestBody: {
|
|
2239
|
+
content: {
|
|
2240
|
+
"application/json": components["schemas"]["AcceptInvitationDto"];
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2243
|
+
responses: {
|
|
2244
|
+
/** @description ok */
|
|
2245
|
+
200: {
|
|
2246
|
+
headers: {
|
|
2247
|
+
[name: string]: unknown;
|
|
2248
|
+
};
|
|
2249
|
+
content: {
|
|
2250
|
+
"application/json": components["schemas"]["ResponseJson_String"];
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
queryInvitationByCode: {
|
|
2256
|
+
parameters: {
|
|
2257
|
+
query: {
|
|
2258
|
+
code: string;
|
|
2259
|
+
};
|
|
2260
|
+
header?: never;
|
|
2261
|
+
path?: never;
|
|
2262
|
+
cookie?: never;
|
|
2263
|
+
};
|
|
2264
|
+
requestBody?: never;
|
|
2265
|
+
responses: {
|
|
2266
|
+
/** @description ok */
|
|
2267
|
+
200: {
|
|
2268
|
+
headers: {
|
|
2269
|
+
[name: string]: unknown;
|
|
2270
|
+
};
|
|
2271
|
+
content: {
|
|
2272
|
+
"application/json": components["schemas"]["ResponseJson_InvitationPreview"];
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
cancelInvitation: {
|
|
2278
|
+
parameters: {
|
|
2279
|
+
query: {
|
|
2280
|
+
invitationId: string;
|
|
2281
|
+
};
|
|
2282
|
+
header?: never;
|
|
2283
|
+
path?: never;
|
|
2284
|
+
cookie?: never;
|
|
2285
|
+
};
|
|
2286
|
+
requestBody?: never;
|
|
2287
|
+
responses: {
|
|
2288
|
+
/** @description ok */
|
|
2289
|
+
200: {
|
|
2290
|
+
headers: {
|
|
2291
|
+
[name: string]: unknown;
|
|
2292
|
+
};
|
|
2293
|
+
content: {
|
|
2294
|
+
"application/json": components["schemas"]["ResponseJson"];
|
|
2295
|
+
};
|
|
2296
|
+
};
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2105
2299
|
createFeeding: {
|
|
2106
2300
|
parameters: {
|
|
2107
2301
|
query?: never;
|
|
@@ -2229,7 +2423,7 @@ interface operations {
|
|
|
2229
2423
|
};
|
|
2230
2424
|
requestBody: {
|
|
2231
2425
|
content: {
|
|
2232
|
-
"application/json": components["schemas"]["
|
|
2426
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterHealthRecordsParams_SortHealthRecordsParams"];
|
|
2233
2427
|
};
|
|
2234
2428
|
};
|
|
2235
2429
|
responses: {
|
|
@@ -2323,7 +2517,7 @@ interface operations {
|
|
|
2323
2517
|
};
|
|
2324
2518
|
requestBody: {
|
|
2325
2519
|
content: {
|
|
2326
|
-
"application/json": components["schemas"]["
|
|
2520
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams"];
|
|
2327
2521
|
};
|
|
2328
2522
|
};
|
|
2329
2523
|
responses: {
|