@harnessio/react-notification-service-client 0.13.2-beta.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fetcher/index.js +1 -1
- package/dist/notification-service/src/services/index.d.ts +1 -0
- package/dist/notification-service/src/services/schemas/ResourceTypeEnum.d.ts +1 -1
- package/dist/notification-service/src/services/schemas/RmgEventNotificationParamsDto.d.ts +4 -0
- package/dist/notification-service/src/services/schemas/RmgEventNotificationParamsDto.js +1 -0
- package/package.json +1 -1
package/dist/fetcher/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export function fetcher(options) {
|
|
|
30
30
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
|
|
31
31
|
finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
|
|
32
32
|
}
|
|
33
|
-
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
33
|
+
let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
|
|
34
34
|
if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
|
|
35
35
|
request = fetcherCallbacks.requestInterceptor(request.clone());
|
|
36
36
|
}
|
|
@@ -82,6 +82,7 @@ export type { NotificationTemplateInputsDto } from './schemas/NotificationTempla
|
|
|
82
82
|
export type { NotificationsSimulateDto } from './schemas/NotificationsSimulateDto';
|
|
83
83
|
export type { PipelineEventNotificationParamsDto } from './schemas/PipelineEventNotificationParamsDto';
|
|
84
84
|
export type { ResourceTypeEnum } from './schemas/ResourceTypeEnum';
|
|
85
|
+
export type { RmgEventNotificationParamsDto } from './schemas/RmgEventNotificationParamsDto';
|
|
85
86
|
export type { SloEventNotificationParamsDto } from './schemas/SloEventNotificationParamsDto';
|
|
86
87
|
export type { Status } from './schemas/Status';
|
|
87
88
|
export type { StoExperimentEventNotificationParamsDto } from './schemas/StoExperimentEventNotificationParamsDto';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ResourceTypeEnum = 'CHAOS_EXPERIMENT' | 'DELEGATE' | 'PIPELINE' | 'SERVICE_LEVEL_OBJECTIVE' | 'STO_EXEMPTION';
|
|
1
|
+
export type ResourceTypeEnum = 'CHAOS_EXPERIMENT' | 'DELEGATE' | 'PIPELINE' | 'RMG' | 'SERVICE_LEVEL_OBJECTIVE' | 'STO_EXEMPTION';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-notification-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Harness React Notification service client - Notification APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|