@erp-galoper/types 1.0.1241 → 1.0.1243

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/openapi.ts +137 -18
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -20679,40 +20679,58 @@ export interface paths {
20679
20679
  patch?: never;
20680
20680
  trace?: never;
20681
20681
  };
20682
- "/api/v1/notification/{id}/": {
20682
+ "/api/v1/notification/{id}/mark-as-read": {
20683
20683
  parameters: {
20684
20684
  query?: never;
20685
20685
  header?: never;
20686
20686
  path?: never;
20687
20687
  cookie?: never;
20688
20688
  };
20689
+ get?: never;
20690
+ put?: never;
20691
+ post?: never;
20692
+ delete?: never;
20693
+ options?: never;
20694
+ head?: never;
20689
20695
  /**
20690
- * Get Notification
20691
- * @description Endpoint to retrieve notification by ID
20696
+ * Update Notification Status
20697
+ * @description Endpoint to mark notification as read or unread by id
20692
20698
  *
20693
20699
  * Possible Responses:
20694
20700
  * - 200:
20695
20701
  * - RetrieveNotificationRecipient
20702
+ * - 400:
20703
+ * - ValidationError
20696
20704
  * - 403:
20697
20705
  * - permissionDenied
20698
20706
  * - noModuleAccess
20699
20707
  * - 404:
20700
- * - notificationDoesNotExist
20708
+ * - NotificationDoesNotExist
20701
20709
  * - 500:
20702
20710
  * - internalServerError
20703
20711
  *
20704
20712
  * Permission Key:
20705
- * 'notificationrecipient = ['view']'
20713
+ * 'notificationrecipient = ['mark_read']' Permission key to mark notification as read only
20714
+ * 'notificationrecipient = ['mark_unread']' Permission key to mark notification as unread only
20706
20715
  */
20707
- get: operations["notification_views_get_notification"];
20716
+ patch: operations["notification_views_update_notification_status"];
20717
+ trace?: never;
20718
+ };
20719
+ "/api/v1/notification/{id}/batch-update": {
20720
+ parameters: {
20721
+ query?: never;
20722
+ header?: never;
20723
+ path?: never;
20724
+ cookie?: never;
20725
+ };
20726
+ get?: never;
20708
20727
  /**
20709
- * Update Notification Status
20710
- * @description Endpoint to mark notification as read or unread by id
20728
+ * Batch Update Notification Status
20729
+ * @description Endpoint to batch mark notificationrecipients as read or unread
20711
20730
  *
20712
20731
  * Possible Responses:
20713
20732
  * - 200:
20714
- * - notificationMarkedAsRead
20715
- * - notificationMarkedAsUnread
20733
+ * - MessageResponse
20716
20734
  * - 400:
20717
20735
  * - ValidationError
20718
20736
  * - 403:
@@ -20727,7 +20745,41 @@ export interface paths {
20727
20745
  * 'notificationrecipient = ['mark_read']' Permission key to mark notification as read only
20728
20746
  * 'notificationrecipient = ['mark_unread']' Permission key to mark notification as unread only
20729
20747
  */
20730
- put: operations["notification_views_update_notification_status"];
20748
+ put: operations["notification_views_batch_update_notification_status"];
20749
+ post?: never;
20750
+ delete?: never;
20751
+ options?: never;
20752
+ head?: never;
20753
+ patch?: never;
20754
+ trace?: never;
20755
+ };
20756
+ "/api/v1/notification/{id}/": {
20757
+ parameters: {
20758
+ query?: never;
20759
+ header?: never;
20760
+ path?: never;
20761
+ cookie?: never;
20762
+ };
20763
+ /**
20764
+ * Get Notification
20765
+ * @description Endpoint to retrieve notification by ID
20766
+ *
20767
+ * Possible Responses:
20768
+ * - 200:
20769
+ * - RetrieveNotificationRecipient
20770
+ * - 403:
20771
+ * - permissionDenied
20772
+ * - noModuleAccess
20773
+ * - 404:
20774
+ * - notificationDoesNotExist
20775
+ * - 500:
20776
+ * - internalServerError
20777
+ *
20778
+ * Permission Key:
20779
+ * 'notificationrecipient = ['view']'
20780
+ */
20781
+ get: operations["notification_views_get_notification"];
20782
+ put?: never;
20731
20783
  post?: never;
20732
20784
  delete?: never;
20733
20785
  options?: never;
@@ -53339,6 +53391,13 @@ export interface components {
53339
53391
  /** Isread */
53340
53392
  isRead: boolean;
53341
53393
  };
53394
+ /** BatchUpdateStatus */
53395
+ BatchUpdateStatus: {
53396
+ /** Notificationsids */
53397
+ notificationsIds: string[];
53398
+ /** Isread */
53399
+ isRead: boolean;
53400
+ };
53342
53401
  /** EventsListSchema */
53343
53402
  EventsListSchema: {
53344
53403
  info: components["schemas"]["PageInfoSchema"];
@@ -95740,7 +95799,7 @@ export interface operations {
95740
95799
  };
95741
95800
  };
95742
95801
  };
95743
- notification_views_get_notification: {
95802
+ notification_views_update_notification_status: {
95744
95803
  parameters: {
95745
95804
  query?: never;
95746
95805
  header?: never;
@@ -95749,7 +95808,11 @@ export interface operations {
95749
95808
  };
95750
95809
  cookie?: never;
95751
95810
  };
95752
- requestBody?: never;
95811
+ requestBody: {
95812
+ content: {
95813
+ "application/json": components["schemas"]["MarkAsReadNotif"];
95814
+ };
95815
+ };
95753
95816
  responses: {
95754
95817
  /** @description OK */
95755
95818
  200: {
@@ -95760,6 +95823,15 @@ export interface operations {
95760
95823
  "application/json": components["schemas"]["RetrieveNotificationRecipient"];
95761
95824
  };
95762
95825
  };
95826
+ /** @description Bad Request */
95827
+ 400: {
95828
+ headers: {
95829
+ [name: string]: unknown;
95830
+ };
95831
+ content: {
95832
+ "application/json": components["schemas"]["ErrorMessages"];
95833
+ };
95834
+ };
95763
95835
  /** @description Forbidden */
95764
95836
  403: {
95765
95837
  headers: {
@@ -95789,18 +95861,16 @@ export interface operations {
95789
95861
  };
95790
95862
  };
95791
95863
  };
95792
- notification_views_update_notification_status: {
95864
+ notification_views_batch_update_notification_status: {
95793
95865
  parameters: {
95794
95866
  query?: never;
95795
95867
  header?: never;
95796
- path: {
95797
- id: string;
95798
- };
95868
+ path?: never;
95799
95869
  cookie?: never;
95800
95870
  };
95801
95871
  requestBody: {
95802
95872
  content: {
95803
- "application/json": components["schemas"]["MarkAsReadNotif"];
95873
+ "application/json": components["schemas"]["BatchUpdateStatus"];
95804
95874
  };
95805
95875
  };
95806
95876
  responses: {
@@ -95851,6 +95921,55 @@ export interface operations {
95851
95921
  };
95852
95922
  };
95853
95923
  };
95924
+ notification_views_get_notification: {
95925
+ parameters: {
95926
+ query?: never;
95927
+ header?: never;
95928
+ path: {
95929
+ id: string;
95930
+ };
95931
+ cookie?: never;
95932
+ };
95933
+ requestBody?: never;
95934
+ responses: {
95935
+ /** @description OK */
95936
+ 200: {
95937
+ headers: {
95938
+ [name: string]: unknown;
95939
+ };
95940
+ content: {
95941
+ "application/json": components["schemas"]["RetrieveNotificationRecipient"];
95942
+ };
95943
+ };
95944
+ /** @description Forbidden */
95945
+ 403: {
95946
+ headers: {
95947
+ [name: string]: unknown;
95948
+ };
95949
+ content: {
95950
+ "application/json": components["schemas"]["MessageResponse"];
95951
+ };
95952
+ };
95953
+ /** @description Not Found */
95954
+ 404: {
95955
+ headers: {
95956
+ [name: string]: unknown;
95957
+ };
95958
+ content: {
95959
+ "application/json": components["schemas"]["MessageResponse"];
95960
+ };
95961
+ };
95962
+ /** @description Internal Server Error */
95963
+ 500: {
95964
+ headers: {
95965
+ [name: string]: unknown;
95966
+ };
95967
+ content: {
95968
+ "application/json": components["schemas"]["MessageResponse"];
95969
+ };
95970
+ };
95971
+ };
95972
+ };
95854
95973
  event_views_list_events: {
95855
95974
  parameters: {
95856
95975
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1241",
3
+ "version": "1.0.1243",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],