@digital-realty/ix-notifications 1.2.4 → 1.2.6

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 (48) hide show
  1. package/dist/src/IxNotifications.js +14 -21
  2. package/dist/src/IxNotifications.js.map +1 -1
  3. package/dist/src/api/notifications-api/apis/NotificationsApi.d.ts +15 -4
  4. package/dist/src/api/notifications-api/apis/NotificationsApi.js +38 -4
  5. package/dist/src/api/notifications-api/apis/NotificationsApi.js.map +1 -1
  6. package/dist/src/api/notifications-api/apis/index.d.ts +1 -1
  7. package/dist/src/api/notifications-api/apis/index.js +1 -1
  8. package/dist/src/api/notifications-api/apis/index.js.map +1 -1
  9. package/dist/src/api/notifications-api/index.d.ts +3 -3
  10. package/dist/src/api/notifications-api/index.js +3 -3
  11. package/dist/src/api/notifications-api/index.js.map +1 -1
  12. package/dist/src/api/notifications-api/models/ErrorResponse.js +1 -1
  13. package/dist/src/api/notifications-api/models/ErrorResponse.js.map +1 -1
  14. package/dist/src/api/notifications-api/models/GetNotifications200Response.d.ts +1 -1
  15. package/dist/src/api/notifications-api/models/GetNotifications200Response.js +2 -2
  16. package/dist/src/api/notifications-api/models/GetNotifications200Response.js.map +1 -1
  17. package/dist/src/api/notifications-api/models/Notification.d.ts +1 -1
  18. package/dist/src/api/notifications-api/models/Notification.js +2 -2
  19. package/dist/src/api/notifications-api/models/Notification.js.map +1 -1
  20. package/dist/src/api/notifications-api/models/NotificationBulkPatch.d.ts +32 -0
  21. package/dist/src/api/notifications-api/models/NotificationBulkPatch.js +45 -0
  22. package/dist/src/api/notifications-api/models/NotificationBulkPatch.js.map +1 -0
  23. package/dist/src/api/notifications-api/models/NotificationBulkPatchResult.d.ts +31 -0
  24. package/dist/src/api/notifications-api/models/NotificationBulkPatchResult.js +44 -0
  25. package/dist/src/api/notifications-api/models/NotificationBulkPatchResult.js.map +1 -0
  26. package/dist/src/api/notifications-api/models/NotificationDelete.js +1 -1
  27. package/dist/src/api/notifications-api/models/NotificationDelete.js.map +1 -1
  28. package/dist/src/api/notifications-api/models/NotificationPatch.d.ts +1 -1
  29. package/dist/src/api/notifications-api/models/NotificationPatch.js +1 -1
  30. package/dist/src/api/notifications-api/models/NotificationPatch.js.map +1 -1
  31. package/dist/src/api/notifications-api/models/NotificationRequest.js +1 -1
  32. package/dist/src/api/notifications-api/models/NotificationRequest.js.map +1 -1
  33. package/dist/src/api/notifications-api/models/PaginatedResponse.js +1 -1
  34. package/dist/src/api/notifications-api/models/PaginatedResponse.js.map +1 -1
  35. package/dist/src/api/notifications-api/models/index.d.ts +10 -8
  36. package/dist/src/api/notifications-api/models/index.js +10 -8
  37. package/dist/src/api/notifications-api/models/index.js.map +1 -1
  38. package/dist/src/components/icons/notifications-icon.js +2 -0
  39. package/dist/src/components/icons/notifications-icon.js.map +1 -1
  40. package/dist/src/ix-notifications.min.js +1 -1
  41. package/dist/src/state/NotificationState.d.ts +2 -0
  42. package/dist/src/state/NotificationState.js +15 -0
  43. package/dist/src/state/NotificationState.js.map +1 -1
  44. package/dist/src/tw.js +52 -0
  45. package/dist/src/tw.js.map +1 -1
  46. package/dist/test/read-all.test.js +13 -3
  47. package/dist/test/read-all.test.js.map +1 -1
  48. package/package.json +3 -4
@@ -65,30 +65,23 @@ export class IxNotifications extends MobxLitElement {
65
65
  this.showMarkAllReadConfirmation = true;
66
66
  }
67
67
  }
68
- confirmedMarkAllRead(e) {
68
+ async confirmedMarkAllRead(e) {
69
69
  // Mark All read if Confirmed True
70
70
  if (e.detail.returnValue) {
71
- const filterNotification = this.applyNotificationFilters();
72
- const unreadItems = filterNotification === null || filterNotification === void 0 ? void 0 : filterNotification.filter(item => item.status === NotificationStatus.UNREAD);
73
- if (unreadItems.length > 0) {
74
- let allResultSuccesful = true;
75
- filterNotification === null || filterNotification === void 0 ? void 0 : filterNotification.forEach(item => {
76
- NotificationsState.setNotificationReadStatus(item.id).then((result) => {
77
- if (allResultSuccesful)
78
- allResultSuccesful = result;
79
- });
80
- });
81
- const apiResult = {
82
- State: allResultSuccesful === true
83
- ? ApiCallState.SUCCESS
84
- : ApiCallState.ERROR,
85
- Message: allResultSuccesful === true
86
- ? 'Successfully marked all the notifications as read'
87
- : 'Error while marking the notifications read, Please try again',
88
- };
89
- this.showResultMessage(apiResult, unreadItems[0].id);
90
- this.requestUpdate();
71
+ try {
72
+ const result = await NotificationsState.setAllNotificationAsRead();
73
+ this.showResultMessage({
74
+ State: ApiCallState.SUCCESS,
75
+ Message: `Successfully marked ${result.updatedCount} notifications as read`,
76
+ }, 'all-read');
91
77
  }
78
+ catch (_a) {
79
+ this.showResultMessage({
80
+ State: ApiCallState.ERROR,
81
+ Message: 'Error while marking the notifications read, Please try again',
82
+ }, 'all-read');
83
+ }
84
+ this.requestUpdate();
92
85
  }
93
86
  this.showMarkAllReadConfirmation = false;
94
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IxNotifications.js","sourceRoot":"","sources":["../../src/IxNotifications.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,IAAI,EACJ,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,wCAAwC,CAAC;AAChD,OAAO,wCAAwC,CAAC;AAChD,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAMlE,OAAO,EACL,YAAY,EACZ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CAAC,cAAc,CAAC;oDAA2B;AAEJ;IAA5C,KAAK,CAAC,oCAAoC,CAAC;0DAAiC;AAE5D;IAAhB,KAAK,EAAE;wDAAiC;AAExB;IAAhB,KAAK,EAAE;oDAA6B;AAEpB;IAAhB,KAAK,EAAE;wDAAiC;AAExB;IAAhB,KAAK,EAAE;oEAA6C;AAEzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAiB;AAEhB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAsB","sourcesContent":["import { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { MobxLitElement } from '@adobe/lit-mobx';\nimport { differenceInDays } from 'date-fns/differenceInDays.js';\nimport { differenceInHours } from 'date-fns/differenceInHours.js';\nimport {\n plannedMaintenance,\n viewList,\n dcim,\n sortCheck,\n} from './assets/iconset.js';\nimport { TWStyles } from './tw.js';\nimport '@digital-realty/ix-button/ix-button.js';\nimport '@digital-realty/ix-drawer/ix-drawer.js';\nimport '@digital-realty/ix-icon';\nimport '@material/web/icon/icon.js';\nimport { NotificationsState } from './state/NotificationState.js';\nimport { ApiCallResult, Notification } from './models/notification.js';\nimport {\n ConfirmationDialogEventDetail,\n FilterDialogEventDetail,\n} from './constants/notification-types.js';\nimport {\n ApiCallState,\n NotificationGroups,\n NotificationStatus,\n} from './constants/notifications.js';\nimport './components/notifications/notification-item.js';\nimport './components/notifications/grouped-item.js';\nimport './components/notifications/group-filters.js';\nimport './components/notifications/date-filters.js';\nimport './components/notifications/confirmation-dialog.js';\nimport { NotificationsStyle } from './styles/notifications-style.js';\nimport './components/notifications/notification-tooltip.js';\n\nexport class IxNotifications extends MobxLitElement {\n static styles = [TWStyles, NotificationsStyle];\n\n @query('group-filters') groupFilters!: HTMLElement;\n\n @query('ix-icon-button#group-filter-button') groupFiltersButton!: HTMLElement;\n\n @query('date-filters') dateFilters!: HTMLElement;\n\n @query('ix-icon-button#date-filters-button') dateFiltersButton!: HTMLElement;\n\n @state() private showGroupedView = false;\n\n @state() private showFilters = false;\n\n @state() private showDateFilters = false;\n\n @state() private showMarkAllReadConfirmation = false;\n\n @property({ type: String }) baseApiUrl = '';\n\n @property({ type: String }) localStorageKey = '';\n\n async firstUpdated() {\n // Construct ApiClient form baseApiUrl and localStorageKey\n NotificationsState.baseApiUrl = this.baseApiUrl;\n NotificationsState.localStorageKey = this.localStorageKey;\n NotificationsState.ConstructApiClient();\n }\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener(\n 'account-switched',\n NotificationsState.NewApiClient\n );\n window.addEventListener(\n 'ix-notifications-toggle-drawer',\n this.toggleDrawer\n );\n window.addEventListener('beforeunload', this.handleOnbeforeunload);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.handleOnbeforeunload();\n window.removeEventListener(\n 'account-switched',\n NotificationsState.NewApiClient\n );\n window.removeEventListener(\n 'ix-notifications-toggle-drawer',\n this.toggleDrawer\n );\n window.removeEventListener('beforeunload', this.handleOnbeforeunload);\n }\n\n // Handle browser refresh event\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n handleOnbeforeunload() {\n NotificationsState.clearStoredNotificationsData();\n }\n\n toggleDrawer() {\n NotificationsState.showDrawer = !NotificationsState.showDrawer;\n if (!NotificationsState.showDrawer) {\n this.showFilters = false;\n this.showDateFilters = false;\n }\n }\n\n markAllread() {\n if (NotificationsState.unreadNotificationCount > 0) {\n this.showMarkAllReadConfirmation = true;\n }\n }\n\n private confirmedMarkAllRead(e: CustomEvent<ConfirmationDialogEventDetail>) {\n // Mark All read if Confirmed True\n if (e.detail.returnValue) {\n const filterNotification = this.applyNotificationFilters();\n const unreadItems = filterNotification?.filter(\n item => item.status === NotificationStatus.UNREAD\n );\n\n if (unreadItems.length > 0) {\n let allResultSuccesful = true;\n\n filterNotification?.forEach(item => {\n NotificationsState.setNotificationReadStatus(item.id).then(\n (result: any) => {\n if (allResultSuccesful) allResultSuccesful = result;\n }\n );\n });\n\n const apiResult = {\n State:\n allResultSuccesful === true\n ? ApiCallState.SUCCESS\n : ApiCallState.ERROR,\n Message:\n allResultSuccesful === true\n ? 'Successfully marked all the notifications as read'\n : 'Error while marking the notifications read, Please try again',\n } as ApiCallResult;\n\n this.showResultMessage(apiResult, unreadItems[0].id);\n\n this.requestUpdate();\n }\n }\n\n this.showMarkAllReadConfirmation = false;\n }\n\n // eslint-disable-next-line class-methods-use-this\n private showResultMessage(result: ApiCallResult, id: string) {\n window.dispatchEvent(\n new CustomEvent('add-toast', {\n detail: {\n id,\n content: html` <ix-message-toast\n data-testid=\"notification-read-all-toast\"\n toastId=${id}\n .TMessageToast=${result.State.toLowerCase()}\n forceClose\n >\n ${result.Message}\n </ix-message-toast>`,\n autoClose: 3000,\n durationOut: 3000,\n vertical: 'bottom',\n horizontal: 'center',\n animated: true,\n above: false,\n },\n })\n );\n }\n\n toggleGroupView() {\n this.showGroupedView = !this.showGroupedView;\n }\n\n displayFilters() {\n this.showFilters = !this.showFilters;\n }\n\n /* eslint-disable-next-line */\n applyNotificationFilters() {\n const filteredNotifications = NotificationsState.notifications?.filter(\n (notification: Notification) =>\n (notification.resourceType === NotificationGroups.PLANNED_MAINTENANCE &&\n NotificationsState.notificationFilters.SHOW_PLANNED_MAINTENANCE ===\n true) ||\n (notification.resourceType === NotificationGroups.SERVICE_TICKETS &&\n NotificationsState.notificationFilters.SHOW_SERVICE_TICKETS ===\n true) ||\n (notification.resourceType === NotificationGroups.DCIM_ALERTS &&\n NotificationsState.notificationFilters.SHOW_DCIM_ALERTS === true) ||\n notification.resourceType === NotificationGroups.INCIDENTS\n ); // Always display incidents\n\n // both dates are defined, search within the window\n if (\n NotificationsState.dateFilters.FROM_DATE !== undefined &&\n NotificationsState.dateFilters.TO_DATE !== undefined\n )\n return filteredNotifications.filter(\n notification =>\n differenceInHours(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.FROM_DATE!\n ) >= 0 &&\n differenceInDays(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.TO_DATE!\n ) <= 0\n );\n\n // FROM_DATE is defined, TO_DATE is undefined, return notifications after FROM_DATE\n if (\n NotificationsState.dateFilters.FROM_DATE !== undefined &&\n NotificationsState.dateFilters.TO_DATE === undefined\n )\n return filteredNotifications.filter(\n notification =>\n differenceInHours(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.FROM_DATE!\n ) >= 0\n );\n\n // TO_DATE is defined, FROM_DATE is undefined, return notifications before TO_DATE\n if (\n NotificationsState.dateFilters.FROM_DATE === undefined &&\n NotificationsState.dateFilters.TO_DATE !== undefined\n )\n return filteredNotifications.filter(\n notification =>\n differenceInDays(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.TO_DATE!\n ) <= 0\n );\n\n return filteredNotifications;\n }\n\n displayDateFilters() {\n this.showDateFilters = !this.showDateFilters;\n }\n\n renderGroupedView() {\n const filteredNotifications = this.applyNotificationFilters();\n return html`<div class=\"-mx-4 -mt-2\">\n <grouped-item\n data-testid=\"planned-maintenance-group\"\n groupTitle=\"Planned Maintenance\"\n groupIcon=\"${plannedMaintenance.strings[0]}\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.PLANNED_MAINTENANCE\n )}\n ></grouped-item>\n <grouped-item\n data-testid=\"emergency-repairs-group\"\n groupTitle=\"Emergency Repairs\"\n groupIcon=\"report\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.INCIDENTS\n )}\n ></grouped-item>\n <grouped-item\n data-testid=\"service-ticket-updates-group\"\n groupTitle=\"Service Ticket Updates\"\n groupIcon=\"sync_saved_locally\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.SERVICE_TICKETS\n )}\n ></grouped-item>\n <grouped-item\n data-testid=\"dcim-alerts-group\"\n groupTitle=${NotificationGroups.DCIM_ALERTS}\n groupIcon=\"${dcim.strings[0]}\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.DCIM_ALERTS\n )}\n ></grouped-item>\n </div>`;\n }\n\n renderDefaultView() {\n const filterNotification = this.applyNotificationFilters();\n\n const filterTodayItems = filterNotification.filter(\n notification =>\n differenceInDays(new Date(notification.createdAt), new Date()) === 0\n );\n\n const filterEarlierItems = filterNotification.filter(\n notification =>\n differenceInDays(new Date(notification.createdAt), new Date()) !== 0\n );\n\n if (filterNotification?.length! > 0) {\n return html`\n <h3>Today</h3>\n ${filterTodayItems.length > 0\n ? html`<div class=\"-mx-4\">\n ${filterTodayItems?.map(\n item => html`<notification-item\n ?read=${item.status !== NotificationStatus.UNREAD}\n data-testclass=\"today-notification\"\n .notification=${item}\n ?disabled=${item.resourceType ===\n NotificationGroups.INCIDENTS}\n >\n </notification-item> `\n )}\n </div>`\n : this.renderNoResult()}\n <h3>Earlier</h3>\n ${filterEarlierItems.length > 0\n ? html`<div class=\"-mx-4\">\n ${filterEarlierItems?.map(\n item => html`<notification-item\n ?read=${item.status !== NotificationStatus.UNREAD}\n data-testclass=\"earlier-notification\"\n .notification=${item}\n ?disabled=${item.resourceType ===\n NotificationGroups.INCIDENTS}\n >\n </notification-item> `\n )}\n </div>`\n : this.renderNoResult()}\n `;\n }\n\n return html`<h3>Today</h3>\n ${this.renderNoResult()}`;\n }\n\n /* eslint-disable-next-line */\n renderNoResult() {\n return html`<p class=\"dlr-text-caption my-4\">\n <strong>No notifications yet.</strong>\n </p>`;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n handleCloseClick(_e: CustomEvent<FilterDialogEventDetail>) {\n this.showDateFilters = false;\n this.showFilters = false;\n }\n\n // eslint-disable-next-line\n handleContentScroll(e: CustomEvent) {\n // when scrollbar at the end, retrieve next page\n if (\n e !== null &&\n e.detail.scrollTop + e.detail.clientHeight >= e.detail.scrollHeight - 2\n ) {\n NotificationsState.getNotifications();\n }\n }\n\n manageFilterVisibility(e: Event) {\n const path = e.composedPath();\n if (\n this.showFilters &&\n !path.includes(this.groupFilters) &&\n !path.includes(this.groupFiltersButton)\n ) {\n this.showFilters = false;\n }\n if (\n this.showDateFilters &&\n !path.includes(this.dateFilters) &&\n !path.includes(this.dateFiltersButton)\n ) {\n this.showDateFilters = false;\n }\n }\n\n render() {\n return html`\n <notification-tooltip data-testid=\"notifications-tooltip\">\n </notification-tooltip>\n <confirmation-dialog\n data-testid=\"notifications-confirm-read-dialog\"\n ?open=${this.showMarkAllReadConfirmation}\n @confirm-dialog-closed=${() => {\n this.showMarkAllReadConfirmation = false;\n }}\n @on-confirm-selection=${this.confirmedMarkAllRead}\n textMessage=\"Are you sure you want to mark all notifications as read?\"\n >\n </confirmation-dialog>\n <ix-drawer\n data-testid=\"notifications-drawer\"\n ?isVisible=${NotificationsState.showDrawer}\n .onClosed=${() => this.toggleDrawer()}\n animate-vertical\n hide-close\n @on-content-scroll=${this.handleContentScroll}\n @click=${this.manageFilterVisibility}\n compact\n >\n <div slot=\"content\" class=\"m-4\">\n <div\n class=\"flex flex-row justify-between grow items-center notification-header-container mb-4\"\n >\n <h2\n data-testid=\"notifications-heading\"\n class=\"grow items-center dlr-text-heading\"\n >\n Notifications\n </h2>\n <div\n class=\"flex flex-row justify-end grow items-center options\"\n style=\"--md-icon-button-icon-size: 24px;\"\n >\n <ix-icon-button\n data-testid=\"notifications-cta-all-read\"\n data-testclass=\"notifications-cta\"\n @click=${this.markAllread}\n @mouseover=${(e: any) => {\n // only show the tooltip if the button is active\n if (NotificationsState.unreadNotificationCount > 0) {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Mark All Read', target: e.target },\n })\n );\n }\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n icon=\"markunread_mailbox\"\n class=\"${NotificationsState.unreadNotificationCount <= 0\n ? 'inactive-icon'\n : 'active-icon'}\"\n .disabled=\"${NotificationsState.unreadNotificationCount <= 0}\"\n filledIcon=\"true\"\n ></ix-icon-button>\n <ix-icon-button\n data-testid=\"notifications-cta-sort-type\"\n data-testclass=\"notifications-cta\"\n @click=${this.toggleGroupView}\n @mouseover=${(e: any) => {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Sort by Type', target: e.target },\n })\n );\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n class=\"active-icon\"\n label=\"Sort by Type\"\n >\n <ix-icon slot=\"default\"\n >${this.showGroupedView ? sortCheck : 'sort'}</ix-icon\n >\n </ix-icon-button>\n <ix-icon-button\n data-testid=\"notifications-cta-filter-type\"\n data-testclass=\"notifications-cta\"\n @click=${this.displayFilters}\n @mouseover=${(e: any) => {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Filter by Type', target: e.target },\n })\n );\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n class=\"active-icon\"\n id=\"group-filter-button\"\n label=\"Filter by Type\"\n >\n <ix-icon slot=\"default\"> ${viewList} </ix-icon>\n </ix-icon-button>\n <div\n data-testid=\"notifications-filter-dropdown\"\n class=\"filter-dropdown-content ${this.showFilters\n ? 'active z-50'\n : 'hidden'}\"\n >\n <group-filters></group-filters>\n </div>\n <ix-icon-button\n data-testid=\"notifications-cta-filter-date\"\n data-testclass=\"notifications-cta\"\n @click=${this.displayDateFilters}\n @mouseover=${(e: any) => {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Filter by Date', target: e.target },\n })\n );\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n icon=\"date_range\"\n class=\"active-icon\"\n filledIcon=\"true\"\n id=\"date-filters-button\"\n label=\"Filter by Date\"\n ></ix-icon-button>\n <div\n data-testid=\"notifications-date-filter-dropdown\"\n class=\"datefilter-dropdown-content ${this.showDateFilters\n ? 'active z-50'\n : 'hidden'}\"\n @on-selection=${this.handleCloseClick}\n >\n <date-filters></date-filters>\n </div>\n </div>\n </div>\n ${this.showGroupedView\n ? this.renderGroupedView()\n : this.renderDefaultView()}\n </div>\n </ix-drawer>\n `;\n }\n}\n"]}
1
+ {"version":3,"file":"IxNotifications.js","sourceRoot":"","sources":["../../src/IxNotifications.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,IAAI,EACJ,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,wCAAwC,CAAC;AAChD,OAAO,wCAAwC,CAAC;AAChD,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAMlE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,iDAAiD,CAAC;AACzD,OAAO,4CAA4C,CAAC;AACpD,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AACpD,OAAO,mDAAmD,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,oDAAoD,CAAC;AAG5D,MAAM,OAAO,eAAgB,SAAQ,cAAc;IAAnD;;QAWmB,oBAAe,GAAG,KAAK,CAAC;QAExB,gBAAW,GAAG,KAAK,CAAC;QAEpB,oBAAe,GAAG,KAAK,CAAC;QAExB,gCAA2B,GAAG,KAAK,CAAC;QA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IAAI,CAAC,iBAAiB,EAAE;;;KAGjC,CAAC;IACJ,CAAC;;AAzeM,sBAAM,GAAG,CAAC,QAAQ,EAAE,kBAAkB,CAAC,AAAjC,CAAkC;AAEvB;IAAvB,KAAK,CAAC,eAAe,CAAC;qDAA4B;AAEN;IAA5C,KAAK,CAAC,oCAAoC,CAAC;2DAAkC;AAEvD;IAAtB,KAAK,CAAC,cAAc,CAAC;oDAA2B;AAEJ;IAA5C,KAAK,CAAC,oCAAoC,CAAC;0DAAiC;AAE5D;IAAhB,KAAK,EAAE;wDAAiC;AAExB;IAAhB,KAAK,EAAE;oDAA6B;AAEpB;IAAhB,KAAK,EAAE;wDAAiC;AAExB;IAAhB,KAAK,EAAE;oEAA6C;AAEzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAiB;AAEhB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAsB","sourcesContent":["import { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { MobxLitElement } from '@adobe/lit-mobx';\nimport { differenceInDays } from 'date-fns/differenceInDays.js';\nimport { differenceInHours } from 'date-fns/differenceInHours.js';\nimport {\n plannedMaintenance,\n viewList,\n dcim,\n sortCheck,\n} from './assets/iconset.js';\nimport { TWStyles } from './tw.js';\nimport '@digital-realty/ix-button/ix-button.js';\nimport '@digital-realty/ix-drawer/ix-drawer.js';\nimport '@digital-realty/ix-icon';\nimport '@material/web/icon/icon.js';\nimport { NotificationsState } from './state/NotificationState.js';\nimport { ApiCallResult, Notification } from './models/notification.js';\nimport {\n ConfirmationDialogEventDetail,\n FilterDialogEventDetail,\n} from './constants/notification-types.js';\nimport {\n ApiCallState,\n NotificationGroups,\n NotificationStatus,\n} from './constants/notifications.js';\nimport './components/notifications/notification-item.js';\nimport './components/notifications/grouped-item.js';\nimport './components/notifications/group-filters.js';\nimport './components/notifications/date-filters.js';\nimport './components/notifications/confirmation-dialog.js';\nimport { NotificationsStyle } from './styles/notifications-style.js';\nimport './components/notifications/notification-tooltip.js';\nimport { NotificationBulkPatchResult } from './api/notifications-api/index.js';\n\nexport class IxNotifications extends MobxLitElement {\n static styles = [TWStyles, NotificationsStyle];\n\n @query('group-filters') groupFilters!: HTMLElement;\n\n @query('ix-icon-button#group-filter-button') groupFiltersButton!: HTMLElement;\n\n @query('date-filters') dateFilters!: HTMLElement;\n\n @query('ix-icon-button#date-filters-button') dateFiltersButton!: HTMLElement;\n\n @state() private showGroupedView = false;\n\n @state() private showFilters = false;\n\n @state() private showDateFilters = false;\n\n @state() private showMarkAllReadConfirmation = false;\n\n @property({ type: String }) baseApiUrl = '';\n\n @property({ type: String }) localStorageKey = '';\n\n async firstUpdated() {\n // Construct ApiClient form baseApiUrl and localStorageKey\n NotificationsState.baseApiUrl = this.baseApiUrl;\n NotificationsState.localStorageKey = this.localStorageKey;\n NotificationsState.ConstructApiClient();\n }\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener(\n 'account-switched',\n NotificationsState.NewApiClient\n );\n window.addEventListener(\n 'ix-notifications-toggle-drawer',\n this.toggleDrawer\n );\n window.addEventListener('beforeunload', this.handleOnbeforeunload);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.handleOnbeforeunload();\n window.removeEventListener(\n 'account-switched',\n NotificationsState.NewApiClient\n );\n window.removeEventListener(\n 'ix-notifications-toggle-drawer',\n this.toggleDrawer\n );\n window.removeEventListener('beforeunload', this.handleOnbeforeunload);\n }\n\n // Handle browser refresh event\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n handleOnbeforeunload() {\n NotificationsState.clearStoredNotificationsData();\n }\n\n toggleDrawer() {\n NotificationsState.showDrawer = !NotificationsState.showDrawer;\n if (!NotificationsState.showDrawer) {\n this.showFilters = false;\n this.showDateFilters = false;\n }\n }\n\n markAllread() {\n if (NotificationsState.unreadNotificationCount > 0) {\n this.showMarkAllReadConfirmation = true;\n }\n }\n\n private async confirmedMarkAllRead(\n e: CustomEvent<ConfirmationDialogEventDetail>\n ) {\n // Mark All read if Confirmed True\n if (e.detail.returnValue) {\n try {\n const result = await NotificationsState.setAllNotificationAsRead();\n this.showResultMessage(\n {\n State: ApiCallState.SUCCESS,\n Message: `Successfully marked ${\n (result as NotificationBulkPatchResult).updatedCount\n } notifications as read`,\n },\n 'all-read'\n );\n } catch {\n this.showResultMessage(\n {\n State: ApiCallState.ERROR,\n Message:\n 'Error while marking the notifications read, Please try again',\n },\n 'all-read'\n );\n }\n this.requestUpdate();\n }\n this.showMarkAllReadConfirmation = false;\n }\n\n // eslint-disable-next-line class-methods-use-this\n private showResultMessage(result: ApiCallResult, id: string) {\n window.dispatchEvent(\n new CustomEvent('add-toast', {\n detail: {\n id,\n content: html` <ix-message-toast\n data-testid=\"notification-read-all-toast\"\n toastId=${id}\n .TMessageToast=${result.State.toLowerCase()}\n forceClose\n >\n ${result.Message}\n </ix-message-toast>`,\n autoClose: 3000,\n durationOut: 3000,\n vertical: 'bottom',\n horizontal: 'center',\n animated: true,\n above: false,\n },\n })\n );\n }\n\n toggleGroupView() {\n this.showGroupedView = !this.showGroupedView;\n }\n\n displayFilters() {\n this.showFilters = !this.showFilters;\n }\n\n /* eslint-disable-next-line */\n applyNotificationFilters() {\n const filteredNotifications = NotificationsState.notifications?.filter(\n (notification: Notification) =>\n (notification.resourceType === NotificationGroups.PLANNED_MAINTENANCE &&\n NotificationsState.notificationFilters.SHOW_PLANNED_MAINTENANCE ===\n true) ||\n (notification.resourceType === NotificationGroups.SERVICE_TICKETS &&\n NotificationsState.notificationFilters.SHOW_SERVICE_TICKETS ===\n true) ||\n (notification.resourceType === NotificationGroups.DCIM_ALERTS &&\n NotificationsState.notificationFilters.SHOW_DCIM_ALERTS === true) ||\n notification.resourceType === NotificationGroups.INCIDENTS\n ); // Always display incidents\n\n // both dates are defined, search within the window\n if (\n NotificationsState.dateFilters.FROM_DATE !== undefined &&\n NotificationsState.dateFilters.TO_DATE !== undefined\n )\n return filteredNotifications.filter(\n notification =>\n differenceInHours(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.FROM_DATE!\n ) >= 0 &&\n differenceInDays(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.TO_DATE!\n ) <= 0\n );\n\n // FROM_DATE is defined, TO_DATE is undefined, return notifications after FROM_DATE\n if (\n NotificationsState.dateFilters.FROM_DATE !== undefined &&\n NotificationsState.dateFilters.TO_DATE === undefined\n )\n return filteredNotifications.filter(\n notification =>\n differenceInHours(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.FROM_DATE!\n ) >= 0\n );\n\n // TO_DATE is defined, FROM_DATE is undefined, return notifications before TO_DATE\n if (\n NotificationsState.dateFilters.FROM_DATE === undefined &&\n NotificationsState.dateFilters.TO_DATE !== undefined\n )\n return filteredNotifications.filter(\n notification =>\n differenceInDays(\n new Date(notification.createdAt),\n NotificationsState.dateFilters.TO_DATE!\n ) <= 0\n );\n\n return filteredNotifications;\n }\n\n displayDateFilters() {\n this.showDateFilters = !this.showDateFilters;\n }\n\n renderGroupedView() {\n const filteredNotifications = this.applyNotificationFilters();\n return html`<div class=\"-mx-4 -mt-2\">\n <grouped-item\n data-testid=\"planned-maintenance-group\"\n groupTitle=\"Planned Maintenance\"\n groupIcon=\"${plannedMaintenance.strings[0]}\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.PLANNED_MAINTENANCE\n )}\n ></grouped-item>\n <grouped-item\n data-testid=\"emergency-repairs-group\"\n groupTitle=\"Emergency Repairs\"\n groupIcon=\"report\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.INCIDENTS\n )}\n ></grouped-item>\n <grouped-item\n data-testid=\"service-ticket-updates-group\"\n groupTitle=\"Service Ticket Updates\"\n groupIcon=\"sync_saved_locally\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.SERVICE_TICKETS\n )}\n ></grouped-item>\n <grouped-item\n data-testid=\"dcim-alerts-group\"\n groupTitle=${NotificationGroups.DCIM_ALERTS}\n groupIcon=\"${dcim.strings[0]}\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.DCIM_ALERTS\n )}\n ></grouped-item>\n </div>`;\n }\n\n renderDefaultView() {\n const filterNotification = this.applyNotificationFilters();\n\n const filterTodayItems = filterNotification.filter(\n notification =>\n differenceInDays(new Date(notification.createdAt), new Date()) === 0\n );\n\n const filterEarlierItems = filterNotification.filter(\n notification =>\n differenceInDays(new Date(notification.createdAt), new Date()) !== 0\n );\n\n if (filterNotification?.length! > 0) {\n return html`\n <h3>Today</h3>\n ${filterTodayItems.length > 0\n ? html`<div class=\"-mx-4\">\n ${filterTodayItems?.map(\n item => html`<notification-item\n ?read=${item.status !== NotificationStatus.UNREAD}\n data-testclass=\"today-notification\"\n .notification=${item}\n ?disabled=${item.resourceType ===\n NotificationGroups.INCIDENTS}\n >\n </notification-item> `\n )}\n </div>`\n : this.renderNoResult()}\n <h3>Earlier</h3>\n ${filterEarlierItems.length > 0\n ? html`<div class=\"-mx-4\">\n ${filterEarlierItems?.map(\n item => html`<notification-item\n ?read=${item.status !== NotificationStatus.UNREAD}\n data-testclass=\"earlier-notification\"\n .notification=${item}\n ?disabled=${item.resourceType ===\n NotificationGroups.INCIDENTS}\n >\n </notification-item> `\n )}\n </div>`\n : this.renderNoResult()}\n `;\n }\n\n return html`<h3>Today</h3>\n ${this.renderNoResult()}`;\n }\n\n /* eslint-disable-next-line */\n renderNoResult() {\n return html`<p class=\"dlr-text-caption my-4\">\n <strong>No notifications yet.</strong>\n </p>`;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n handleCloseClick(_e: CustomEvent<FilterDialogEventDetail>) {\n this.showDateFilters = false;\n this.showFilters = false;\n }\n\n // eslint-disable-next-line\n handleContentScroll(e: CustomEvent) {\n // when scrollbar at the end, retrieve next page\n if (\n e !== null &&\n e.detail.scrollTop + e.detail.clientHeight >= e.detail.scrollHeight - 2\n ) {\n NotificationsState.getNotifications();\n }\n }\n\n manageFilterVisibility(e: Event) {\n const path = e.composedPath();\n if (\n this.showFilters &&\n !path.includes(this.groupFilters) &&\n !path.includes(this.groupFiltersButton)\n ) {\n this.showFilters = false;\n }\n if (\n this.showDateFilters &&\n !path.includes(this.dateFilters) &&\n !path.includes(this.dateFiltersButton)\n ) {\n this.showDateFilters = false;\n }\n }\n\n render() {\n return html`\n <notification-tooltip data-testid=\"notifications-tooltip\">\n </notification-tooltip>\n <confirmation-dialog\n data-testid=\"notifications-confirm-read-dialog\"\n ?open=${this.showMarkAllReadConfirmation}\n @confirm-dialog-closed=${() => {\n this.showMarkAllReadConfirmation = false;\n }}\n @on-confirm-selection=${this.confirmedMarkAllRead}\n textMessage=\"Are you sure you want to mark all notifications as read?\"\n >\n </confirmation-dialog>\n <ix-drawer\n data-testid=\"notifications-drawer\"\n ?isVisible=${NotificationsState.showDrawer}\n .onClosed=${() => this.toggleDrawer()}\n animate-vertical\n hide-close\n @on-content-scroll=${this.handleContentScroll}\n @click=${this.manageFilterVisibility}\n compact\n >\n <div slot=\"content\" class=\"m-4\">\n <div\n class=\"flex flex-row justify-between grow items-center notification-header-container mb-4\"\n >\n <h2\n data-testid=\"notifications-heading\"\n class=\"grow items-center dlr-text-heading\"\n >\n Notifications\n </h2>\n <div\n class=\"flex flex-row justify-end grow items-center options\"\n style=\"--md-icon-button-icon-size: 24px;\"\n >\n <ix-icon-button\n data-testid=\"notifications-cta-all-read\"\n data-testclass=\"notifications-cta\"\n @click=${this.markAllread}\n @mouseover=${(e: any) => {\n // only show the tooltip if the button is active\n if (NotificationsState.unreadNotificationCount > 0) {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Mark All Read', target: e.target },\n })\n );\n }\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n icon=\"markunread_mailbox\"\n class=\"${NotificationsState.unreadNotificationCount <= 0\n ? 'inactive-icon'\n : 'active-icon'}\"\n .disabled=\"${NotificationsState.unreadNotificationCount <= 0}\"\n filledIcon=\"true\"\n ></ix-icon-button>\n <ix-icon-button\n data-testid=\"notifications-cta-sort-type\"\n data-testclass=\"notifications-cta\"\n @click=${this.toggleGroupView}\n @mouseover=${(e: any) => {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Sort by Type', target: e.target },\n })\n );\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n class=\"active-icon\"\n label=\"Sort by Type\"\n >\n <ix-icon slot=\"default\"\n >${this.showGroupedView ? sortCheck : 'sort'}</ix-icon\n >\n </ix-icon-button>\n <ix-icon-button\n data-testid=\"notifications-cta-filter-type\"\n data-testclass=\"notifications-cta\"\n @click=${this.displayFilters}\n @mouseover=${(e: any) => {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Filter by Type', target: e.target },\n })\n );\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n class=\"active-icon\"\n id=\"group-filter-button\"\n label=\"Filter by Type\"\n >\n <ix-icon slot=\"default\"> ${viewList} </ix-icon>\n </ix-icon-button>\n <div\n data-testid=\"notifications-filter-dropdown\"\n class=\"filter-dropdown-content ${this.showFilters\n ? 'active z-50'\n : 'hidden'}\"\n >\n <group-filters></group-filters>\n </div>\n <ix-icon-button\n data-testid=\"notifications-cta-filter-date\"\n data-testclass=\"notifications-cta\"\n @click=${this.displayDateFilters}\n @mouseover=${(e: any) => {\n window.dispatchEvent(\n new CustomEvent('show-notification-tooltip', {\n detail: { label: 'Filter by Date', target: e.target },\n })\n );\n }}\n @mouseout=${() =>\n window.dispatchEvent(\n new CustomEvent('hide-notification-tooltip')\n )}\n icon=\"date_range\"\n class=\"active-icon\"\n filledIcon=\"true\"\n id=\"date-filters-button\"\n label=\"Filter by Date\"\n ></ix-icon-button>\n <div\n data-testid=\"notifications-date-filter-dropdown\"\n class=\"datefilter-dropdown-content ${this.showDateFilters\n ? 'active z-50'\n : 'hidden'}\"\n @on-selection=${this.handleCloseClick}\n >\n <date-filters></date-filters>\n </div>\n </div>\n </div>\n ${this.showGroupedView\n ? this.renderGroupedView()\n : this.renderDefaultView()}\n </div>\n </ix-drawer>\n `;\n }\n}\n"]}
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import * as runtime from '../runtime';
13
- import type { GetNotifications200Response, Notification, NotificationPatch, NotificationRequest, Status } from '../models/index';
12
+ import * as runtime from '../runtime.js';
13
+ import type { GetNotifications200Response, Notification, NotificationBulkPatch, NotificationBulkPatchResult, NotificationDelete, NotificationPatch, NotificationRequest, Status } from '../models/index.js';
14
14
  export interface CreateNotificationRequest {
15
15
  notificationRequest?: NotificationRequest;
16
16
  }
@@ -32,6 +32,9 @@ export interface GetNotificationsRequest {
32
32
  export interface GetNotificationsByIdRequest {
33
33
  id: string;
34
34
  }
35
+ export interface PatchNotificationsRequest {
36
+ notificationBulkPatch: NotificationBulkPatch;
37
+ }
35
38
  export interface PatchNotificationsByIdRequest {
36
39
  id: string;
37
40
  notificationPatch?: NotificationPatch;
@@ -51,11 +54,11 @@ export declare class NotificationsApi extends runtime.BaseAPI {
51
54
  /**
52
55
  * Delete a notification by id
53
56
  */
54
- deleteNotificationsByIdRaw(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
57
+ deleteNotificationsByIdRaw(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationDelete>>;
55
58
  /**
56
59
  * Delete a notification by id
57
60
  */
58
- deleteNotificationsById(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
61
+ deleteNotificationsById(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationDelete>;
59
62
  /**
60
63
  * Get all notifications
61
64
  */
@@ -72,6 +75,14 @@ export declare class NotificationsApi extends runtime.BaseAPI {
72
75
  * Get an notification by id
73
76
  */
74
77
  getNotificationsById(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification>;
78
+ /**
79
+ * Bulk update notifications for the authenticated user (by email and permitted account numbers)
80
+ */
81
+ patchNotificationsRaw(requestParameters: PatchNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationBulkPatchResult>>;
82
+ /**
83
+ * Bulk update notifications for the authenticated user (by email and permitted account numbers)
84
+ */
85
+ patchNotifications(requestParameters: PatchNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationBulkPatchResult>;
75
86
  /**
76
87
  * Update specific fields on a notification by id
77
88
  */
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import * as runtime from '../runtime';
15
- import { GetNotifications200ResponseFromJSON, NotificationFromJSON, NotificationPatchFromJSON, NotificationPatchToJSON, NotificationRequestToJSON, } from '../models/index';
14
+ import * as runtime from '../runtime.js';
15
+ import { GetNotifications200ResponseFromJSON, NotificationFromJSON, NotificationBulkPatchToJSON, NotificationBulkPatchResultFromJSON, NotificationDeleteFromJSON, NotificationPatchFromJSON, NotificationPatchToJSON, NotificationRequestToJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
@@ -69,13 +69,14 @@ export class NotificationsApi extends runtime.BaseAPI {
69
69
  headers: headerParameters,
70
70
  query: queryParameters,
71
71
  }, initOverrides);
72
- return new runtime.VoidApiResponse(response);
72
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationDeleteFromJSON(jsonValue));
73
73
  }
74
74
  /**
75
75
  * Delete a notification by id
76
76
  */
77
77
  async deleteNotificationsById(requestParameters, initOverrides) {
78
- await this.deleteNotificationsByIdRaw(requestParameters, initOverrides);
78
+ const response = await this.deleteNotificationsByIdRaw(requestParameters, initOverrides);
79
+ return await response.value();
79
80
  }
80
81
  /**
81
82
  * Get all notifications
@@ -166,6 +167,39 @@ export class NotificationsApi extends runtime.BaseAPI {
166
167
  const response = await this.getNotificationsByIdRaw(requestParameters, initOverrides);
167
168
  return await response.value();
168
169
  }
170
+ /**
171
+ * Bulk update notifications for the authenticated user (by email and permitted account numbers)
172
+ */
173
+ async patchNotificationsRaw(requestParameters, initOverrides) {
174
+ if (requestParameters.notificationBulkPatch === null || requestParameters.notificationBulkPatch === undefined) {
175
+ throw new runtime.RequiredError('notificationBulkPatch', 'Required parameter requestParameters.notificationBulkPatch was null or undefined when calling patchNotifications.');
176
+ }
177
+ const queryParameters = {};
178
+ const headerParameters = {};
179
+ headerParameters['Content-Type'] = 'application/json';
180
+ if (this.configuration && this.configuration.accessToken) {
181
+ const token = this.configuration.accessToken;
182
+ const tokenString = await token("bearerToken", []);
183
+ if (tokenString) {
184
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
185
+ }
186
+ }
187
+ const response = await this.request({
188
+ path: `/notifications`,
189
+ method: 'PATCH',
190
+ headers: headerParameters,
191
+ query: queryParameters,
192
+ body: NotificationBulkPatchToJSON(requestParameters.notificationBulkPatch),
193
+ }, initOverrides);
194
+ return new runtime.JSONApiResponse(response, (jsonValue) => NotificationBulkPatchResultFromJSON(jsonValue));
195
+ }
196
+ /**
197
+ * Bulk update notifications for the authenticated user (by email and permitted account numbers)
198
+ */
199
+ async patchNotifications(requestParameters, initOverrides) {
200
+ const response = await this.patchNotificationsRaw(requestParameters, initOverrides);
201
+ return await response.value();
202
+ }
169
203
  /**
170
204
  * Update specific fields on a notification by id
171
205
  */
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationsApi.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/apis/NotificationsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AAC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C,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAAgD,EAAE,aAA0D;QACrI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACxF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n ErrorResponse,\n GetNotifications200Response,\n Notification,\n NotificationPatch,\n NotificationRequest,\n Status,\n} from '../models/index';\nimport {\n ErrorResponseFromJSON,\n ErrorResponseToJSON,\n GetNotifications200ResponseFromJSON,\n GetNotifications200ResponseToJSON,\n NotificationFromJSON,\n NotificationToJSON,\n NotificationPatchFromJSON,\n NotificationPatchToJSON,\n NotificationRequestFromJSON,\n NotificationRequestToJSON,\n StatusFromJSON,\n StatusToJSON,\n} from '../models/index';\n\nexport interface CreateNotificationRequest {\n notificationRequest?: NotificationRequest;\n}\n\nexport interface DeleteNotificationsByIdRequest {\n id: string;\n}\n\nexport interface GetNotificationsRequest {\n sort?: string;\n cursor?: string;\n resourceType?: string;\n accountNumber?: string;\n createdAfter?: Date;\n createdBefore?: Date;\n locationId?: string;\n subGroup?: string;\n status?: Status;\n prefer?: Array<string>;\n}\n\nexport interface GetNotificationsByIdRequest {\n id: string;\n}\n\nexport interface PatchNotificationsByIdRequest {\n id: string;\n notificationPatch?: NotificationPatch;\n}\n\n/**\n * \n */\nexport class NotificationsApi extends runtime.BaseAPI {\n\n /**\n * Submit notification to be sent to user\n */\n async createNotificationRaw(requestParameters: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationRequestToJSON(requestParameters.notificationRequest),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));\n }\n\n /**\n * Submit notification to be sent to user\n */\n async createNotification(requestParameters: CreateNotificationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {\n const response = await this.createNotificationRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Delete a notification by id\n */\n async deleteNotificationsByIdRaw(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.VoidApiResponse(response);\n }\n\n /**\n * Delete a notification by id\n */\n async deleteNotificationsById(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {\n await this.deleteNotificationsByIdRaw(requestParameters, initOverrides);\n }\n\n /**\n * Get all notifications\n */\n async getNotificationsRaw(requestParameters: GetNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetNotifications200Response>> {\n const queryParameters: any = {};\n\n if (requestParameters.sort !== undefined) {\n queryParameters['sort'] = requestParameters.sort;\n }\n\n if (requestParameters.cursor !== undefined) {\n queryParameters['cursor'] = requestParameters.cursor;\n }\n\n if (requestParameters.resourceType !== undefined) {\n queryParameters['resource_type'] = requestParameters.resourceType;\n }\n\n if (requestParameters.accountNumber !== undefined) {\n queryParameters['account_number'] = requestParameters.accountNumber;\n }\n\n if (requestParameters.createdAfter !== undefined) {\n queryParameters['created_after'] = (requestParameters.createdAfter as any).toISOString();\n }\n\n if (requestParameters.createdBefore !== undefined) {\n queryParameters['created_before'] = (requestParameters.createdBefore as any).toISOString();\n }\n\n if (requestParameters.locationId !== undefined) {\n queryParameters['location_id'] = requestParameters.locationId;\n }\n\n if (requestParameters.subGroup !== undefined) {\n queryParameters['sub_group'] = requestParameters.subGroup;\n }\n\n if (requestParameters.status !== undefined) {\n queryParameters['status'] = requestParameters.status;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (requestParameters.prefer) {\n headerParameters['Prefer'] = requestParameters.prefer.join(runtime.COLLECTION_FORMATS[\"csv\"]);\n }\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => GetNotifications200ResponseFromJSON(jsonValue));\n }\n\n /**\n * Get all notifications\n */\n async getNotifications(requestParameters: GetNotificationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetNotifications200Response> {\n const response = await this.getNotificationsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get an notification by id\n */\n async getNotificationsByIdRaw(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));\n }\n\n /**\n * Get an notification by id\n */\n async getNotificationsById(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {\n const response = await this.getNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Update specific fields on a notification by id\n */\n async patchNotificationsByIdRaw(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPatch>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling patchNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationPatchToJSON(requestParameters.notificationPatch),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPatchFromJSON(jsonValue));\n }\n\n /**\n * Update specific fields on a notification by id\n */\n async patchNotificationsById(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPatch> {\n const response = await this.patchNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n"]}
1
+ {"version":3,"file":"NotificationsApi.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/apis/NotificationsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AAYzC,OAAO,EAGH,mCAAmC,EAEnC,oBAAoB,EAGpB,2BAA2B,EAC3B,mCAAmC,EAEnC,0BAA0B,EAE1B,yBAAyB,EACzB,uBAAuB,EAEvB,yBAAyB,GAG5B,MAAM,oBAAoB,CAAC;AAoC5B;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO,CAAC,OAAO;IAEjD;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,iBAA4C,EAAE,aAA0D;QAChI,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CA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\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime.js';\nimport type {\n ErrorResponse,\n GetNotifications200Response,\n Notification,\n NotificationBulkPatch,\n NotificationBulkPatchResult,\n NotificationDelete,\n NotificationPatch,\n NotificationRequest,\n Status,\n} from '../models/index.js';\nimport {\n ErrorResponseFromJSON,\n ErrorResponseToJSON,\n GetNotifications200ResponseFromJSON,\n GetNotifications200ResponseToJSON,\n NotificationFromJSON,\n NotificationToJSON,\n NotificationBulkPatchFromJSON,\n NotificationBulkPatchToJSON,\n NotificationBulkPatchResultFromJSON,\n NotificationBulkPatchResultToJSON,\n NotificationDeleteFromJSON,\n NotificationDeleteToJSON,\n NotificationPatchFromJSON,\n NotificationPatchToJSON,\n NotificationRequestFromJSON,\n NotificationRequestToJSON,\n StatusFromJSON,\n StatusToJSON,\n} from '../models/index.js';\n\nexport interface CreateNotificationRequest {\n notificationRequest?: NotificationRequest;\n}\n\nexport interface DeleteNotificationsByIdRequest {\n id: string;\n}\n\nexport interface GetNotificationsRequest {\n sort?: string;\n cursor?: string;\n resourceType?: string;\n accountNumber?: string;\n createdAfter?: Date;\n createdBefore?: Date;\n locationId?: string;\n subGroup?: string;\n status?: Status;\n prefer?: Array<string>;\n}\n\nexport interface GetNotificationsByIdRequest {\n id: string;\n}\n\nexport interface PatchNotificationsRequest {\n notificationBulkPatch: NotificationBulkPatch;\n}\n\nexport interface PatchNotificationsByIdRequest {\n id: string;\n notificationPatch?: NotificationPatch;\n}\n\n/**\n * \n */\nexport class NotificationsApi extends runtime.BaseAPI {\n\n /**\n * Submit notification to be sent to user\n */\n async createNotificationRaw(requestParameters: CreateNotificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationRequestToJSON(requestParameters.notificationRequest),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));\n }\n\n /**\n * Submit notification to be sent to user\n */\n async createNotification(requestParameters: CreateNotificationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {\n const response = await this.createNotificationRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Delete a notification by id\n */\n async deleteNotificationsByIdRaw(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationDelete>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationDeleteFromJSON(jsonValue));\n }\n\n /**\n * Delete a notification by id\n */\n async deleteNotificationsById(requestParameters: DeleteNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationDelete> {\n const response = await this.deleteNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get all notifications\n */\n async getNotificationsRaw(requestParameters: GetNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetNotifications200Response>> {\n const queryParameters: any = {};\n\n if (requestParameters.sort !== undefined) {\n queryParameters['sort'] = requestParameters.sort;\n }\n\n if (requestParameters.cursor !== undefined) {\n queryParameters['cursor'] = requestParameters.cursor;\n }\n\n if (requestParameters.resourceType !== undefined) {\n queryParameters['resource_type'] = requestParameters.resourceType;\n }\n\n if (requestParameters.accountNumber !== undefined) {\n queryParameters['account_number'] = requestParameters.accountNumber;\n }\n\n if (requestParameters.createdAfter !== undefined) {\n queryParameters['created_after'] = (requestParameters.createdAfter as any).toISOString();\n }\n\n if (requestParameters.createdBefore !== undefined) {\n queryParameters['created_before'] = (requestParameters.createdBefore as any).toISOString();\n }\n\n if (requestParameters.locationId !== undefined) {\n queryParameters['location_id'] = requestParameters.locationId;\n }\n\n if (requestParameters.subGroup !== undefined) {\n queryParameters['sub_group'] = requestParameters.subGroup;\n }\n\n if (requestParameters.status !== undefined) {\n queryParameters['status'] = requestParameters.status;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (requestParameters.prefer) {\n headerParameters['Prefer'] = requestParameters.prefer.join(runtime.COLLECTION_FORMATS[\"csv\"]);\n }\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => GetNotifications200ResponseFromJSON(jsonValue));\n }\n\n /**\n * Get all notifications\n */\n async getNotifications(requestParameters: GetNotificationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetNotifications200Response> {\n const response = await this.getNotificationsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get an notification by id\n */\n async getNotificationsByIdRaw(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Notification>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationFromJSON(jsonValue));\n }\n\n /**\n * Get an notification by id\n */\n async getNotificationsById(requestParameters: GetNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Notification> {\n const response = await this.getNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Bulk update notifications for the authenticated user (by email and permitted account numbers)\n */\n async patchNotificationsRaw(requestParameters: PatchNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationBulkPatchResult>> {\n if (requestParameters.notificationBulkPatch === null || requestParameters.notificationBulkPatch === undefined) {\n throw new runtime.RequiredError('notificationBulkPatch','Required parameter requestParameters.notificationBulkPatch was null or undefined when calling patchNotifications.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications`,\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationBulkPatchToJSON(requestParameters.notificationBulkPatch),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationBulkPatchResultFromJSON(jsonValue));\n }\n\n /**\n * Bulk update notifications for the authenticated user (by email and permitted account numbers)\n */\n async patchNotifications(requestParameters: PatchNotificationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationBulkPatchResult> {\n const response = await this.patchNotificationsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Update specific fields on a notification by id\n */\n async patchNotificationsByIdRaw(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPatch>> {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling patchNotificationsById.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = await token(\"bearerToken\", []);\n\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = await this.request({\n path: `/notifications/{id}`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: NotificationPatchToJSON(requestParameters.notificationPatch),\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPatchFromJSON(jsonValue));\n }\n\n /**\n * Update specific fields on a notification by id\n */\n async patchNotificationsById(requestParameters: PatchNotificationsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPatch> {\n const response = await this.patchNotificationsByIdRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n"]}
@@ -1 +1 @@
1
- export * from './NotificationsApi';
1
+ export * from './NotificationsApi.js';
@@ -1,4 +1,4 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './NotificationsApi';
3
+ export * from './NotificationsApi.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,oBAAoB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './NotificationsApi';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/apis/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,uBAAuB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './NotificationsApi.js';\n"]}
@@ -1,3 +1,3 @@
1
- export * from './runtime';
2
- export * from './apis/index';
3
- export * from './models/index';
1
+ export * from './runtime.js';
2
+ export * from './apis/index.js';
3
+ export * from './models/index.js';
@@ -1,6 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './runtime';
4
- export * from './apis/index';
5
- export * from './models/index';
3
+ export * from './runtime.js';
4
+ export * from './apis/index.js';
5
+ export * from './models/index.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './runtime';\nexport * from './apis/index';\nexport * from './models/index';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\nexport * from './runtime.js';\nexport * from './apis/index.js';\nexport * from './models/index.js';\n"]}
@@ -11,7 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { exists } from '../runtime';
14
+ import { exists } from '../runtime.js';
15
15
  /**
16
16
  * Check if a given object implements the ErrorResponse interface.
17
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/models/ErrorResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAuC/C;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACjD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAA4B;IAC5D,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\n/**\n * Error Response.\n * @export\n * @interface ErrorResponse\n */\nexport interface ErrorResponse {\n /**\n * A human-readable explanation specific to this occurrence of the problem.\n * @type {string}\n * @memberof ErrorResponse\n */\n detail?: string;\n /**\n * A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.\n * @type {string}\n * @memberof ErrorResponse\n */\n instance?: string;\n /**\n * The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.\n * @type {number}\n * @memberof ErrorResponse\n */\n status?: number;\n /**\n * A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).\n * @type {string}\n * @memberof ErrorResponse\n */\n title?: string;\n /**\n * A URI reference (see RFC3986) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be \"about:blank\".\n * @type {string}\n * @memberof ErrorResponse\n */\n type?: string;\n}\n\n/**\n * Check if a given object implements the ErrorResponse interface.\n */\nexport function instanceOfErrorResponse(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function ErrorResponseFromJSON(json: any): ErrorResponse {\n return ErrorResponseFromJSONTyped(json, false);\n}\n\nexport function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'detail': !exists(json, 'detail') ? undefined : json['detail'],\n 'instance': !exists(json, 'instance') ? undefined : json['instance'],\n 'status': !exists(json, 'status') ? undefined : json['status'],\n 'title': !exists(json, 'title') ? undefined : json['title'],\n 'type': !exists(json, 'type') ? undefined : json['type'],\n };\n}\n\nexport function ErrorResponseToJSON(value?: ErrorResponse | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'detail': value.detail,\n 'instance': value.instance,\n 'status': value.status,\n 'title': value.title,\n 'type': value.type,\n };\n}\n\n"]}
1
+ {"version":3,"file":"ErrorResponse.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/models/ErrorResponse.ts"],"names":[],"mappings":"AA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,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;KACrB,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime.js';\n/**\n * Error Response.\n * @export\n * @interface ErrorResponse\n */\nexport interface ErrorResponse {\n /**\n * A human-readable explanation specific to this occurrence of the problem.\n * @type {string}\n * @memberof ErrorResponse\n */\n detail?: string;\n /**\n * A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.\n * @type {string}\n * @memberof ErrorResponse\n */\n instance?: string;\n /**\n * The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.\n * @type {number}\n * @memberof ErrorResponse\n */\n status?: number;\n /**\n * A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).\n * @type {string}\n * @memberof ErrorResponse\n */\n title?: string;\n /**\n * A URI reference (see RFC3986) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be \"about:blank\".\n * @type {string}\n * @memberof ErrorResponse\n */\n type?: string;\n}\n\n/**\n * Check if a given object implements the ErrorResponse interface.\n */\nexport function instanceOfErrorResponse(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function ErrorResponseFromJSON(json: any): ErrorResponse {\n return ErrorResponseFromJSONTyped(json, false);\n}\n\nexport function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'detail': !exists(json, 'detail') ? undefined : json['detail'],\n 'instance': !exists(json, 'instance') ? undefined : json['instance'],\n 'status': !exists(json, 'status') ? undefined : json['status'],\n 'title': !exists(json, 'title') ? undefined : json['title'],\n 'type': !exists(json, 'type') ? undefined : json['type'],\n };\n}\n\nexport function ErrorResponseToJSON(value?: ErrorResponse | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'detail': value.detail,\n 'instance': value.instance,\n 'status': value.status,\n 'title': value.title,\n 'type': value.type,\n };\n}\n\n"]}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Notification } from './Notification';
12
+ import type { Notification } from './Notification.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { exists } from '../runtime';
15
- import { NotificationFromJSON, NotificationToJSON, } from './Notification';
14
+ import { exists } from '../runtime.js';
15
+ import { NotificationFromJSON, NotificationToJSON, } from './Notification.js';
16
16
  /**
17
17
  * Check if a given object implements the GetNotifications200Response interface.
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"GetNotifications200Response.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/models/GetNotifications200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAE/C,OAAO,EACH,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AAoB,CAAC,CAAC;KACrE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,KAA0C;IACxF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,CAAE,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\nimport type { Notification } from './Notification';\nimport {\n NotificationFromJSON,\n NotificationFromJSONTyped,\n NotificationToJSON,\n} from './Notification';\n\n/**\n * \n * @export\n * @interface GetNotifications200Response\n */\nexport interface GetNotifications200Response {\n /**\n * Pagination link|cursor pointing to the current page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n self?: string;\n /**\n * Pagination link|cursor pointing to the first page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n first?: string;\n /**\n * Pagination link|cursor pointing to the previous page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n prev?: string;\n /**\n * Pagination link|cursor pointing to the next page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n next?: string;\n /**\n * Pagination link|cursor pointing to the last page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n last?: string;\n /**\n * \n * @type {Array<Notification>}\n * @memberof GetNotifications200Response\n */\n items: Array<Notification>;\n}\n\n/**\n * Check if a given object implements the GetNotifications200Response interface.\n */\nexport function instanceOfGetNotifications200Response(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"items\" in value;\n\n return isInstance;\n}\n\nexport function GetNotifications200ResponseFromJSON(json: any): GetNotifications200Response {\n return GetNotifications200ResponseFromJSONTyped(json, false);\n}\n\nexport function GetNotifications200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetNotifications200Response {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'self': !exists(json, 'self') ? undefined : json['self'],\n 'first': !exists(json, 'first') ? undefined : json['first'],\n 'prev': !exists(json, 'prev') ? undefined : json['prev'],\n 'next': !exists(json, 'next') ? undefined : json['next'],\n 'last': !exists(json, 'last') ? undefined : json['last'],\n 'items': ((json['items'] as Array<any>).map(NotificationFromJSON)),\n };\n}\n\nexport function GetNotifications200ResponseToJSON(value?: GetNotifications200Response | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'self': value.self,\n 'first': value.first,\n 'prev': value.prev,\n 'next': value.next,\n 'last': value.last,\n 'items': ((value.items as Array<any>).map(NotificationToJSON)),\n };\n}\n\n"]}
1
+ {"version":3,"file":"GetNotifications200Response.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/models/GetNotifications200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AAElD,OAAO,EACH,oBAAoB,EAEpB,kBAAkB,GACrB,MAAM,mBAAmB,CAAC;AA8C3B;;GAEG;AACH,MAAM,UAAU,qCAAqC,CAAC,KAAa;IAC/D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAA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EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,CAAE,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime.js';\nimport type { Notification } from './Notification.js';\nimport {\n NotificationFromJSON,\n NotificationFromJSONTyped,\n NotificationToJSON,\n} from './Notification.js';\n\n/**\n * \n * @export\n * @interface GetNotifications200Response\n */\nexport interface GetNotifications200Response {\n /**\n * Pagination link|cursor pointing to the current page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n self?: string;\n /**\n * Pagination link|cursor pointing to the first page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n first?: string;\n /**\n * Pagination link|cursor pointing to the previous page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n prev?: string;\n /**\n * Pagination link|cursor pointing to the next page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n next?: string;\n /**\n * Pagination link|cursor pointing to the last page.\n * @type {string}\n * @memberof GetNotifications200Response\n */\n last?: string;\n /**\n * \n * @type {Array<Notification>}\n * @memberof GetNotifications200Response\n */\n items: Array<Notification>;\n}\n\n/**\n * Check if a given object implements the GetNotifications200Response interface.\n */\nexport function instanceOfGetNotifications200Response(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"items\" in value;\n\n return isInstance;\n}\n\nexport function GetNotifications200ResponseFromJSON(json: any): GetNotifications200Response {\n return GetNotifications200ResponseFromJSONTyped(json, false);\n}\n\nexport function GetNotifications200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetNotifications200Response {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'self': !exists(json, 'self') ? undefined : json['self'],\n 'first': !exists(json, 'first') ? undefined : json['first'],\n 'prev': !exists(json, 'prev') ? undefined : json['prev'],\n 'next': !exists(json, 'next') ? undefined : json['next'],\n 'last': !exists(json, 'last') ? undefined : json['last'],\n 'items': ((json['items'] as Array<any>).map(NotificationFromJSON)),\n };\n}\n\nexport function GetNotifications200ResponseToJSON(value?: GetNotifications200Response | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'self': value.self,\n 'first': value.first,\n 'prev': value.prev,\n 'next': value.next,\n 'last': value.last,\n 'items': ((value.items as Array<any>).map(NotificationToJSON)),\n };\n}\n\n"]}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Status } from './Status';
12
+ import type { Status } from './Status.js';
13
13
  /**
14
14
  * Notification
15
15
  * @export
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { exists } from '../runtime';
15
- import { StatusFromJSON, StatusToJSON, } from './Status';
14
+ import { exists } from '../runtime.js';
15
+ import { StatusFromJSON, StatusToJSON, } from './Status.js';
16
16
  /**
17
17
  * Check if a given object implements the Notification interface.
18
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/models/Notification.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAE/C,OAAO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QAC7B,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;QACpC,gBAAgB,EAAE,KAAK,CAAC,aAAa;KACxC,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime';\nimport type { Status } from './Status';\nimport {\n StatusFromJSON,\n StatusFromJSONTyped,\n StatusToJSON,\n} from './Status';\n\n/**\n * Notification\n * @export\n * @interface Notification\n */\nexport interface Notification {\n /**\n * id of notification\n * @type {string}\n * @memberof Notification\n */\n id?: string;\n /**\n * Type of notification to be sent to the user\n * @type {string}\n * @memberof Notification\n */\n resourceType?: string;\n /**\n * Sub grouping of the notification\n * @type {string}\n * @memberof Notification\n */\n subGroup?: string;\n /**\n * Created date\n * @type {Date}\n * @memberof Notification\n */\n createdAt?: Date | null;\n /**\n * Created by the system?\n * @type {string}\n * @memberof Notification\n */\n createdBy?: string;\n /**\n * Description text of the notification\n * @type {string}\n * @memberof Notification\n */\n subject?: string;\n /**\n * \n * @type {Array<string>}\n * @memberof Notification\n */\n locations?: Array<string>;\n /**\n * Unique identifier the notification refers to\n * @type {string}\n * @memberof Notification\n */\n resourceId?: string;\n /**\n * \n * @type {Status}\n * @memberof Notification\n */\n status?: Status;\n /**\n * Account number of the notification\n * @type {string}\n * @memberof Notification\n */\n accountNumber?: string;\n}\n\n/**\n * Check if a given object implements the Notification interface.\n */\nexport function instanceOfNotification(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function NotificationFromJSON(json: any): Notification {\n return NotificationFromJSONTyped(json, false);\n}\n\nexport function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'id': !exists(json, 'id') ? undefined : json['id'],\n 'resourceType': !exists(json, 'resource_type') ? undefined : json['resource_type'],\n 'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],\n 'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),\n 'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],\n 'subject': !exists(json, 'subject') ? undefined : json['subject'],\n 'locations': !exists(json, 'locations') ? undefined : json['locations'],\n 'resourceId': !exists(json, 'resource_id') ? undefined : json['resource_id'],\n 'status': !exists(json, 'status') ? undefined : StatusFromJSON(json['status']),\n 'accountNumber': !exists(json, 'account_number') ? undefined : json['account_number'],\n };\n}\n\nexport function NotificationToJSON(value?: Notification | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'id': value.id,\n 'resource_type': value.resourceType,\n 'sub_group': value.subGroup,\n 'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),\n 'created_by': value.createdBy,\n 'subject': value.subject,\n 'locations': value.locations,\n 'resource_id': value.resourceId,\n 'status': StatusToJSON(value.status),\n 'account_number': value.accountNumber,\n };\n}\n\n"]}
1
+ {"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../../../src/api/notifications-api/models/Notification.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AAElD,OAAO,EACH,cAAc,EAEd,YAAY,GACf,MAAM,aAAa,CAAC;AAsErB;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;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,CAAC;QACpC,gBAAgB,EAAE,KAAK,CAAC,aAAa;KACxC,CAAC;AACN,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Notifications API\n * An API to create and read notifications\n *\n * The version of the OpenAPI document: 1.0.0\n * Contact: DevTeamProduct@digitalrealty.com\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { exists, mapValues } from '../runtime.js';\nimport type { Status } from './Status.js';\nimport {\n StatusFromJSON,\n StatusFromJSONTyped,\n StatusToJSON,\n} from './Status.js';\n\n/**\n * Notification\n * @export\n * @interface Notification\n */\nexport interface Notification {\n /**\n * id of notification\n * @type {string}\n * @memberof Notification\n */\n id?: string;\n /**\n * Type of notification to be sent to the user\n * @type {string}\n * @memberof Notification\n */\n resourceType?: string;\n /**\n * Sub grouping of the notification\n * @type {string}\n * @memberof Notification\n */\n subGroup?: string;\n /**\n * Created date\n * @type {Date}\n * @memberof Notification\n */\n createdAt?: Date | null;\n /**\n * Created by the system?\n * @type {string}\n * @memberof Notification\n */\n createdBy?: string;\n /**\n * Description text of the notification\n * @type {string}\n * @memberof Notification\n */\n subject?: string;\n /**\n * \n * @type {Array<string>}\n * @memberof Notification\n */\n locations?: Array<string>;\n /**\n * Unique identifier the notification refers to\n * @type {string}\n * @memberof Notification\n */\n resourceId?: string;\n /**\n * \n * @type {Status}\n * @memberof Notification\n */\n status?: Status;\n /**\n * Account number of the notification\n * @type {string}\n * @memberof Notification\n */\n accountNumber?: string;\n}\n\n/**\n * Check if a given object implements the Notification interface.\n */\nexport function instanceOfNotification(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function NotificationFromJSON(json: any): Notification {\n return NotificationFromJSONTyped(json, false);\n}\n\nexport function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'id': !exists(json, 'id') ? undefined : json['id'],\n 'resourceType': !exists(json, 'resource_type') ? undefined : json['resource_type'],\n 'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],\n 'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),\n 'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],\n 'subject': !exists(json, 'subject') ? undefined : json['subject'],\n 'locations': !exists(json, 'locations') ? undefined : json['locations'],\n 'resourceId': !exists(json, 'resource_id') ? undefined : json['resource_id'],\n 'status': !exists(json, 'status') ? undefined : StatusFromJSON(json['status']),\n 'accountNumber': !exists(json, 'account_number') ? undefined : json['account_number'],\n };\n}\n\nexport function NotificationToJSON(value?: Notification | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'id': value.id,\n 'resource_type': value.resourceType,\n 'sub_group': value.subGroup,\n 'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),\n 'created_by': value.createdBy,\n 'subject': value.subject,\n 'locations': value.locations,\n 'resource_id': value.resourceId,\n 'status': StatusToJSON(value.status),\n 'account_number': value.accountNumber,\n };\n}\n\n"]}