@hapaul/api 0.1.45 → 0.1.47

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 +174 -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: {
@@ -1327,6 +1406,9 @@ interface components {
1327
1406
  /** Format: date-time */
1328
1407
  updatedAt: string;
1329
1408
  }[];
1409
+ ResponseJson_Vec_PostWithAttachments: (components["schemas"]["Post"] & {
1410
+ attachments: components["schemas"]["PostAttachmentInfo"][];
1411
+ })[];
1330
1412
  ResponseJson_Vec_SessionDto: {
1331
1413
  /** Format: uuid */
1332
1414
  id: string;
@@ -1335,6 +1417,8 @@ interface components {
1335
1417
  /** Format: date-time */
1336
1418
  createdAt: string;
1337
1419
  }[];
1420
+ /** Format: int64 */
1421
+ ResponseJson_u64: number;
1338
1422
  RoleDto: {
1339
1423
  /** Format: uuid */
1340
1424
  id: string;
@@ -1423,12 +1507,30 @@ interface components {
1423
1507
  UpdateUrinationDefecationParams: {
1424
1508
  /** Format: uuid */
1425
1509
  id: string;
1426
- color?: string | null;
1510
+ color?: null | components["schemas"]["UrinationDefecationColor"];
1427
1511
  quantity?: null | components["schemas"]["UrinationDefecationQuantity"];
1428
1512
  viscosity?: null | components["schemas"]["UrinationDefecationViscosity"];
1429
1513
  /** Format: date-time */
1430
1514
  datetime?: string | null;
1431
1515
  };
1516
+ Upload: {
1517
+ /** Format: uuid */
1518
+ id: string;
1519
+ hash: string;
1520
+ name: string;
1521
+ extension: string;
1522
+ /** Format: int64 */
1523
+ size: number;
1524
+ /** Format: int32 */
1525
+ chunk_size: number;
1526
+ status: components["schemas"]["UploadStatus"];
1527
+ /** Format: date-time */
1528
+ merged_at?: string | null;
1529
+ /** Format: date-time */
1530
+ created_at: string;
1531
+ /** Format: date-time */
1532
+ updated_at: string;
1533
+ };
1432
1534
  UploadDto: {
1433
1535
  /** Format: uuid */
1434
1536
  id: string;
@@ -2541,6 +2643,77 @@ interface operations {
2541
2643
  };
2542
2644
  };
2543
2645
  };
2646
+ createPost: {
2647
+ parameters: {
2648
+ query?: never;
2649
+ header?: never;
2650
+ path?: never;
2651
+ cookie?: never;
2652
+ };
2653
+ requestBody: {
2654
+ content: {
2655
+ "application/json": components["schemas"]["CreatePostParams"];
2656
+ };
2657
+ };
2658
+ responses: {
2659
+ /** @description ok */
2660
+ 200: {
2661
+ headers: {
2662
+ [name: string]: unknown;
2663
+ };
2664
+ content: {
2665
+ "application/json": components["schemas"]["ResponseJson_String"];
2666
+ };
2667
+ };
2668
+ };
2669
+ };
2670
+ queryPostsTimeline: {
2671
+ parameters: {
2672
+ query: {
2673
+ babyId?: string | null;
2674
+ createdBy?: string | null;
2675
+ limit: number;
2676
+ cursor?: string | null;
2677
+ };
2678
+ header?: never;
2679
+ path?: never;
2680
+ cookie?: never;
2681
+ };
2682
+ requestBody?: never;
2683
+ responses: {
2684
+ /** @description ok */
2685
+ 200: {
2686
+ headers: {
2687
+ [name: string]: unknown;
2688
+ };
2689
+ content: {
2690
+ "application/json": components["schemas"]["ResponseJson_Vec_PostWithAttachments"];
2691
+ };
2692
+ };
2693
+ };
2694
+ };
2695
+ deletePost: {
2696
+ parameters: {
2697
+ query: {
2698
+ id: string;
2699
+ };
2700
+ header?: never;
2701
+ path?: never;
2702
+ cookie?: never;
2703
+ };
2704
+ requestBody?: never;
2705
+ responses: {
2706
+ /** @description ok */
2707
+ 200: {
2708
+ headers: {
2709
+ [name: string]: unknown;
2710
+ };
2711
+ content: {
2712
+ "application/json": components["schemas"]["ResponseJson_u64"];
2713
+ };
2714
+ };
2715
+ };
2716
+ };
2544
2717
  createUrinationDefecation: {
2545
2718
  parameters: {
2546
2719
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hapaul/api",
3
- "version": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [