@hapaul/api 0.1.52 → 0.1.54

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 +287 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -861,6 +861,91 @@ interface paths {
861
861
  patch?: never;
862
862
  trace?: never;
863
863
  };
864
+ "/cacheTag/createCacheTag": {
865
+ parameters: {
866
+ query?: never;
867
+ header?: never;
868
+ path?: never;
869
+ cookie?: never;
870
+ };
871
+ get?: never;
872
+ put?: never;
873
+ /** Create cache tag */
874
+ post: operations["createCacheTag"];
875
+ delete?: never;
876
+ options?: never;
877
+ head?: never;
878
+ patch?: never;
879
+ trace?: never;
880
+ };
881
+ "/cacheTag/createOrUpdateCacheTag": {
882
+ parameters: {
883
+ query?: never;
884
+ header?: never;
885
+ path?: never;
886
+ cookie?: never;
887
+ };
888
+ get?: never;
889
+ put?: never;
890
+ /** Create or update cache tag */
891
+ post: operations["createOrUpdateCacheTag"];
892
+ delete?: never;
893
+ options?: never;
894
+ head?: never;
895
+ patch?: never;
896
+ trace?: never;
897
+ };
898
+ "/cacheTag/queryCacheTags": {
899
+ parameters: {
900
+ query?: never;
901
+ header?: never;
902
+ path?: never;
903
+ cookie?: never;
904
+ };
905
+ get?: never;
906
+ put?: never;
907
+ /** Query cache tags */
908
+ post: operations["queryCacheTags"];
909
+ delete?: never;
910
+ options?: never;
911
+ head?: never;
912
+ patch?: never;
913
+ trace?: never;
914
+ };
915
+ "/cacheTag/deleteCacheTag": {
916
+ parameters: {
917
+ query?: never;
918
+ header?: never;
919
+ path?: never;
920
+ cookie?: never;
921
+ };
922
+ get?: never;
923
+ put?: never;
924
+ post?: never;
925
+ /** Delete cache tag */
926
+ delete: operations["deleteCacheTag"];
927
+ options?: never;
928
+ head?: never;
929
+ patch?: never;
930
+ trace?: never;
931
+ };
932
+ "/cacheTag/updateCacheTag": {
933
+ parameters: {
934
+ query?: never;
935
+ header?: never;
936
+ path?: never;
937
+ cookie?: never;
938
+ };
939
+ get?: never;
940
+ put?: never;
941
+ post?: never;
942
+ delete?: never;
943
+ options?: never;
944
+ head?: never;
945
+ /** Update cache tag */
946
+ patch: operations["updateCacheTag"];
947
+ trace?: never;
948
+ };
864
949
  "/urinationDefecation/createUrinationDefecation": {
865
950
  parameters: {
866
951
  query?: never;
@@ -976,6 +1061,22 @@ interface components {
976
1061
  BabyRelationCode: "father" | "mother" | "grandFather" | "grandMother" | "maternalGrandFather" | "maternalGrandMother" | {
977
1062
  custom: string;
978
1063
  };
1064
+ CacheTag: {
1065
+ /** Format: uuid */
1066
+ id: string;
1067
+ /** Format: uuid */
1068
+ baby_id: string;
1069
+ tag_type: components["schemas"]["CacheTagType"];
1070
+ /** Format: date-time */
1071
+ last_used_at: string;
1072
+ label: string;
1073
+ /** Format: date-time */
1074
+ created_at: string;
1075
+ /** Format: date-time */
1076
+ updated_at: string;
1077
+ };
1078
+ /** @enum {string} */
1079
+ CacheTagType: "healthMedication" | "prescriptionMedication";
979
1080
  CreateBabyDto: {
980
1081
  name: string;
981
1082
  gender?: null | components["schemas"]["Gender"];
@@ -983,6 +1084,12 @@ interface components {
983
1084
  birth: string;
984
1085
  relation: components["schemas"]["BabyRelationCode"];
985
1086
  };
1087
+ CreateCacheTagParams: {
1088
+ /** Format: uuid */
1089
+ babyId: string;
1090
+ tagType: components["schemas"]["CacheTagType"];
1091
+ label: string;
1092
+ };
986
1093
  CreateFeedingParams: {
987
1094
  /** Format: uuid */
988
1095
  babyId: string;
@@ -1010,6 +1117,7 @@ interface components {
1010
1117
  /** Format: uuid */
1011
1118
  babyId: string;
1012
1119
  medicationType: components["schemas"]["MedicationType"];
1120
+ name: string;
1013
1121
  description?: string | null;
1014
1122
  /** Format: int32 */
1015
1123
  quantity: number;
@@ -1017,6 +1125,14 @@ interface components {
1017
1125
  /** Format: date-time */
1018
1126
  datetime: string;
1019
1127
  };
1128
+ CreateOrUpdateCacheTagParams: {
1129
+ /** Format: uuid */
1130
+ babyId: string;
1131
+ tagType: components["schemas"]["CacheTagType"];
1132
+ label: string;
1133
+ /** Format: date-time */
1134
+ lastUsedAt?: string | null;
1135
+ };
1020
1136
  CreatePermissionParams: {
1021
1137
  code: string;
1022
1138
  kind: string;
@@ -1138,6 +1254,11 @@ interface components {
1138
1254
  /** Format: date-time */
1139
1255
  to?: string | null;
1140
1256
  };
1257
+ FilterTagParams: {
1258
+ /** Format: uuid */
1259
+ babyId?: string | null;
1260
+ tagType?: string | null;
1261
+ };
1141
1262
  FilterUrinationDefecationParams: {
1142
1263
  /** Format: uuid */
1143
1264
  babyId?: string | null;
@@ -1220,6 +1341,7 @@ interface components {
1220
1341
  /** Format: uuid */
1221
1342
  babyId: string;
1222
1343
  medicationType: components["schemas"]["MedicationType"];
1344
+ name: string;
1223
1345
  description?: string | null;
1224
1346
  /** Format: int32 */
1225
1347
  quantity: number;
@@ -1302,6 +1424,18 @@ interface components {
1302
1424
  };
1303
1425
  sorts?: components["schemas"]["QuerySortDto_SortMedicationParams"][] | null;
1304
1426
  };
1427
+ PageableQueryDto_FilterTagParams_SortTagParams: {
1428
+ /** Format: int64 */
1429
+ page?: number | null;
1430
+ /** Format: int64 */
1431
+ pageSize?: number | null;
1432
+ filters?: {
1433
+ /** Format: uuid */
1434
+ babyId?: string | null;
1435
+ tagType?: string | null;
1436
+ };
1437
+ sorts?: components["schemas"]["QuerySortDto_SortTagParams"][] | null;
1438
+ };
1305
1439
  PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams: {
1306
1440
  /** Format: int64 */
1307
1441
  page?: number | null;
@@ -1423,6 +1557,11 @@ interface components {
1423
1557
  field: "datetime";
1424
1558
  order: components["schemas"]["QueryOrder"];
1425
1559
  };
1560
+ QuerySortDto_SortTagParams: {
1561
+ /** @enum {string} */
1562
+ field: "createdAt" | "label";
1563
+ order: components["schemas"]["QueryOrder"];
1564
+ };
1426
1565
  QuerySortDto_SortUrinationDefecationParams: {
1427
1566
  /** @enum {string} */
1428
1567
  field: "datetime";
@@ -1473,6 +1612,24 @@ interface components {
1473
1612
  /** Format: int64 */
1474
1613
  total: number;
1475
1614
  };
1615
+ ResponseJson_PaginatedData_CacheTag: {
1616
+ records: {
1617
+ /** Format: uuid */
1618
+ id: string;
1619
+ /** Format: uuid */
1620
+ baby_id: string;
1621
+ tag_type: components["schemas"]["CacheTagType"];
1622
+ /** Format: date-time */
1623
+ last_used_at: string;
1624
+ label: string;
1625
+ /** Format: date-time */
1626
+ created_at: string;
1627
+ /** Format: date-time */
1628
+ updated_at: string;
1629
+ }[];
1630
+ /** Format: int64 */
1631
+ total: number;
1632
+ };
1476
1633
  ResponseJson_PaginatedData_Feeding: {
1477
1634
  records: {
1478
1635
  /** Format: uuid */
@@ -1519,6 +1676,7 @@ interface components {
1519
1676
  /** Format: uuid */
1520
1677
  babyId: string;
1521
1678
  medicationType: components["schemas"]["MedicationType"];
1679
+ name: string;
1522
1680
  description?: string | null;
1523
1681
  /** Format: int32 */
1524
1682
  quantity: number;
@@ -1700,6 +1858,8 @@ interface components {
1700
1858
  /** @enum {string} */
1701
1859
  SortMedicationParams: "datetime";
1702
1860
  /** @enum {string} */
1861
+ SortTagParams: "createdAt" | "label";
1862
+ /** @enum {string} */
1703
1863
  SortUrinationDefecationParams: "datetime";
1704
1864
  /** @enum {string} */
1705
1865
  ThirdParty: "wechat" | "github";
@@ -1714,6 +1874,14 @@ interface components {
1714
1874
  id: string;
1715
1875
  name?: string | null;
1716
1876
  };
1877
+ UpdateCacheTagParams: {
1878
+ /** Format: uuid */
1879
+ id: string;
1880
+ tagType?: null | components["schemas"]["CacheTagType"];
1881
+ label?: string | null;
1882
+ /** Format: date-time */
1883
+ lastUsedAt?: string | null;
1884
+ };
1717
1885
  UpdateFeedingParams: {
1718
1886
  /** Format: uuid */
1719
1887
  id: string;
@@ -1734,6 +1902,7 @@ interface components {
1734
1902
  /** Format: uuid */
1735
1903
  id: string;
1736
1904
  medicationType?: null | components["schemas"]["MedicationType"];
1905
+ name?: string | null;
1737
1906
  description?: string | null;
1738
1907
  /** Format: int32 */
1739
1908
  quantity?: number | null;
@@ -3092,6 +3261,124 @@ interface operations {
3092
3261
  };
3093
3262
  };
3094
3263
  };
3264
+ createCacheTag: {
3265
+ parameters: {
3266
+ query?: never;
3267
+ header?: never;
3268
+ path?: never;
3269
+ cookie?: never;
3270
+ };
3271
+ requestBody: {
3272
+ content: {
3273
+ "application/json": components["schemas"]["CreateCacheTagParams"];
3274
+ };
3275
+ };
3276
+ responses: {
3277
+ /** @description ok */
3278
+ 200: {
3279
+ headers: {
3280
+ [name: string]: unknown;
3281
+ };
3282
+ content: {
3283
+ "application/json": components["schemas"]["ResponseJson_String"];
3284
+ };
3285
+ };
3286
+ };
3287
+ };
3288
+ createOrUpdateCacheTag: {
3289
+ parameters: {
3290
+ query?: never;
3291
+ header?: never;
3292
+ path?: never;
3293
+ cookie?: never;
3294
+ };
3295
+ requestBody: {
3296
+ content: {
3297
+ "application/json": components["schemas"]["CreateOrUpdateCacheTagParams"];
3298
+ };
3299
+ };
3300
+ responses: {
3301
+ /** @description ok */
3302
+ 200: {
3303
+ headers: {
3304
+ [name: string]: unknown;
3305
+ };
3306
+ content: {
3307
+ "application/json": components["schemas"]["ResponseJson_String"];
3308
+ };
3309
+ };
3310
+ };
3311
+ };
3312
+ queryCacheTags: {
3313
+ parameters: {
3314
+ query?: never;
3315
+ header?: never;
3316
+ path?: never;
3317
+ cookie?: never;
3318
+ };
3319
+ requestBody: {
3320
+ content: {
3321
+ "application/json": components["schemas"]["PageableQueryDto_FilterTagParams_SortTagParams"];
3322
+ };
3323
+ };
3324
+ responses: {
3325
+ /** @description ok */
3326
+ 200: {
3327
+ headers: {
3328
+ [name: string]: unknown;
3329
+ };
3330
+ content: {
3331
+ "application/json": components["schemas"]["ResponseJson_PaginatedData_CacheTag"];
3332
+ };
3333
+ };
3334
+ };
3335
+ };
3336
+ deleteCacheTag: {
3337
+ parameters: {
3338
+ query: {
3339
+ id: string;
3340
+ };
3341
+ header?: never;
3342
+ path?: never;
3343
+ cookie?: never;
3344
+ };
3345
+ requestBody?: never;
3346
+ responses: {
3347
+ /** @description ok */
3348
+ 200: {
3349
+ headers: {
3350
+ [name: string]: unknown;
3351
+ };
3352
+ content: {
3353
+ "application/json": components["schemas"]["ResponseJson"];
3354
+ };
3355
+ };
3356
+ };
3357
+ };
3358
+ updateCacheTag: {
3359
+ parameters: {
3360
+ query?: never;
3361
+ header?: never;
3362
+ path?: never;
3363
+ cookie?: never;
3364
+ };
3365
+ requestBody: {
3366
+ content: {
3367
+ "application/json": components["schemas"]["UpdateCacheTagParams"];
3368
+ };
3369
+ };
3370
+ responses: {
3371
+ /** @description ok */
3372
+ 200: {
3373
+ headers: {
3374
+ [name: string]: unknown;
3375
+ };
3376
+ content: {
3377
+ "application/json": components["schemas"]["ResponseJson_Null"];
3378
+ };
3379
+ };
3380
+ };
3381
+ };
3095
3382
  createUrinationDefecation: {
3096
3383
  parameters: {
3097
3384
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [