@dazl/internal-api-client 1.15.0 → 1.17.0

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.
@@ -129,6 +129,7 @@ export type InternalCreateCommentInput = {
129
129
  export type InternalEditCommentInput = {
130
130
  content: string;
131
131
  mentions?: Array<UserMention>;
132
+ editorDazlUserId?: string;
132
133
  };
133
134
  export type InternalCreateReplyInput = {
134
135
  content: string;
@@ -138,6 +139,7 @@ export type InternalCreateReplyInput = {
138
139
  export type InternalEditReplyInput = {
139
140
  content: string;
140
141
  mentions?: Array<UserMention>;
142
+ editorDazlUserId?: string;
141
143
  };
142
144
  export type TemplateRaw = {
143
145
  id: string;
@@ -321,6 +323,12 @@ export type UserRaw = {
321
323
  stripeCustomerId: string;
322
324
  picture?: string | null;
323
325
  };
326
+ export type UserDisplayInfoResponse = {
327
+ dazlId: string;
328
+ name: string;
329
+ email: string;
330
+ picture?: string | null;
331
+ };
324
332
  export type DeleteProjectInput = {
325
333
  /**
326
334
  * The admin user's internal ID
@@ -2510,15 +2518,70 @@ export type DeleteProjectInvitationResponses = {
2510
2518
  };
2511
2519
  };
2512
2520
  export type DeleteProjectInvitationResponse = DeleteProjectInvitationResponses[keyof DeleteProjectInvitationResponses];
2513
- export type InternalListProjectCommentsData = {
2521
+ export type InternalDeleteCommentData = {
2514
2522
  body?: never;
2515
2523
  path: {
2516
2524
  projectId: string;
2525
+ commentId: string;
2526
+ };
2527
+ query?: {
2528
+ editorDazlUserId?: string;
2529
+ };
2530
+ url: '/project/{projectId}/comments/{commentId}';
2531
+ };
2532
+ export type InternalDeleteCommentErrors = {
2533
+ /**
2534
+ * Bad request - Invalid parameters or malformed JSON
2535
+ */
2536
+ 400: {
2537
+ message: string;
2538
+ issues?: string;
2539
+ };
2540
+ /**
2541
+ * Unauthorized
2542
+ */
2543
+ 401: ErrorResponse;
2544
+ /**
2545
+ * Forbidden
2546
+ */
2547
+ 403: ErrorResponse;
2548
+ /**
2549
+ * Not Found
2550
+ */
2551
+ 404: ErrorResponse;
2552
+ /**
2553
+ * Conflict
2554
+ */
2555
+ 409: ErrorResponse;
2556
+ /**
2557
+ * Internal server error
2558
+ */
2559
+ 500: ErrorResponse;
2560
+ /**
2561
+ * Service Unavailable
2562
+ */
2563
+ 503: ErrorResponse;
2564
+ };
2565
+ export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
2566
+ export type InternalDeleteCommentResponses = {
2567
+ /**
2568
+ * Acknowledges that the comment was deleted
2569
+ */
2570
+ 200: {
2571
+ success: true;
2572
+ };
2573
+ };
2574
+ export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
2575
+ export type InternalGetProjectCommentData = {
2576
+ body?: never;
2577
+ path: {
2578
+ projectId: string;
2579
+ commentId: string;
2517
2580
  };
2518
2581
  query?: never;
2519
- url: '/project/{projectId}/comments';
2582
+ url: '/project/{projectId}/comments/{commentId}';
2520
2583
  };
2521
- export type InternalListProjectCommentsErrors = {
2584
+ export type InternalGetProjectCommentErrors = {
2522
2585
  /**
2523
2586
  * Bad request - Invalid parameters or malformed JSON
2524
2587
  */
@@ -2551,13 +2614,13 @@ export type InternalListProjectCommentsErrors = {
2551
2614
  */
2552
2615
  503: ErrorResponse;
2553
2616
  };
2554
- export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
2555
- export type InternalListProjectCommentsResponses = {
2617
+ export type InternalGetProjectCommentError = InternalGetProjectCommentErrors[keyof InternalGetProjectCommentErrors];
2618
+ export type InternalGetProjectCommentResponses = {
2556
2619
  /**
2557
- * Returns the list of comments for the project
2620
+ * Returns comment by id for the project
2558
2621
  */
2559
2622
  200: {
2560
- comments: Array<{
2623
+ comment: {
2561
2624
  commentId: string;
2562
2625
  author: {
2563
2626
  dazlUserId: string;
@@ -2580,19 +2643,20 @@ export type InternalListProjectCommentsResponses = {
2580
2643
  }>;
2581
2644
  resolved?: CommentResolved;
2582
2645
  context?: CommentContext;
2583
- }>;
2646
+ };
2584
2647
  };
2585
2648
  };
2586
- export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
2587
- export type InternalCreateCommentData = {
2588
- body: InternalCreateCommentInput;
2649
+ export type InternalGetProjectCommentResponse = InternalGetProjectCommentResponses[keyof InternalGetProjectCommentResponses];
2650
+ export type InternalEditCommentData = {
2651
+ body: InternalEditCommentInput;
2589
2652
  path: {
2590
2653
  projectId: string;
2654
+ commentId: string;
2591
2655
  };
2592
2656
  query?: never;
2593
- url: '/project/{projectId}/comments';
2657
+ url: '/project/{projectId}/comments/{commentId}';
2594
2658
  };
2595
- export type InternalCreateCommentErrors = {
2659
+ export type InternalEditCommentErrors = {
2596
2660
  /**
2597
2661
  * Bad request - Invalid parameters or malformed JSON
2598
2662
  */
@@ -2625,10 +2689,10 @@ export type InternalCreateCommentErrors = {
2625
2689
  */
2626
2690
  503: ErrorResponse;
2627
2691
  };
2628
- export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
2629
- export type InternalCreateCommentResponses = {
2692
+ export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
2693
+ export type InternalEditCommentResponses = {
2630
2694
  /**
2631
- * Returns the created comment
2695
+ * Returns the updated comment
2632
2696
  */
2633
2697
  200: {
2634
2698
  comment: {
@@ -2657,17 +2721,16 @@ export type InternalCreateCommentResponses = {
2657
2721
  };
2658
2722
  };
2659
2723
  };
2660
- export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
2661
- export type InternalDeleteCommentData = {
2724
+ export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
2725
+ export type InternalListProjectCommentsData = {
2662
2726
  body?: never;
2663
2727
  path: {
2664
2728
  projectId: string;
2665
- commentId: string;
2666
2729
  };
2667
2730
  query?: never;
2668
- url: '/project/{projectId}/comments/{commentId}';
2731
+ url: '/project/{projectId}/comments';
2669
2732
  };
2670
- export type InternalDeleteCommentErrors = {
2733
+ export type InternalListProjectCommentsErrors = {
2671
2734
  /**
2672
2735
  * Bad request - Invalid parameters or malformed JSON
2673
2736
  */
@@ -2700,26 +2763,48 @@ export type InternalDeleteCommentErrors = {
2700
2763
  */
2701
2764
  503: ErrorResponse;
2702
2765
  };
2703
- export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
2704
- export type InternalDeleteCommentResponses = {
2766
+ export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
2767
+ export type InternalListProjectCommentsResponses = {
2705
2768
  /**
2706
- * Acknowledges that the comment was deleted
2769
+ * Returns the list of comments for the project
2707
2770
  */
2708
2771
  200: {
2709
- success: true;
2772
+ comments: Array<{
2773
+ commentId: string;
2774
+ author: {
2775
+ dazlUserId: string;
2776
+ };
2777
+ content: string;
2778
+ mentions: Array<UserMention>;
2779
+ createdAt: string;
2780
+ updatedAt: string;
2781
+ lastActivityAt: string;
2782
+ isEdited: boolean;
2783
+ replies: Array<{
2784
+ replyId: string;
2785
+ author: {
2786
+ dazlUserId: string;
2787
+ };
2788
+ content: string;
2789
+ mentions: Array<UserMention>;
2790
+ createdAt: string;
2791
+ updatedAt: string;
2792
+ }>;
2793
+ resolved?: CommentResolved;
2794
+ context?: CommentContext;
2795
+ }>;
2710
2796
  };
2711
2797
  };
2712
- export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
2713
- export type InternalEditCommentData = {
2714
- body: InternalEditCommentInput;
2798
+ export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
2799
+ export type InternalCreateCommentData = {
2800
+ body: InternalCreateCommentInput;
2715
2801
  path: {
2716
2802
  projectId: string;
2717
- commentId: string;
2718
2803
  };
2719
2804
  query?: never;
2720
- url: '/project/{projectId}/comments/{commentId}';
2805
+ url: '/project/{projectId}/comments';
2721
2806
  };
2722
- export type InternalEditCommentErrors = {
2807
+ export type InternalCreateCommentErrors = {
2723
2808
  /**
2724
2809
  * Bad request - Invalid parameters or malformed JSON
2725
2810
  */
@@ -2752,10 +2837,10 @@ export type InternalEditCommentErrors = {
2752
2837
  */
2753
2838
  503: ErrorResponse;
2754
2839
  };
2755
- export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
2756
- export type InternalEditCommentResponses = {
2840
+ export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
2841
+ export type InternalCreateCommentResponses = {
2757
2842
  /**
2758
- * Returns the updated comment
2843
+ * Returns the created comment
2759
2844
  */
2760
2845
  200: {
2761
2846
  comment: {
@@ -2784,7 +2869,7 @@ export type InternalEditCommentResponses = {
2784
2869
  };
2785
2870
  };
2786
2871
  };
2787
- export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
2872
+ export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
2788
2873
  export type InternalResolveCommentData = {
2789
2874
  body?: never;
2790
2875
  path: {
@@ -3005,7 +3090,9 @@ export type InternalDeleteReplyData = {
3005
3090
  commentId: string;
3006
3091
  replyId: string;
3007
3092
  };
3008
- query?: never;
3093
+ query?: {
3094
+ editorDazlUserId?: string;
3095
+ };
3009
3096
  url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
3010
3097
  };
3011
3098
  export type InternalDeleteReplyErrors = {
@@ -4152,6 +4239,57 @@ export type UpdateUserResponses = {
4152
4239
  };
4153
4240
  };
4154
4241
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
4242
+ export type GetUsersByDazlIdsData = {
4243
+ body: {
4244
+ dazlIds: Array<string>;
4245
+ };
4246
+ path?: never;
4247
+ query?: never;
4248
+ url: '/user/list-by-dazl-ids';
4249
+ };
4250
+ export type GetUsersByDazlIdsErrors = {
4251
+ /**
4252
+ * Bad request - Invalid parameters or malformed JSON
4253
+ */
4254
+ 400: {
4255
+ message: string;
4256
+ issues?: string;
4257
+ };
4258
+ /**
4259
+ * Unauthorized
4260
+ */
4261
+ 401: ErrorResponse;
4262
+ /**
4263
+ * Forbidden
4264
+ */
4265
+ 403: ErrorResponse;
4266
+ /**
4267
+ * Not Found
4268
+ */
4269
+ 404: ErrorResponse;
4270
+ /**
4271
+ * Conflict
4272
+ */
4273
+ 409: ErrorResponse;
4274
+ /**
4275
+ * Internal server error
4276
+ */
4277
+ 500: ErrorResponse;
4278
+ /**
4279
+ * Service Unavailable
4280
+ */
4281
+ 503: ErrorResponse;
4282
+ };
4283
+ export type GetUsersByDazlIdsError = GetUsersByDazlIdsErrors[keyof GetUsersByDazlIdsErrors];
4284
+ export type GetUsersByDazlIdsResponses = {
4285
+ /**
4286
+ * Returns the requested users
4287
+ */
4288
+ 200: {
4289
+ users: Array<UserDisplayInfoResponse>;
4290
+ };
4291
+ };
4292
+ export type GetUsersByDazlIdsResponse = GetUsersByDazlIdsResponses[keyof GetUsersByDazlIdsResponses];
4155
4293
  export type CreateUserData = {
4156
4294
  body: {
4157
4295
  dazlId: string;