@hapaul/api 0.1.34 → 0.1.35
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 +248 -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;
|
|
@@ -742,6 +813,27 @@ interface components {
|
|
|
742
813
|
/** Format: date-time */
|
|
743
814
|
updatedAt: string;
|
|
744
815
|
};
|
|
816
|
+
BabyInvitation: {
|
|
817
|
+
/** Format: uuid */
|
|
818
|
+
id: string;
|
|
819
|
+
/** Format: uuid */
|
|
820
|
+
babyId: string;
|
|
821
|
+
/** Format: uuid */
|
|
822
|
+
inviterId: string;
|
|
823
|
+
/** Format: uuid */
|
|
824
|
+
inviteeId?: string | null;
|
|
825
|
+
invitationCode: string;
|
|
826
|
+
relationCode: components["schemas"]["BabyRelationCode"];
|
|
827
|
+
status: components["schemas"]["BabyInvitationStatus"];
|
|
828
|
+
/** Format: date-time */
|
|
829
|
+
expiresAt: string;
|
|
830
|
+
/** Format: date-time */
|
|
831
|
+
acceptedAt?: string | null;
|
|
832
|
+
/** Format: date-time */
|
|
833
|
+
createdAt: string;
|
|
834
|
+
};
|
|
835
|
+
/** @enum {string} */
|
|
836
|
+
BabyInvitationStatus: "pending" | "accepted";
|
|
745
837
|
BabyRelationCode: "father" | "mother" | "grandFather" | "grandMother" | "maternalGrandFather" | "maternalGrandMother" | {
|
|
746
838
|
custom: string;
|
|
747
839
|
};
|
|
@@ -770,6 +862,11 @@ interface components {
|
|
|
770
862
|
/** Format: date-time */
|
|
771
863
|
datetime: string;
|
|
772
864
|
};
|
|
865
|
+
CreateInvitationDto: {
|
|
866
|
+
/** Format: uuid */
|
|
867
|
+
babyId: string;
|
|
868
|
+
relationCode: components["schemas"]["BabyRelationCode"];
|
|
869
|
+
};
|
|
773
870
|
CreatePermissionParams: {
|
|
774
871
|
code: string;
|
|
775
872
|
kind: string;
|
|
@@ -869,6 +966,12 @@ interface components {
|
|
|
869
966
|
};
|
|
870
967
|
/** @enum {string} */
|
|
871
968
|
HealthRecordKind: "height" | "weight";
|
|
969
|
+
InvitationPreview: {
|
|
970
|
+
invitationCode: string;
|
|
971
|
+
babyName: string;
|
|
972
|
+
inviterName: string;
|
|
973
|
+
relationName: string;
|
|
974
|
+
};
|
|
872
975
|
LoginMethod: {
|
|
873
976
|
account: string;
|
|
874
977
|
password: string;
|
|
@@ -919,7 +1022,7 @@ interface components {
|
|
|
919
1022
|
};
|
|
920
1023
|
sorts?: components["schemas"]["QuerySortDto_SortFeedingParams"][] | null;
|
|
921
1024
|
};
|
|
922
|
-
|
|
1025
|
+
PageableQueryDto_FilterHealthRecordsParams_SortHealthRecordsParams: {
|
|
923
1026
|
/** Format: int64 */
|
|
924
1027
|
page?: number | null;
|
|
925
1028
|
/** Format: int64 */
|
|
@@ -933,9 +1036,9 @@ interface components {
|
|
|
933
1036
|
/** Format: date-time */
|
|
934
1037
|
to?: string | null;
|
|
935
1038
|
};
|
|
936
|
-
sorts?: components["schemas"]["
|
|
1039
|
+
sorts?: components["schemas"]["QuerySortDto_SortHealthRecordsParams"][] | null;
|
|
937
1040
|
};
|
|
938
|
-
|
|
1041
|
+
PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams: {
|
|
939
1042
|
/** Format: int64 */
|
|
940
1043
|
page?: number | null;
|
|
941
1044
|
/** Format: int64 */
|
|
@@ -948,7 +1051,7 @@ interface components {
|
|
|
948
1051
|
/** Format: date-time */
|
|
949
1052
|
to?: string | null;
|
|
950
1053
|
};
|
|
951
|
-
sorts?: components["schemas"]["
|
|
1054
|
+
sorts?: components["schemas"]["QuerySortDto_SortUrinationDefecationParams"][] | null;
|
|
952
1055
|
};
|
|
953
1056
|
PageableQueryDto_PermissionFilters_PermissionOrders: {
|
|
954
1057
|
/** Format: int64 */
|
|
@@ -1020,6 +1123,16 @@ interface components {
|
|
|
1020
1123
|
field: "datetime";
|
|
1021
1124
|
order: components["schemas"]["QueryOrder"];
|
|
1022
1125
|
};
|
|
1126
|
+
QuerySortDto_SortHealthRecordsParams: {
|
|
1127
|
+
/** @enum {string} */
|
|
1128
|
+
field: "datetime";
|
|
1129
|
+
order: components["schemas"]["QueryOrder"];
|
|
1130
|
+
};
|
|
1131
|
+
QuerySortDto_SortUrinationDefecationParams: {
|
|
1132
|
+
/** @enum {string} */
|
|
1133
|
+
field: "datetime";
|
|
1134
|
+
order: components["schemas"]["QueryOrder"];
|
|
1135
|
+
};
|
|
1023
1136
|
QuerySortDto_String: {
|
|
1024
1137
|
field: string;
|
|
1025
1138
|
order: components["schemas"]["QueryOrder"];
|
|
@@ -1031,6 +1144,31 @@ interface components {
|
|
|
1031
1144
|
platform?: null | components["schemas"]["LoginPlatform"];
|
|
1032
1145
|
};
|
|
1033
1146
|
ResponseJson: components["schemas"]["Null"];
|
|
1147
|
+
ResponseJson_BabyInvitation: {
|
|
1148
|
+
/** Format: uuid */
|
|
1149
|
+
id: string;
|
|
1150
|
+
/** Format: uuid */
|
|
1151
|
+
babyId: string;
|
|
1152
|
+
/** Format: uuid */
|
|
1153
|
+
inviterId: string;
|
|
1154
|
+
/** Format: uuid */
|
|
1155
|
+
inviteeId?: string | null;
|
|
1156
|
+
invitationCode: string;
|
|
1157
|
+
relationCode: components["schemas"]["BabyRelationCode"];
|
|
1158
|
+
status: components["schemas"]["BabyInvitationStatus"];
|
|
1159
|
+
/** Format: date-time */
|
|
1160
|
+
expiresAt: string;
|
|
1161
|
+
/** Format: date-time */
|
|
1162
|
+
acceptedAt?: string | null;
|
|
1163
|
+
/** Format: date-time */
|
|
1164
|
+
createdAt: string;
|
|
1165
|
+
};
|
|
1166
|
+
ResponseJson_InvitationPreview: {
|
|
1167
|
+
invitationCode: string;
|
|
1168
|
+
babyName: string;
|
|
1169
|
+
inviterName: string;
|
|
1170
|
+
relationName: string;
|
|
1171
|
+
};
|
|
1034
1172
|
ResponseJson_LoginResponseDto: {
|
|
1035
1173
|
/** Format: uuid */
|
|
1036
1174
|
userId: string;
|
|
@@ -1250,6 +1388,10 @@ interface components {
|
|
|
1250
1388
|
/** @enum {string} */
|
|
1251
1389
|
SortFeedingParams: "datetime";
|
|
1252
1390
|
/** @enum {string} */
|
|
1391
|
+
SortHealthRecordsParams: "datetime";
|
|
1392
|
+
/** @enum {string} */
|
|
1393
|
+
SortUrinationDefecationParams: "datetime";
|
|
1394
|
+
/** @enum {string} */
|
|
1253
1395
|
ThirdParty: "wechat" | "github";
|
|
1254
1396
|
UpdateBabyParams: {
|
|
1255
1397
|
/** Format: uuid */
|
|
@@ -2102,6 +2244,98 @@ interface operations {
|
|
|
2102
2244
|
};
|
|
2103
2245
|
};
|
|
2104
2246
|
};
|
|
2247
|
+
createInvitation: {
|
|
2248
|
+
parameters: {
|
|
2249
|
+
query?: never;
|
|
2250
|
+
header?: never;
|
|
2251
|
+
path?: never;
|
|
2252
|
+
cookie?: never;
|
|
2253
|
+
};
|
|
2254
|
+
requestBody: {
|
|
2255
|
+
content: {
|
|
2256
|
+
"application/json": components["schemas"]["CreateInvitationDto"];
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
responses: {
|
|
2260
|
+
/** @description ok */
|
|
2261
|
+
200: {
|
|
2262
|
+
headers: {
|
|
2263
|
+
[name: string]: unknown;
|
|
2264
|
+
};
|
|
2265
|
+
content: {
|
|
2266
|
+
"application/json": components["schemas"]["ResponseJson_BabyInvitation"];
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
};
|
|
2271
|
+
acceptInvitation: {
|
|
2272
|
+
parameters: {
|
|
2273
|
+
query?: never;
|
|
2274
|
+
header?: never;
|
|
2275
|
+
path?: never;
|
|
2276
|
+
cookie?: never;
|
|
2277
|
+
};
|
|
2278
|
+
requestBody: {
|
|
2279
|
+
content: {
|
|
2280
|
+
"application/json": components["schemas"]["AcceptInvitationDto"];
|
|
2281
|
+
};
|
|
2282
|
+
};
|
|
2283
|
+
responses: {
|
|
2284
|
+
/** @description ok */
|
|
2285
|
+
200: {
|
|
2286
|
+
headers: {
|
|
2287
|
+
[name: string]: unknown;
|
|
2288
|
+
};
|
|
2289
|
+
content: {
|
|
2290
|
+
"application/json": components["schemas"]["ResponseJson_String"];
|
|
2291
|
+
};
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
queryInvitationByCode: {
|
|
2296
|
+
parameters: {
|
|
2297
|
+
query: {
|
|
2298
|
+
code: string;
|
|
2299
|
+
};
|
|
2300
|
+
header?: never;
|
|
2301
|
+
path?: never;
|
|
2302
|
+
cookie?: never;
|
|
2303
|
+
};
|
|
2304
|
+
requestBody?: never;
|
|
2305
|
+
responses: {
|
|
2306
|
+
/** @description ok */
|
|
2307
|
+
200: {
|
|
2308
|
+
headers: {
|
|
2309
|
+
[name: string]: unknown;
|
|
2310
|
+
};
|
|
2311
|
+
content: {
|
|
2312
|
+
"application/json": components["schemas"]["ResponseJson_InvitationPreview"];
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2317
|
+
cancelInvitation: {
|
|
2318
|
+
parameters: {
|
|
2319
|
+
query: {
|
|
2320
|
+
invitationId: string;
|
|
2321
|
+
};
|
|
2322
|
+
header?: never;
|
|
2323
|
+
path?: never;
|
|
2324
|
+
cookie?: never;
|
|
2325
|
+
};
|
|
2326
|
+
requestBody?: never;
|
|
2327
|
+
responses: {
|
|
2328
|
+
/** @description ok */
|
|
2329
|
+
200: {
|
|
2330
|
+
headers: {
|
|
2331
|
+
[name: string]: unknown;
|
|
2332
|
+
};
|
|
2333
|
+
content: {
|
|
2334
|
+
"application/json": components["schemas"]["ResponseJson"];
|
|
2335
|
+
};
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
2105
2339
|
createFeeding: {
|
|
2106
2340
|
parameters: {
|
|
2107
2341
|
query?: never;
|
|
@@ -2229,7 +2463,7 @@ interface operations {
|
|
|
2229
2463
|
};
|
|
2230
2464
|
requestBody: {
|
|
2231
2465
|
content: {
|
|
2232
|
-
"application/json": components["schemas"]["
|
|
2466
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterHealthRecordsParams_SortHealthRecordsParams"];
|
|
2233
2467
|
};
|
|
2234
2468
|
};
|
|
2235
2469
|
responses: {
|
|
@@ -2323,7 +2557,7 @@ interface operations {
|
|
|
2323
2557
|
};
|
|
2324
2558
|
requestBody: {
|
|
2325
2559
|
content: {
|
|
2326
|
-
"application/json": components["schemas"]["
|
|
2560
|
+
"application/json": components["schemas"]["PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams"];
|
|
2327
2561
|
};
|
|
2328
2562
|
};
|
|
2329
2563
|
responses: {
|