@hapaul/api 0.1.53 → 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 +283 -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;
@@ -1018,6 +1125,14 @@ interface components {
1018
1125
  /** Format: date-time */
1019
1126
  datetime: string;
1020
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
+ };
1021
1136
  CreatePermissionParams: {
1022
1137
  code: string;
1023
1138
  kind: string;
@@ -1139,6 +1254,11 @@ interface components {
1139
1254
  /** Format: date-time */
1140
1255
  to?: string | null;
1141
1256
  };
1257
+ FilterTagParams: {
1258
+ /** Format: uuid */
1259
+ babyId?: string | null;
1260
+ tagType?: string | null;
1261
+ };
1142
1262
  FilterUrinationDefecationParams: {
1143
1263
  /** Format: uuid */
1144
1264
  babyId?: string | null;
@@ -1304,6 +1424,18 @@ interface components {
1304
1424
  };
1305
1425
  sorts?: components["schemas"]["QuerySortDto_SortMedicationParams"][] | null;
1306
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
+ };
1307
1439
  PageableQueryDto_FilterUrinationDefecationParams_SortUrinationDefecationParams: {
1308
1440
  /** Format: int64 */
1309
1441
  page?: number | null;
@@ -1425,6 +1557,11 @@ interface components {
1425
1557
  field: "datetime";
1426
1558
  order: components["schemas"]["QueryOrder"];
1427
1559
  };
1560
+ QuerySortDto_SortTagParams: {
1561
+ /** @enum {string} */
1562
+ field: "createdAt" | "label";
1563
+ order: components["schemas"]["QueryOrder"];
1564
+ };
1428
1565
  QuerySortDto_SortUrinationDefecationParams: {
1429
1566
  /** @enum {string} */
1430
1567
  field: "datetime";
@@ -1475,6 +1612,24 @@ interface components {
1475
1612
  /** Format: int64 */
1476
1613
  total: number;
1477
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
+ };
1478
1633
  ResponseJson_PaginatedData_Feeding: {
1479
1634
  records: {
1480
1635
  /** Format: uuid */
@@ -1703,6 +1858,8 @@ interface components {
1703
1858
  /** @enum {string} */
1704
1859
  SortMedicationParams: "datetime";
1705
1860
  /** @enum {string} */
1861
+ SortTagParams: "createdAt" | "label";
1862
+ /** @enum {string} */
1706
1863
  SortUrinationDefecationParams: "datetime";
1707
1864
  /** @enum {string} */
1708
1865
  ThirdParty: "wechat" | "github";
@@ -1717,6 +1874,14 @@ interface components {
1717
1874
  id: string;
1718
1875
  name?: string | null;
1719
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
+ };
1720
1885
  UpdateFeedingParams: {
1721
1886
  /** Format: uuid */
1722
1887
  id: string;
@@ -3096,6 +3261,124 @@ interface operations {
3096
3261
  };
3097
3262
  };
3098
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
+ };
3099
3382
  createUrinationDefecation: {
3100
3383
  parameters: {
3101
3384
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [