@digital-realty/ix-notifications 1.1.21 → 1.1.22
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.
- package/dist/IxNotifications.d.ts +4 -4
- package/dist/IxNotifications.js.map +1 -1
- package/dist/api/notifications-api/apis/NotificationsApi.js.map +1 -1
- package/dist/api/notifications-api/models/ErrorResponse.js.map +1 -1
- package/dist/api/notifications-api/models/GetNotifications200Response.js.map +1 -1
- package/dist/api/notifications-api/models/Notification.js.map +1 -1
- package/dist/api/notifications-api/models/NotificationDelete.js.map +1 -1
- package/dist/api/notifications-api/models/NotificationPatch.js.map +1 -1
- package/dist/api/notifications-api/models/NotificationRequest.js.map +1 -1
- package/dist/api/notifications-api/models/PaginatedResponse.js.map +1 -1
- package/dist/api/notifications-api/runtime.js.map +1 -1
- package/dist/assets/iconset.d.ts +6 -6
- package/dist/components/notifications/confirmation-dialog.d.ts +1 -1
- package/dist/components/notifications/confirmation-dialog.js.map +1 -1
- package/dist/components/notifications/date-filters.d.ts +1 -1
- package/dist/components/notifications/date-filters.js.map +1 -1
- package/dist/components/notifications/group-filters.d.ts +1 -1
- package/dist/components/notifications/group-filters.js.map +1 -1
- package/dist/components/notifications/grouped-item.d.ts +2 -2
- package/dist/components/notifications/grouped-item.js.map +1 -1
- package/dist/components/notifications/notification-item.d.ts +3 -3
- package/dist/components/notifications/notification-item.js +6 -3
- package/dist/components/notifications/notification-item.js.map +1 -1
- package/dist/components/notifications/notification-tooltip.d.ts +1 -1
- package/dist/components/notifications/notification-tooltip.js.map +1 -1
- package/dist/components/notifications/view-item-dialog.d.ts +1 -1
- package/dist/components/notifications/view-item-dialog.js.map +1 -1
- package/dist/helper/errors.js.map +1 -1
- package/dist/ix-notifications.min.js +1 -1
- package/dist/services/notifications-service.js.map +1 -1
- package/dist/state/NotificationState.js.map +1 -1
- package/dist/tw.js +2 -2
- package/dist/tw.js.map +1 -1
- package/package.json +13 -14
|
@@ -35,11 +35,11 @@ export declare class IxNotifications extends MobxLitElement {
|
|
|
35
35
|
displayFilters(): void;
|
|
36
36
|
applyNotificationFilters(): Notification[];
|
|
37
37
|
displayDateFilters(): void;
|
|
38
|
-
renderGroupedView(): import("lit").TemplateResult<1>;
|
|
39
|
-
renderDefaultView(): import("lit").TemplateResult<1>;
|
|
40
|
-
renderNoResult(): import("lit").TemplateResult<1>;
|
|
38
|
+
renderGroupedView(): import("lit-html").TemplateResult<1>;
|
|
39
|
+
renderDefaultView(): import("lit-html").TemplateResult<1>;
|
|
40
|
+
renderNoResult(): import("lit-html").TemplateResult<1>;
|
|
41
41
|
handleCloseClick(_e: CustomEvent<FilterDialogEventDetail>): void;
|
|
42
42
|
handleContentScroll(e: CustomEvent): void;
|
|
43
43
|
manageFilterVisibility(e: Event): void;
|
|
44
|
-
render(): import("lit").TemplateResult<1>;
|
|
44
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
45
45
|
}
|
|
@@ -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,kBAAk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AAE,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 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 super.disconnectedCallback();\n }\n\n // Handle browser refresh event\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n handleOnbeforeunload(event: any) {\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 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 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 groupTitle=\"Emergency Repairs\"\n groupIcon=\"report\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.INCIDENTS\n )}\n ></grouped-item>\n <grouped-item\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 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 .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 .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\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> </notification-tooltip>\n <confirmation-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 ?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 class=\"grow items-center dlr-text-heading\">Notifications</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 @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 @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 @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 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 @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 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,8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AEzB;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 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 super.disconnectedCallback();\n }\n\n // Handle browser refresh event\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n handleOnbeforeunload(event: any) {\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 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 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 groupTitle=\"Emergency Repairs\"\n groupIcon=\"report\"\n .childItems=${filteredNotifications?.filter(\n item => item.resourceType === NotificationGroups.INCIDENTS\n )}\n ></grouped-item>\n <grouped-item\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 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 .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 .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\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> </notification-tooltip>\n <confirmation-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 ?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 class=\"grow items-center dlr-text-heading\">Notifications</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 @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 @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 @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 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 @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 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 +1 @@
|
|
|
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,YAAY,CAAC;AAStC,OAAO,EAGH,mCAAmC,EAEnC,oBAAoB,EAEpB,yBAAyB,EACzB,uBAAuB,EAEvB,yBAAyB,GAG5B,MAAM,iBAAiB,CAAC;AAgCzB;;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;YACtD,MAAM,KAAK,GAAG,IAA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AAC;aAC/D;SACJ;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,qBAAqB,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;YAClG,MAAM,EAAE,OAAO;YACf,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,uBAAuB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC;SACrE,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,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,YAAY,CAAC;AAStC,OAAO,EAGH,mCAAmC,EAEnC,oBAAoB,EAEpB,yBAAyB,EACzB,uBAAuB,EAEvB,yBAAyB,GAG5B,MAAM,iBAAiB,CAAC;AAgCzB;;GAEG;AACH,M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AAC,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 +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;
|
|
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;I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,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 +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,oBAAoB,EAEpB,kBAAkB,GACrB,MAAM,gBAAgB,CAAC;AA8CxB;;GAEG;AACH,MAAM,UAAU,qCAAqC,CAAC,KAAa;IAC/D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"GetNotifications200Response.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/GetNotifications200Response.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH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AO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,oBAAoB,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 +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,EACH,cAAc,EAEd,YAAY,GACf,MAAM,UAAU,CAAC;AAsElB;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;
|
|
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,EACH,cAAc,EAEd,YAAY,GACf,MAAM,UAAU,CAAC;AAsElB;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAa;IAChD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,cAAc,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;QAClF,U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K,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,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,WAAW,EAAE,KAAK,CAAC,QAAQ;QAC3B,YAAY,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC3H,YAAY,EAAE,KAAK,CAAC,SAAS;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationDelete.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationDelete.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"NotificationDelete.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationDelete.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAe/C;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACpE,CAAC;AACN,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAiC;IACtE,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,SAAS,EAAE,KAAK,CAAC,OAAO;KAC3B,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 * Delete Notification\n * @export\n * @interface NotificationDelete\n */\nexport interface NotificationDelete {\n /**\n * Displays if notification was successfully deleted\n * @type {boolean}\n * @memberof NotificationDelete\n */\n success?: boolean;\n}\n\n/**\n * Check if a given object implements the NotificationDelete interface.\n */\nexport function instanceOfNotificationDelete(value: object): boolean {\n let isInstance = true;\n\n return isInstance;\n}\n\nexport function NotificationDeleteFromJSON(json: any): NotificationDelete {\n return NotificationDeleteFromJSONTyped(json, false);\n}\n\nexport function NotificationDeleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationDelete {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'success': !exists(json, 'success') ? undefined : json['success'],\n };\n}\n\nexport function NotificationDeleteToJSON(value?: NotificationDelete | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'success': value.success,\n };\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPatch.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationPatch.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,cAAc,EAEd,YAAY,GACf,MAAM,UAAU,CAAC;AAgBlB;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC;IAE7C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"NotificationPatch.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationPatch.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAIH,OAAO,EACH,cAAc,EAEd,YAAY,GACf,MAAM,UAAU,CAAC;AAgBlB;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC;IAE7C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,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,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC3C,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAAgC;IACpE,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,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC;KACvC,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 * Patch Notification\n * @export\n * @interface NotificationPatch\n */\nexport interface NotificationPatch {\n /**\n * \n * @type {Status}\n * @memberof NotificationPatch\n */\n status: Status;\n}\n\n/**\n * Check if a given object implements the NotificationPatch interface.\n */\nexport function instanceOfNotificationPatch(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"status\" in value;\n\n return isInstance;\n}\n\nexport function NotificationPatchFromJSON(json: any): NotificationPatch {\n return NotificationPatchFromJSONTyped(json, false);\n}\n\nexport function NotificationPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPatch {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'status': StatusFromJSON(json['status']),\n };\n}\n\nexport function NotificationPatchToJSON(value?: NotificationPatch | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'status': StatusToJSON(value.status),\n };\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationRequest.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAyD/C;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,KAAa;IACvD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,cAAc,IAAI,KAAK,CAAC;IACnD,UAAU,GAAG,UAAU,IAAI,eAAe,IAAI,KAAK,CAAC;IACpD,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IACjD,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAE9C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"NotificationRequest.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/NotificationRequest.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AAyD/C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YAAY,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;KAC7H,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAkC;IACxE,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,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,WAAW,EAAE,KAAK,CAAC,QAAQ;QAC3B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,gBAAgB,EAAE,KAAK,CAAC,aAAa;QACrC,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,YAAY,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;KAC9H,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 * Request body for creating a notification\n * @export\n * @interface NotificationRequest\n */\nexport interface NotificationRequest {\n /**\n * Type of notification to be sent to the user\n * @type {string}\n * @memberof NotificationRequest\n */\n resourceType: string;\n /**\n * Sub grouping of the notification\n * @type {string}\n * @memberof NotificationRequest\n */\n subGroup?: string;\n /**\n * List of recipients of the notification\n * @type {Array<string>}\n * @memberof NotificationRequest\n */\n recipients?: Array<string>;\n /**\n * Account number of the notification\n * @type {string}\n * @memberof NotificationRequest\n */\n accountNumber: string;\n /**\n * \n * @type {Array<string>}\n * @memberof NotificationRequest\n */\n locations?: Array<string>;\n /**\n * Unique identifier the notification refers to\n * @type {string}\n * @memberof NotificationRequest\n */\n resourceId: string;\n /**\n * Description text of the notification\n * @type {string}\n * @memberof NotificationRequest\n */\n subject: string;\n /**\n * Created date\n * @type {Date}\n * @memberof NotificationRequest\n */\n createdAt?: Date | null;\n}\n\n/**\n * Check if a given object implements the NotificationRequest interface.\n */\nexport function instanceOfNotificationRequest(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"resourceType\" in value;\n isInstance = isInstance && \"accountNumber\" in value;\n isInstance = isInstance && \"resourceId\" in value;\n isInstance = isInstance && \"subject\" in value;\n\n return isInstance;\n}\n\nexport function NotificationRequestFromJSON(json: any): NotificationRequest {\n return NotificationRequestFromJSONTyped(json, false);\n}\n\nexport function NotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationRequest {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n \n 'resourceType': json['resource_type'],\n 'subGroup': !exists(json, 'sub_group') ? undefined : json['sub_group'],\n 'recipients': !exists(json, 'recipients') ? undefined : json['recipients'],\n 'accountNumber': json['account_number'],\n 'locations': !exists(json, 'locations') ? undefined : json['locations'],\n 'resourceId': json['resource_id'],\n 'subject': json['subject'],\n 'createdAt': !exists(json, 'created_at') ? undefined : (json['created_at'] === null ? null : new Date(json['created_at'])),\n };\n}\n\nexport function NotificationRequestToJSON(value?: NotificationRequest | null): any {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n \n 'resource_type': value.resourceType,\n 'sub_group': value.subGroup,\n 'recipients': value.recipients,\n 'account_number': value.accountNumber,\n 'locations': value.locations,\n 'resource_id': value.resourceId,\n 'subject': value.subject,\n 'created_at': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),\n };\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginatedResponse.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/PaginatedResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AA6C/C;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"PaginatedResponse.js","sourceRoot":"","sources":["../../../../src/api/notifications-api/models/PaginatedResponse.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAa,MAAM,YAAY,CAAC;AA6C/C;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACrD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB,C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,CAAC,KAAK;QACpB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,MAAM,EAAE,KAAK,CAAC,IAAI;QAClB,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,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 * \n * @export\n * @interface PaginatedResponse\n */\nexport interface PaginatedResponse {\n /**\n * Pagination link|cursor pointing to the current page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n self?: string;\n /**\n * Pagination link|cursor pointing to the first page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n first?: string;\n /**\n * Pagination link|cursor pointing to the previous page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n prev?: string;\n /**\n * Pagination link|cursor pointing to the next page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n next?: string;\n /**\n * Pagination link|cursor pointing to the last page.\n * @type {string}\n * @memberof PaginatedResponse\n */\n last?: string;\n /**\n * Array of collection items.\n * @type {Array<any>}\n * @memberof PaginatedResponse\n */\n items: Array<any>;\n}\n\n/**\n * Check if a given object implements the PaginatedResponse interface.\n */\nexport function instanceOfPaginatedResponse(value: object): boolean {\n let isInstance = true;\n isInstance = isInstance && \"items\" in value;\n\n return isInstance;\n}\n\nexport function PaginatedResponseFromJSON(json: any): PaginatedResponse {\n return PaginatedResponseFromJSONTyped(json, false);\n}\n\nexport function PaginatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponse {\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'],\n };\n}\n\nexport function PaginatedResponseToJSON(value?: PaginatedResponse | 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,\n };\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/api/notifications-api/runtime.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,MAAM,CAAC,MAAM,SAAS,GAAG,4CAA4C,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAe1F,MAAM,OAAO,aAAa;IACtB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IACzF,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,oBAAoB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,IAAI,WAAW,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAA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-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\nexport const BASE_PATH = \"http://api.digitalrealty.com/notifications\".replace(/\\/+$/, \"\");\n\nexport interface ConfigurationParameters {\n basePath?: string; // override base path\n fetchApi?: FetchAPI; // override for fetch implementation\n middleware?: Middleware[]; // middleware to apply before/after fetch requests\n queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings\n username?: string; // parameter for basic security\n password?: string; // parameter for basic security\n apiKey?: string | ((name: string) => string); // parameter for apiKey security\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security\n headers?: HTTPHeaders; //header params we want to use on every request\n credentials?: RequestCredentials; //value for the credentials param we want to use on each request\n}\n\nexport class Configuration {\n constructor(private configuration: ConfigurationParameters = {}) {}\n\n set config(configuration: Configuration) {\n this.configuration = configuration;\n }\n\n get basePath(): string {\n return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;\n }\n\n get fetchApi(): FetchAPI | undefined {\n return this.configuration.fetchApi;\n }\n\n get middleware(): Middleware[] {\n return this.configuration.middleware || [];\n }\n\n get queryParamsStringify(): (params: HTTPQuery) => string {\n return this.configuration.queryParamsStringify || querystring;\n }\n\n get username(): string | undefined {\n return this.configuration.username;\n }\n\n get password(): string | undefined {\n return this.configuration.password;\n }\n\n get apiKey(): ((name: string) => string) | undefined {\n const apiKey = this.configuration.apiKey;\n if (apiKey) {\n return typeof apiKey === 'function' ? apiKey : () => apiKey;\n }\n return undefined;\n }\n\n get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {\n const accessToken = this.configuration.accessToken;\n if (accessToken) {\n return typeof accessToken === 'function' ? accessToken : async () => accessToken;\n }\n return undefined;\n }\n\n get headers(): HTTPHeaders | undefined {\n return this.configuration.headers;\n }\n\n get credentials(): RequestCredentials | undefined {\n return this.configuration.credentials;\n }\n}\n\nexport const DefaultConfig = new Configuration();\n\n/**\n * This is the base class for all generated API classes.\n */\nexport class BaseAPI {\n\n\t private static readonly jsonRegex = new RegExp('^(:?application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(:?;.*)?$', 'i');\n private middleware: Middleware[];\n\n constructor(protected configuration = DefaultConfig) {\n this.middleware = configuration.middleware;\n }\n\n withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {\n const next = this.clone<T>();\n next.middleware = next.middleware.concat(...middlewares);\n return next;\n }\n\n withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {\n const middlewares = preMiddlewares.map((pre) => ({ pre }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {\n const middlewares = postMiddlewares.map((post) => ({ post }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n protected isJsonMime(mime: string | null | undefined): boolean {\n if (!mime) {\n return false;\n }\n return BaseAPI.jsonRegex.test(mime);\n }\n\n protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {\n const { url, init } = await this.createFetchParams(context, initOverrides);\n const response = await this.fetchApi(url, init);\n if (response && (response.status >= 200 && response.status < 300)) {\n return response;\n }\n throw new ResponseError(response, 'Response returned an error code');\n }\n\n private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {\n let url = this.configuration.basePath + context.path;\n if (context.query !== undefined && Object.keys(context.query).length !== 0) {\n // only add the querystring to the URL if there are query parameters.\n // this is done to avoid urls ending with a \"?\" character which buggy webservers\n // do not handle correctly sometimes.\n url += '?' + this.configuration.queryParamsStringify(context.query);\n }\n\n const headers = Object.assign({}, this.configuration.headers, context.headers);\n Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});\n\n const initOverrideFn =\n typeof initOverrides === \"function\"\n ? initOverrides\n : async () => initOverrides;\n\n const initParams = {\n method: context.method,\n headers,\n body: context.body,\n credentials: this.configuration.credentials,\n };\n\n const overriddenInit: RequestInit = {\n ...initParams,\n ...(await initOverrideFn({\n init: initParams,\n context,\n }))\n };\n\n let body: any;\n if (isFormData(overriddenInit.body)\n || (overriddenInit.body instanceof URLSearchParams)\n || isBlob(overriddenInit.body)) {\n body = overriddenInit.body;\n } else if (this.isJsonMime(headers['Content-Type'])) {\n body = JSON.stringify(overriddenInit.body);\n } else {\n body = overriddenInit.body;\n }\n\n const init: RequestInit = {\n ...overriddenInit,\n body\n };\n\n return { url, init };\n }\n\n private fetchApi = async (url: string, init: RequestInit) => {\n let fetchParams = { url, init };\n for (const middleware of this.middleware) {\n if (middleware.pre) {\n fetchParams = await middleware.pre({\n fetch: this.fetchApi,\n ...fetchParams,\n }) || fetchParams;\n }\n }\n let response: Response | undefined = undefined;\n try {\n response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);\n } catch (e) {\n for (const middleware of this.middleware) {\n if (middleware.onError) {\n response = await middleware.onError({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n error: e,\n response: response ? response.clone() : undefined,\n }) || response;\n }\n }\n if (response === undefined) {\n if (e instanceof Error) {\n throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');\n } else {\n throw e;\n }\n }\n }\n for (const middleware of this.middleware) {\n if (middleware.post) {\n response = await middleware.post({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n response: response.clone(),\n }) || response;\n }\n }\n return response;\n }\n\n /**\n * Create a shallow clone of `this` by constructing a new instance\n * and then shallow cloning data members.\n */\n private clone<T extends BaseAPI>(this: T): T {\n const constructor = this.constructor as any;\n const next = new constructor(this.configuration);\n next.middleware = this.middleware.slice();\n return next;\n }\n};\n\nfunction isBlob(value: any): value is Blob {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n\nfunction isFormData(value: any): value is FormData {\n return typeof FormData !== \"undefined\" && value instanceof FormData;\n}\n\nexport class ResponseError extends Error {\n override name: \"ResponseError\" = \"ResponseError\";\n constructor(public response: Response, msg?: string) {\n super(msg);\n }\n}\n\nexport class FetchError extends Error {\n override name: \"FetchError\" = \"FetchError\";\n constructor(public cause: Error, msg?: string) {\n super(msg);\n }\n}\n\nexport class RequiredError extends Error {\n override name: \"RequiredError\" = \"RequiredError\";\n constructor(public field: string, msg?: string) {\n super(msg);\n }\n}\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport type FetchAPI = WindowOrWorkerGlobalScope['fetch'];\n\nexport type Json = any;\nexport type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';\nexport type HTTPHeaders = { [key: string]: string };\nexport type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };\nexport type HTTPBody = Json | FormData | URLSearchParams;\nexport type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };\nexport type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';\n\nexport type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>\n\nexport interface FetchParams {\n url: string;\n init: RequestInit;\n}\n\nexport interface RequestOpts {\n path: string;\n method: HTTPMethod;\n headers: HTTPHeaders;\n query?: HTTPQuery;\n body?: HTTPBody;\n}\n\nexport function exists(json: any, key: string) {\n const value = json[key];\n return value !== null && value !== undefined;\n}\n\nexport function querystring(params: HTTPQuery, prefix: string = ''): string {\n return Object.keys(params)\n .map(key => querystringSingleKey(key, params[key], prefix))\n .filter(part => part.length > 0)\n .join('&');\n}\n\nfunction querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {\n const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);\n if (value instanceof Array) {\n const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))\n .join(`&${encodeURIComponent(fullKey)}=`);\n return `${encodeURIComponent(fullKey)}=${multiValue}`;\n }\n if (value instanceof Set) {\n const valueAsArray = Array.from(value);\n return querystringSingleKey(key, valueAsArray, keyPrefix);\n }\n if (value instanceof Date) {\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;\n }\n if (value instanceof Object) {\n return querystring(value as HTTPQuery, fullKey);\n }\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;\n}\n\nexport function mapValues(data: any, fn: (item: any) => any) {\n return Object.keys(data).reduce(\n (acc, key) => ({ ...acc, [key]: fn(data[key]) }),\n {}\n );\n}\n\nexport function canConsumeForm(consumes: Consume[]): boolean {\n for (const consume of consumes) {\n if ('multipart/form-data' === consume.contentType) {\n return true;\n }\n }\n return false;\n}\n\nexport interface Consume {\n contentType: string;\n}\n\nexport interface RequestContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n}\n\nexport interface ResponseContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n response: Response;\n}\n\nexport interface ErrorContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n error: unknown;\n response?: Response;\n}\n\nexport interface Middleware {\n pre?(context: RequestContext): Promise<FetchParams | void>;\n post?(context: ResponseContext): Promise<Response | void>;\n onError?(context: ErrorContext): Promise<Response | void>;\n}\n\nexport interface ApiResponse<T> {\n raw: Response;\n value(): Promise<T>;\n}\n\nexport interface ResponseTransformer<T> {\n (json: any): T;\n}\n\nexport class JSONApiResponse<T> {\n constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}\n\n async value(): Promise<T> {\n return this.transformer(await this.raw.json());\n }\n}\n\nexport class VoidApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<void> {\n return undefined;\n }\n}\n\nexport class BlobApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<Blob> {\n return await this.raw.blob();\n };\n}\n\nexport class TextApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<string> {\n return await this.raw.text();\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/api/notifications-api/runtime.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAGH,MAAM,CAAC,MAAM,SAAS,GAAG,4CAA4C,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAe1F,MAAM,OAAO,aAAa;IACtB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IACzF,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;IACvC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,oBAAoB;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,oBAAoB,IAAI,WAAW,CAAC;IAClE,CAAC;IAED,IAAI,QAAQ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EpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAED,MAAM,OAAO,eAAe;IACxB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL","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\nexport const BASE_PATH = \"http://api.digitalrealty.com/notifications\".replace(/\\/+$/, \"\");\n\nexport interface ConfigurationParameters {\n basePath?: string; // override base path\n fetchApi?: FetchAPI; // override for fetch implementation\n middleware?: Middleware[]; // middleware to apply before/after fetch requests\n queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings\n username?: string; // parameter for basic security\n password?: string; // parameter for basic security\n apiKey?: string | ((name: string) => string); // parameter for apiKey security\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security\n headers?: HTTPHeaders; //header params we want to use on every request\n credentials?: RequestCredentials; //value for the credentials param we want to use on each request\n}\n\nexport class Configuration {\n constructor(private configuration: ConfigurationParameters = {}) {}\n\n set config(configuration: Configuration) {\n this.configuration = configuration;\n }\n\n get basePath(): string {\n return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;\n }\n\n get fetchApi(): FetchAPI | undefined {\n return this.configuration.fetchApi;\n }\n\n get middleware(): Middleware[] {\n return this.configuration.middleware || [];\n }\n\n get queryParamsStringify(): (params: HTTPQuery) => string {\n return this.configuration.queryParamsStringify || querystring;\n }\n\n get username(): string | undefined {\n return this.configuration.username;\n }\n\n get password(): string | undefined {\n return this.configuration.password;\n }\n\n get apiKey(): ((name: string) => string) | undefined {\n const apiKey = this.configuration.apiKey;\n if (apiKey) {\n return typeof apiKey === 'function' ? apiKey : () => apiKey;\n }\n return undefined;\n }\n\n get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {\n const accessToken = this.configuration.accessToken;\n if (accessToken) {\n return typeof accessToken === 'function' ? accessToken : async () => accessToken;\n }\n return undefined;\n }\n\n get headers(): HTTPHeaders | undefined {\n return this.configuration.headers;\n }\n\n get credentials(): RequestCredentials | undefined {\n return this.configuration.credentials;\n }\n}\n\nexport const DefaultConfig = new Configuration();\n\n/**\n * This is the base class for all generated API classes.\n */\nexport class BaseAPI {\n\n\t private static readonly jsonRegex = new RegExp('^(:?application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(:?;.*)?$', 'i');\n private middleware: Middleware[];\n\n constructor(protected configuration = DefaultConfig) {\n this.middleware = configuration.middleware;\n }\n\n withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {\n const next = this.clone<T>();\n next.middleware = next.middleware.concat(...middlewares);\n return next;\n }\n\n withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {\n const middlewares = preMiddlewares.map((pre) => ({ pre }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {\n const middlewares = postMiddlewares.map((post) => ({ post }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n protected isJsonMime(mime: string | null | undefined): boolean {\n if (!mime) {\n return false;\n }\n return BaseAPI.jsonRegex.test(mime);\n }\n\n protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {\n const { url, init } = await this.createFetchParams(context, initOverrides);\n const response = await this.fetchApi(url, init);\n if (response && (response.status >= 200 && response.status < 300)) {\n return response;\n }\n throw new ResponseError(response, 'Response returned an error code');\n }\n\n private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {\n let url = this.configuration.basePath + context.path;\n if (context.query !== undefined && Object.keys(context.query).length !== 0) {\n // only add the querystring to the URL if there are query parameters.\n // this is done to avoid urls ending with a \"?\" character which buggy webservers\n // do not handle correctly sometimes.\n url += '?' + this.configuration.queryParamsStringify(context.query);\n }\n\n const headers = Object.assign({}, this.configuration.headers, context.headers);\n Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});\n\n const initOverrideFn =\n typeof initOverrides === \"function\"\n ? initOverrides\n : async () => initOverrides;\n\n const initParams = {\n method: context.method,\n headers,\n body: context.body,\n credentials: this.configuration.credentials,\n };\n\n const overriddenInit: RequestInit = {\n ...initParams,\n ...(await initOverrideFn({\n init: initParams,\n context,\n }))\n };\n\n let body: any;\n if (isFormData(overriddenInit.body)\n || (overriddenInit.body instanceof URLSearchParams)\n || isBlob(overriddenInit.body)) {\n body = overriddenInit.body;\n } else if (this.isJsonMime(headers['Content-Type'])) {\n body = JSON.stringify(overriddenInit.body);\n } else {\n body = overriddenInit.body;\n }\n\n const init: RequestInit = {\n ...overriddenInit,\n body\n };\n\n return { url, init };\n }\n\n private fetchApi = async (url: string, init: RequestInit) => {\n let fetchParams = { url, init };\n for (const middleware of this.middleware) {\n if (middleware.pre) {\n fetchParams = await middleware.pre({\n fetch: this.fetchApi,\n ...fetchParams,\n }) || fetchParams;\n }\n }\n let response: Response | undefined = undefined;\n try {\n response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);\n } catch (e) {\n for (const middleware of this.middleware) {\n if (middleware.onError) {\n response = await middleware.onError({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n error: e,\n response: response ? response.clone() : undefined,\n }) || response;\n }\n }\n if (response === undefined) {\n if (e instanceof Error) {\n throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');\n } else {\n throw e;\n }\n }\n }\n for (const middleware of this.middleware) {\n if (middleware.post) {\n response = await middleware.post({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n response: response.clone(),\n }) || response;\n }\n }\n return response;\n }\n\n /**\n * Create a shallow clone of `this` by constructing a new instance\n * and then shallow cloning data members.\n */\n private clone<T extends BaseAPI>(this: T): T {\n const constructor = this.constructor as any;\n const next = new constructor(this.configuration);\n next.middleware = this.middleware.slice();\n return next;\n }\n};\n\nfunction isBlob(value: any): value is Blob {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n\nfunction isFormData(value: any): value is FormData {\n return typeof FormData !== \"undefined\" && value instanceof FormData;\n}\n\nexport class ResponseError extends Error {\n override name: \"ResponseError\" = \"ResponseError\";\n constructor(public response: Response, msg?: string) {\n super(msg);\n }\n}\n\nexport class FetchError extends Error {\n override name: \"FetchError\" = \"FetchError\";\n constructor(public cause: Error, msg?: string) {\n super(msg);\n }\n}\n\nexport class RequiredError extends Error {\n override name: \"RequiredError\" = \"RequiredError\";\n constructor(public field: string, msg?: string) {\n super(msg);\n }\n}\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport type FetchAPI = WindowOrWorkerGlobalScope['fetch'];\n\nexport type Json = any;\nexport type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';\nexport type HTTPHeaders = { [key: string]: string };\nexport type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };\nexport type HTTPBody = Json | FormData | URLSearchParams;\nexport type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };\nexport type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';\n\nexport type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>\n\nexport interface FetchParams {\n url: string;\n init: RequestInit;\n}\n\nexport interface RequestOpts {\n path: string;\n method: HTTPMethod;\n headers: HTTPHeaders;\n query?: HTTPQuery;\n body?: HTTPBody;\n}\n\nexport function exists(json: any, key: string) {\n const value = json[key];\n return value !== null && value !== undefined;\n}\n\nexport function querystring(params: HTTPQuery, prefix: string = ''): string {\n return Object.keys(params)\n .map(key => querystringSingleKey(key, params[key], prefix))\n .filter(part => part.length > 0)\n .join('&');\n}\n\nfunction querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {\n const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);\n if (value instanceof Array) {\n const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))\n .join(`&${encodeURIComponent(fullKey)}=`);\n return `${encodeURIComponent(fullKey)}=${multiValue}`;\n }\n if (value instanceof Set) {\n const valueAsArray = Array.from(value);\n return querystringSingleKey(key, valueAsArray, keyPrefix);\n }\n if (value instanceof Date) {\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;\n }\n if (value instanceof Object) {\n return querystring(value as HTTPQuery, fullKey);\n }\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;\n}\n\nexport function mapValues(data: any, fn: (item: any) => any) {\n return Object.keys(data).reduce(\n (acc, key) => ({ ...acc, [key]: fn(data[key]) }),\n {}\n );\n}\n\nexport function canConsumeForm(consumes: Consume[]): boolean {\n for (const consume of consumes) {\n if ('multipart/form-data' === consume.contentType) {\n return true;\n }\n }\n return false;\n}\n\nexport interface Consume {\n contentType: string;\n}\n\nexport interface RequestContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n}\n\nexport interface ResponseContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n response: Response;\n}\n\nexport interface ErrorContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n error: unknown;\n response?: Response;\n}\n\nexport interface Middleware {\n pre?(context: RequestContext): Promise<FetchParams | void>;\n post?(context: ResponseContext): Promise<Response | void>;\n onError?(context: ErrorContext): Promise<Response | void>;\n}\n\nexport interface ApiResponse<T> {\n raw: Response;\n value(): Promise<T>;\n}\n\nexport interface ResponseTransformer<T> {\n (json: any): T;\n}\n\nexport class JSONApiResponse<T> {\n constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}\n\n async value(): Promise<T> {\n return this.transformer(await this.raw.json());\n }\n}\n\nexport class VoidApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<void> {\n return undefined;\n }\n}\n\nexport class BlobApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<Blob> {\n return await this.raw.blob();\n };\n}\n\nexport class TextApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<string> {\n return await this.raw.text();\n };\n}\n"]}
|
package/dist/assets/iconset.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const viewList: import("lit").TemplateResult<2>;
|
|
2
|
-
export declare const dcim: import("lit").TemplateResult<2>;
|
|
3
|
-
export declare const plannedMaintenance: import("lit").TemplateResult<2>;
|
|
4
|
-
export declare const trash: import("lit").TemplateResult<2>;
|
|
5
|
-
export declare const crossConnect: import("lit").TemplateResult<2>;
|
|
6
|
-
export declare const sortCheck: import("lit").TemplateResult<2>;
|
|
1
|
+
export declare const viewList: import("lit-html").TemplateResult<2>;
|
|
2
|
+
export declare const dcim: import("lit-html").TemplateResult<2>;
|
|
3
|
+
export declare const plannedMaintenance: import("lit-html").TemplateResult<2>;
|
|
4
|
+
export declare const trash: import("lit-html").TemplateResult<2>;
|
|
5
|
+
export declare const crossConnect: import("lit-html").TemplateResult<2>;
|
|
6
|
+
export declare const sortCheck: import("lit-html").TemplateResult<2>;
|