@hapaul/api 0.1.44 → 0.1.46

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 +178 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -742,6 +742,57 @@ interface paths {
742
742
  patch: operations["updateHealthRecord"];
743
743
  trace?: never;
744
744
  };
745
+ "/post/createPost": {
746
+ parameters: {
747
+ query?: never;
748
+ header?: never;
749
+ path?: never;
750
+ cookie?: never;
751
+ };
752
+ get?: never;
753
+ put?: never;
754
+ /** Create post */
755
+ post: operations["createPost"];
756
+ delete?: never;
757
+ options?: never;
758
+ head?: never;
759
+ patch?: never;
760
+ trace?: never;
761
+ };
762
+ "/post/queryPostsTimeline": {
763
+ parameters: {
764
+ query?: never;
765
+ header?: never;
766
+ path?: never;
767
+ cookie?: never;
768
+ };
769
+ /** Query posts timeline */
770
+ get: operations["queryPostsTimeline"];
771
+ put?: never;
772
+ post?: never;
773
+ delete?: never;
774
+ options?: never;
775
+ head?: never;
776
+ patch?: never;
777
+ trace?: never;
778
+ };
779
+ "/post/deletePost": {
780
+ parameters: {
781
+ query?: never;
782
+ header?: never;
783
+ path?: never;
784
+ cookie?: never;
785
+ };
786
+ get?: never;
787
+ put?: never;
788
+ post?: never;
789
+ /** Delete post */
790
+ delete: operations["deletePost"];
791
+ options?: never;
792
+ head?: never;
793
+ patch?: never;
794
+ trace?: never;
795
+ };
745
796
  "/urinationDefecation/createUrinationDefecation": {
746
797
  parameters: {
747
798
  query?: never;
@@ -868,6 +919,12 @@ interface components {
868
919
  kind: string;
869
920
  description?: string | null;
870
921
  };
922
+ CreatePostParams: {
923
+ /** Format: uuid */
924
+ babyId: string;
925
+ content: string;
926
+ attachments?: string[] | null;
927
+ };
871
928
  /** @description Role create params */
872
929
  CreateRoleRequestDto: {
873
930
  name: string;
@@ -1107,6 +1164,28 @@ interface components {
1107
1164
  };
1108
1165
  /** @enum {string} */
1109
1166
  PermissionOrders: "createdAt";
1167
+ Post: {
1168
+ /** Format: uuid */
1169
+ id: string;
1170
+ /** Format: uuid */
1171
+ babyId: string;
1172
+ content: string;
1173
+ /** Format: uuid */
1174
+ createdBy: string;
1175
+ /** Format: date-time */
1176
+ createdAt: string;
1177
+ /** Format: date-time */
1178
+ updatedAt: string;
1179
+ };
1180
+ PostAttachmentInfo: components["schemas"]["Upload"] & {
1181
+ /** Format: uuid */
1182
+ postId: string;
1183
+ /** Format: int32 */
1184
+ index: number;
1185
+ };
1186
+ PostWithAttachments: components["schemas"]["Post"] & {
1187
+ attachments: components["schemas"]["PostAttachmentInfo"][];
1188
+ };
1110
1189
  /** @enum {string} */
1111
1190
  QueryOrder: "asc" | "desc";
1112
1191
  QuerySortDto_PermissionOrders: {
@@ -1235,6 +1314,13 @@ interface components {
1235
1314
  /** Format: int64 */
1236
1315
  total: number;
1237
1316
  };
1317
+ ResponseJson_PaginatedData_PostWithAttachments: {
1318
+ records: (components["schemas"]["Post"] & {
1319
+ attachments: components["schemas"]["PostAttachmentInfo"][];
1320
+ })[];
1321
+ /** Format: int64 */
1322
+ total: number;
1323
+ };
1238
1324
  ResponseJson_PaginatedData_RoleDto: {
1239
1325
  records: {
1240
1326
  /** Format: uuid */
@@ -1335,6 +1421,8 @@ interface components {
1335
1421
  /** Format: date-time */
1336
1422
  createdAt: string;
1337
1423
  }[];
1424
+ /** Format: int64 */
1425
+ ResponseJson_u64: number;
1338
1426
  RoleDto: {
1339
1427
  /** Format: uuid */
1340
1428
  id: string;
@@ -1423,12 +1511,30 @@ interface components {
1423
1511
  UpdateUrinationDefecationParams: {
1424
1512
  /** Format: uuid */
1425
1513
  id: string;
1426
- color?: string | null;
1514
+ color?: null | components["schemas"]["UrinationDefecationColor"];
1427
1515
  quantity?: null | components["schemas"]["UrinationDefecationQuantity"];
1428
1516
  viscosity?: null | components["schemas"]["UrinationDefecationViscosity"];
1429
1517
  /** Format: date-time */
1430
1518
  datetime?: string | null;
1431
1519
  };
1520
+ Upload: {
1521
+ /** Format: uuid */
1522
+ id: string;
1523
+ hash: string;
1524
+ name: string;
1525
+ extension: string;
1526
+ /** Format: int64 */
1527
+ size: number;
1528
+ /** Format: int32 */
1529
+ chunk_size: number;
1530
+ status: components["schemas"]["UploadStatus"];
1531
+ /** Format: date-time */
1532
+ merged_at?: string | null;
1533
+ /** Format: date-time */
1534
+ created_at: string;
1535
+ /** Format: date-time */
1536
+ updated_at: string;
1537
+ };
1432
1538
  UploadDto: {
1433
1539
  /** Format: uuid */
1434
1540
  id: string;
@@ -2541,6 +2647,77 @@ interface operations {
2541
2647
  };
2542
2648
  };
2543
2649
  };
2650
+ createPost: {
2651
+ parameters: {
2652
+ query?: never;
2653
+ header?: never;
2654
+ path?: never;
2655
+ cookie?: never;
2656
+ };
2657
+ requestBody: {
2658
+ content: {
2659
+ "application/json": components["schemas"]["CreatePostParams"];
2660
+ };
2661
+ };
2662
+ responses: {
2663
+ /** @description ok */
2664
+ 200: {
2665
+ headers: {
2666
+ [name: string]: unknown;
2667
+ };
2668
+ content: {
2669
+ "application/json": components["schemas"]["ResponseJson_String"];
2670
+ };
2671
+ };
2672
+ };
2673
+ };
2674
+ queryPostsTimeline: {
2675
+ parameters: {
2676
+ query: {
2677
+ babyId?: string | null;
2678
+ createdBy?: string | null;
2679
+ limit: number;
2680
+ cursor?: string | null;
2681
+ };
2682
+ header?: never;
2683
+ path?: never;
2684
+ cookie?: never;
2685
+ };
2686
+ requestBody?: never;
2687
+ responses: {
2688
+ /** @description ok */
2689
+ 200: {
2690
+ headers: {
2691
+ [name: string]: unknown;
2692
+ };
2693
+ content: {
2694
+ "application/json": components["schemas"]["ResponseJson_PaginatedData_PostWithAttachments"];
2695
+ };
2696
+ };
2697
+ };
2698
+ };
2699
+ deletePost: {
2700
+ parameters: {
2701
+ query: {
2702
+ id: string;
2703
+ };
2704
+ header?: never;
2705
+ path?: never;
2706
+ cookie?: never;
2707
+ };
2708
+ requestBody?: never;
2709
+ responses: {
2710
+ /** @description ok */
2711
+ 200: {
2712
+ headers: {
2713
+ [name: string]: unknown;
2714
+ };
2715
+ content: {
2716
+ "application/json": components["schemas"]["ResponseJson_u64"];
2717
+ };
2718
+ };
2719
+ };
2720
+ };
2544
2721
  createUrinationDefecation: {
2545
2722
  parameters: {
2546
2723
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.44",
3
+ "version": "0.1.46",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [