@redhat-cloud-services/notifications-client 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/api.d.ts +1 -1
  2. package/esm/api.d.ts +1 -1
  3. package/esm/jest.integration.v1.config.d.ts +18 -0
  4. package/esm/jest.integration.v1.config.d.ts.map +1 -0
  5. package/esm/jest.integration.v1.config.js +16 -0
  6. package/esm/jest.integration.v1.config.js.map +1 -0
  7. package/esm/jest.integration.v2.config.d.ts +18 -0
  8. package/esm/jest.integration.v2.config.d.ts.map +1 -0
  9. package/esm/jest.integration.v2.config.js +16 -0
  10. package/esm/jest.integration.v2.config.js.map +1 -0
  11. package/esm/tests/integration/notifications.v1.integration.test.d.ts +2 -0
  12. package/esm/tests/integration/notifications.v1.integration.test.d.ts.map +1 -0
  13. package/esm/tests/integration/notifications.v1.integration.test.js +146 -0
  14. package/esm/tests/integration/notifications.v1.integration.test.js.map +1 -0
  15. package/esm/v2/api.d.ts +1 -1
  16. package/esm/v2/tests/integration/notifications.v2.integration.test.d.ts +2 -0
  17. package/esm/v2/tests/integration/notifications.v2.integration.test.d.ts.map +1 -0
  18. package/esm/v2/tests/integration/notifications.v2.integration.test.js +134 -0
  19. package/esm/v2/tests/integration/notifications.v2.integration.test.js.map +1 -0
  20. package/jest.integration.v1.config.d.ts +18 -0
  21. package/jest.integration.v1.config.d.ts.map +1 -0
  22. package/jest.integration.v1.config.js +18 -0
  23. package/jest.integration.v1.config.js.map +1 -0
  24. package/jest.integration.v2.config.d.ts +18 -0
  25. package/jest.integration.v2.config.d.ts.map +1 -0
  26. package/jest.integration.v2.config.js +18 -0
  27. package/jest.integration.v2.config.js.map +1 -0
  28. package/package.json +1 -2
  29. package/tests/integration/notifications.v1.integration.test.d.ts +2 -0
  30. package/tests/integration/notifications.v1.integration.test.d.ts.map +1 -0
  31. package/tests/integration/notifications.v1.integration.test.js +356 -0
  32. package/tests/integration/notifications.v1.integration.test.js.map +1 -0
  33. package/v2/api.d.ts +1 -1
  34. package/v2/tests/integration/notifications.v2.integration.test.d.ts +2 -0
  35. package/v2/tests/integration/notifications.v2.integration.test.d.ts.map +1 -0
  36. package/v2/tests/integration/notifications.v2.integration.test.js +299 -0
  37. package/v2/tests/integration/notifications.v2.integration.test.js.map +1 -0
package/api.d.ts CHANGED
@@ -25,7 +25,7 @@ type endpointReturnTypes = {
25
25
  orgConfigResourceV1GetDailyDigestTimePreference: OrgConfigResourceV1GetDailyDigestTimePreferenceReturnType;
26
26
  orgConfigResourceV1SaveDailyDigestTimePreference: OrgConfigResourceV1SaveDailyDigestTimePreferenceReturnType;
27
27
  };
28
- export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("packages/shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
28
+ export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("@redhat-cloud-services/javascript-clients-shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
29
29
  drawerResourceV1GetDrawerEntries: (...config: [import("./DrawerResourceV1GetDrawerEntries").DrawerResourceV1GetDrawerEntriesParams] | [Set<string>, Set<string>, string, Set<string>, number, number, number, boolean, string, string, string, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
30
30
  drawerResourceV1UpdateNotificationReadStatus: (...config: [import("./DrawerResourceV1UpdateNotificationReadStatus").DrawerResourceV1UpdateNotificationReadStatusParams] | [import("./types").UpdateNotificationDrawerStatus, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
31
31
  eventResourceV1GetEvents: (...config: [import("./EventResourceV1GetEvents").EventResourceV1GetEventsParams] | [Set<string>, Set<string>, string, Set<string>, string, boolean, boolean, boolean, Set<boolean>, number, number, number, string, string, string, Set<import("./types").EventLogEntryActionStatus>, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
package/esm/api.d.ts CHANGED
@@ -25,7 +25,7 @@ type endpointReturnTypes = {
25
25
  orgConfigResourceV1GetDailyDigestTimePreference: OrgConfigResourceV1GetDailyDigestTimePreferenceReturnType;
26
26
  orgConfigResourceV1SaveDailyDigestTimePreference: OrgConfigResourceV1SaveDailyDigestTimePreferenceReturnType;
27
27
  };
28
- export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("packages/shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
28
+ export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("@redhat-cloud-services/javascript-clients-shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
29
29
  drawerResourceV1GetDrawerEntries: (...config: [import("./DrawerResourceV1GetDrawerEntries").DrawerResourceV1GetDrawerEntriesParams] | [Set<string>, Set<string>, string, Set<string>, number, number, number, boolean, string, string, string, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
30
30
  drawerResourceV1UpdateNotificationReadStatus: (...config: [import("./DrawerResourceV1UpdateNotificationReadStatus").DrawerResourceV1UpdateNotificationReadStatusParams] | [import("./types").UpdateNotificationDrawerStatus, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
31
31
  eventResourceV1GetEvents: (...config: [import("./EventResourceV1GetEvents").EventResourceV1GetEventsParams] | [Set<string>, Set<string>, string, Set<string>, string, boolean, boolean, boolean, Set<boolean>, number, number, number, string, string, string, Set<import("./types").EventLogEntryActionStatus>, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ displayName: string;
3
+ preset: string;
4
+ transform: {
5
+ '^.+\\.[t]s$': (string | {
6
+ tsconfig: string;
7
+ })[];
8
+ };
9
+ moduleFileExtensions: string[];
10
+ coverageDirectory: string;
11
+ testEnvironmentOptions: {
12
+ testEnvironment: string;
13
+ url: string;
14
+ };
15
+ testMatch: string[];
16
+ };
17
+ export default _default;
18
+ //# sourceMappingURL=jest.integration.v1.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v1.config.d.ts","sourceRoot":"","sources":["../../jest.integration.v1.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,wBAaE"}
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: 'notifications-client',
4
+ preset: '../../jest.preset.js',
5
+ transform: {
6
+ '^.+\\.[t]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.integration.v1.spec.json' }],
7
+ },
8
+ moduleFileExtensions: ['ts', 'js'],
9
+ coverageDirectory: '../../coverage/packages/notifications',
10
+ testEnvironmentOptions: {
11
+ testEnvironment: 'node',
12
+ url: "http://localhost:3001",
13
+ },
14
+ testMatch: ['**/notifications.v1.integration.test.ts']
15
+ };
16
+ //# sourceMappingURL=jest.integration.v1.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v1.config.js","sourceRoot":"","sources":["../../jest.integration.v1.config.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,eAAe;IACb,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,sBAAsB;IAC9B,SAAS,EAAE;QACT,aAAa,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,6CAA6C,EAAE,CAAC;KACxF;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAClC,iBAAiB,EAAE,uCAAuC;IAC1D,sBAAsB,EAAE;QACtB,eAAe,EAAE,MAAM;QACvB,GAAG,EAAE,uBAAuB;KAC7B;IACD,SAAS,EAAE,CAAC,yCAAyC,CAAC;CACvD,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ displayName: string;
3
+ preset: string;
4
+ transform: {
5
+ '^.+\\.[t]s$': (string | {
6
+ tsconfig: string;
7
+ })[];
8
+ };
9
+ moduleFileExtensions: string[];
10
+ coverageDirectory: string;
11
+ testEnvironmentOptions: {
12
+ testEnvironment: string;
13
+ url: string;
14
+ };
15
+ testMatch: string[];
16
+ };
17
+ export default _default;
18
+ //# sourceMappingURL=jest.integration.v2.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v2.config.d.ts","sourceRoot":"","sources":["../../jest.integration.v2.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,wBAaE"}
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ export default {
3
+ displayName: 'notifications-client',
4
+ preset: '../../jest.preset.js',
5
+ transform: {
6
+ '^.+\\.[t]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.integration.v2.spec.json' }],
7
+ },
8
+ moduleFileExtensions: ['ts', 'js'],
9
+ coverageDirectory: '../../coverage/packages/notifications',
10
+ testEnvironmentOptions: {
11
+ testEnvironment: 'node',
12
+ url: "http://localhost:3002",
13
+ },
14
+ testMatch: ['**/notifications.v2.integration.test.ts']
15
+ };
16
+ //# sourceMappingURL=jest.integration.v2.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v2.config.js","sourceRoot":"","sources":["../../jest.integration.v2.config.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,eAAe;IACb,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,sBAAsB;IAC9B,SAAS,EAAE;QACT,aAAa,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,6CAA6C,EAAE,CAAC;KACxF;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAClC,iBAAiB,EAAE,uCAAuC;IAC1D,sBAAsB,EAAE;QACtB,eAAe,EAAE,MAAM;QACvB,GAAG,EAAE,uBAAuB;KAC7B;IACD,SAAS,EAAE,CAAC,yCAAyC,CAAC;CACvD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notifications.v1.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.v1.integration.test.d.ts","sourceRoot":"","sources":["../../../../tests/integration/notifications.v1.integration.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,146 @@
1
+ import { describe, expect, test } from '@jest/globals';
2
+ import { NotificationsClient } from '../../api';
3
+ const BASE_PATH = 'http://localhost:3001/api/notifications/v1.0';
4
+ const client = NotificationsClient(BASE_PATH);
5
+ describe('Notifications API (v1)', () => {
6
+ test('get drawer entries', async () => {
7
+ const params = {};
8
+ const resp = await client.drawerResourceV1GetDrawerEntries(params);
9
+ expect(resp.status).toBe(200);
10
+ });
11
+ test('get events', async () => {
12
+ const params = {};
13
+ const resp = await client.eventResourceV1GetEvents(params);
14
+ expect(resp.status).toBe(200);
15
+ });
16
+ test('update notification read status', async () => {
17
+ const params = {};
18
+ const resp = await client.drawerResourceV1UpdateNotificationReadStatus(params);
19
+ expect(resp.status).toBe(200);
20
+ });
21
+ test('create behavior group', async () => {
22
+ const createBehaviorGroupRequest = {
23
+ display_name: 'test name',
24
+ };
25
+ const params = { createBehaviorGroupRequest };
26
+ const resp = await client.notificationResourceV1CreateBehaviorGroup(params);
27
+ expect(resp.status).toBe(200);
28
+ });
29
+ test('delete behavior group', async () => {
30
+ const params = { id: '1' };
31
+ const resp = await client.notificationResourceV1DeleteBehaviorGroup(params);
32
+ expect(resp.status).toBe(200);
33
+ });
34
+ test('find behavior groups by bundle id', async () => {
35
+ const params = { bundleId: '1' };
36
+ const resp = await client.notificationResourceV1FindBehaviorGroupsByBundleId(params);
37
+ expect(resp.status).toBe(200);
38
+ });
39
+ test('update behavior group', async () => {
40
+ const updateBehaviorGroupRequest = {
41
+ display_name: 'updated name',
42
+ };
43
+ const params = { id: '1', updateBehaviorGroupRequest };
44
+ const resp = await client.notificationResourceV1UpdateBehaviorGroup(params);
45
+ expect(resp.status).toBe(200);
46
+ });
47
+ test('delete behavior group from event type', async () => {
48
+ const params = { behaviorGroupId: '12', eventTypeId: '13' };
49
+ const resp = await client.notificationResourceV1DeleteBehaviorGroupFromEventType(params);
50
+ expect(resp.status).toBe(204);
51
+ });
52
+ test('get behavior groups affected by removal of endpoint', async () => {
53
+ const params = {
54
+ endpointId: '1',
55
+ };
56
+ const resp = await client.notificationResourceV1GetBehaviorGroupsAffectedByRemovalOfEndpoint(params);
57
+ expect(resp.status).toBe(200);
58
+ });
59
+ test('update behavior group actions', async () => {
60
+ const params = {
61
+ behaviorGroupId: 'behaviorGroupId',
62
+ };
63
+ const resp = await client.notificationResourceV1UpdateBehaviorGroupActions(params);
64
+ expect(resp.status).toBe(200);
65
+ });
66
+ test('append behavior group to event type', async () => {
67
+ const params = { behaviorGroupUuid: '1', eventTypeUuid: '1' };
68
+ const resp = await client.notificationResourceV1AppendBehaviorGroupToEventType(params);
69
+ expect(resp.status).toBe(204);
70
+ });
71
+ test('org config - get daily digest time pref', async () => {
72
+ const params = {};
73
+ const resp = await client.orgConfigResourceV1GetDailyDigestTimePreference(params);
74
+ expect(resp.status).toBe(200);
75
+ });
76
+ test('org config - save daily digest time pref', async () => {
77
+ const params = {};
78
+ const resp = await client.orgConfigResourceV1SaveDailyDigestTimePreference(params);
79
+ expect(resp.status).toBe(204);
80
+ });
81
+ test('get event types', async () => {
82
+ const params = {};
83
+ const resp = await client.notificationResourceV1GetEventTypes(params);
84
+ expect(resp.status).toBe(200);
85
+ });
86
+ test('update event types endpoints', async () => {
87
+ const params = { eventTypeId: '1' };
88
+ const resp = await client.notificationResourceV1UpdateEventTypeEndpoints(params);
89
+ expect(resp.status).toBe(200);
90
+ });
91
+ test('get event types by name and bundle and application name', async () => {
92
+ const params = {
93
+ applicationName: 'appName',
94
+ bundleName: 'bundleName',
95
+ eventTypeName: 'eventTypeName',
96
+ };
97
+ const resp = await client.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(params);
98
+ expect(resp.status).toBe(200);
99
+ });
100
+ test('update event type behaviors', async () => {
101
+ const params = {
102
+ eventTypeId: 'eventTypeId',
103
+ };
104
+ const resp = await client.notificationResourceV1UpdateEventTypeBehaviors(params);
105
+ expect(resp.status).toBe(200);
106
+ });
107
+ test('get event types affected by removal of behavior group', async () => {
108
+ const params = {
109
+ behaviorGroupId: '1',
110
+ };
111
+ const resp = await client.notificationResourceV1GetEventTypesAffectedByRemovalOfBehaviorGroup(params);
112
+ expect(resp.status).toBe(200);
113
+ });
114
+ test('get event types by name and bundle and application name', async () => {
115
+ const params = {
116
+ applicationName: 'appName',
117
+ bundleName: 'bundleName',
118
+ eventTypeName: 'eventTypeName',
119
+ };
120
+ const resp = await client.notificationResourceV1GetEventTypesByNameAndBundleAndApplicationName(params);
121
+ expect(resp.status).toBe(200);
122
+ });
123
+ test('get application by name and bundle name', async () => {
124
+ const params = { applicationName: 'appName', bundleName: 'bundleName' };
125
+ const resp = await client.notificationResourceV1GetApplicationByNameAndBundleName(params);
126
+ expect(resp.status).toBe(200);
127
+ });
128
+ test('get application facets', async () => {
129
+ const params = { bundleName: 'bundleName' };
130
+ const resp = await client.notificationResourceV1GetApplicationsFacets(params);
131
+ expect(resp.status).toBe(200);
132
+ });
133
+ test('get bundle by name', async () => {
134
+ const params = {
135
+ bundleName: 'bundleName',
136
+ };
137
+ const resp = await client.notificationResourceV1GetBundleByName(params);
138
+ expect(resp.status).toBe(200);
139
+ });
140
+ test('get bundle facets', async () => {
141
+ const params = {};
142
+ const resp = await client.notificationResourceV1GetBundleFacets(params);
143
+ expect(resp.status).toBe(200);
144
+ });
145
+ });
146
+ //# sourceMappingURL=notifications.v1.integration.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.v1.integration.test.js","sourceRoot":"","sources":["../../../../tests/integration/not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C1F,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;QACxC,MAAM,MAAM,GAAsD,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;QAC/F,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,2CAA2C,CAAC,MAAM,CAAC,CAAC;QAC9E,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QACpC,MAAM,MAAM,GAAgD;YAC1D,UAAU,EAAE,YAAY;SACzB,CAAC;QACF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,qCAAqC,CAAC,MAAM,CAAC,CAAC;QACxE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;QACnC,MAAM,MAAM,GAAgD,EAAE,CAAC;QAC/D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,qCAAqC,CAAC,MAAM,CAAC,CAAC;QACxE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/esm/v2/api.d.ts CHANGED
@@ -23,7 +23,7 @@ type endpointReturnTypes = {
23
23
  orgConfigResourceV2GetDailyDigestTimePreference: OrgConfigResourceV2GetDailyDigestTimePreferenceReturnType;
24
24
  orgConfigResourceV2SaveDailyDigestTimePreference: OrgConfigResourceV2SaveDailyDigestTimePreferenceReturnType;
25
25
  };
26
- export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("packages/shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
26
+ export declare const NotificationsClient: (BASE_PATH: string, instance?: ApiConfig) => import("@redhat-cloud-services/javascript-clients-shared/dist/base").BaseAPI & import("@redhat-cloud-services/javascript-clients-shared/dist/utils").APIFactoryResponse<{
27
27
  eventResourceV2GetEvents: (...config: [import("./EventResourceV2GetEvents").EventResourceV2GetEventsParams] | [Set<string>, Set<string>, string, Set<string>, string, boolean, boolean, boolean, Set<boolean>, number, number, number, string, string, string, Set<import("./types").EventLogEntryActionStatus>, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
28
28
  notificationResourceV2AppendBehaviorGroupToEventType: (...config: [string, string, import("axios").AxiosRequestConfig<any>] | [import("./NotificationResourceV2AppendBehaviorGroupToEventType").NotificationResourceV2AppendBehaviorGroupToEventTypeParams]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
29
29
  notificationResourceV2CreateBehaviorGroup: (...config: [import("./NotificationResourceV2CreateBehaviorGroup").NotificationResourceV2CreateBehaviorGroupParams] | [import("./types").CreateBehaviorGroupRequest, import("axios").AxiosRequestConfig<any>]) => Promise<import("@redhat-cloud-services/javascript-clients-shared/dist/common").RequestArgs>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notifications.v2.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.v2.integration.test.d.ts","sourceRoot":"","sources":["../../../../../v2/tests/integration/notifications.v2.integration.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,134 @@
1
+ import { describe, expect, test } from '@jest/globals';
2
+ // imports of API-specific classes
3
+ import { NotificationsClient } from '../../api';
4
+ // client path from spec
5
+ const BASE_PATH = 'http://localhost:3002/api/notifications/v2.0';
6
+ const client = NotificationsClient(BASE_PATH);
7
+ describe('Notifications v2.0', () => {
8
+ test('Create a behavior group', async () => {
9
+ const createBehaviorGroupRequest = {
10
+ bundle_id: '7464f4e8-e84a-405b-877b-ad62ad395595',
11
+ bundle_name: '',
12
+ display_name: '',
13
+ endpoint_ids: [],
14
+ event_type_ids: new Set(),
15
+ bundle_uuid_or_bundle_name_valid: true,
16
+ };
17
+ const params = { createBehaviorGroupRequest };
18
+ const resp = await client.notificationResourceV2CreateBehaviorGroup(params);
19
+ expect(resp.status).toBe(200);
20
+ });
21
+ test('List the behavior groups affected by the removal of an endpoint', async () => {
22
+ const params = { endpointId: 'b1d0a37f-6dd5-4cb0-9d9b-47a63711a25d' };
23
+ const resp = await client.notificationResourceV2GetBehaviorGroupsAffectedByRemovalOfEndpoint(params);
24
+ expect(resp.status).toBe(200);
25
+ });
26
+ test('Update the list of behavior group actions', async () => {
27
+ const params = {
28
+ behaviorGroupId: 'c89a38e8-f13f-4599-b1e8-284c318404ff',
29
+ requestBody: [],
30
+ };
31
+ const resp = await client.notificationResourceV2UpdateBehaviorGroupActions(params);
32
+ expect(resp.status).toBe(200);
33
+ });
34
+ test('Update a behavior group', async () => {
35
+ const updateBehaviorGroupRequest = {
36
+ display_name: '',
37
+ endpoint_ids: [],
38
+ event_type_ids: new Set(),
39
+ display_name_not_null_and_blank: true,
40
+ };
41
+ const params = { id: 'd6b117bc-725e-41b3-8292-ea48ab4291d5', updateBehaviorGroupRequest };
42
+ const resp = await client.notificationResourceV2UpdateBehaviorGroup(params);
43
+ expect(resp.status).toBe(200);
44
+ });
45
+ test('Delete a behavior group', async () => {
46
+ const params = { id: 'b123896b-88dc-4ec7-a3c1-d89fdc1236e9' };
47
+ const resp = await client.notificationResourceV2DeleteBehaviorGroup(params);
48
+ expect(resp.status).toBe(200);
49
+ });
50
+ test('List behavior groups in a bundle', async () => {
51
+ const params = { bundleId: '48d9484b-d192-4ca2-8f49-d4bcd2503086' };
52
+ const resp = await client.notificationResourceV2FindBehaviorGroupsByBundleId(params);
53
+ expect(resp.status).toBe(200);
54
+ });
55
+ test('Retrieve a bundle by name', async () => {
56
+ const params = { bundleName: '' };
57
+ const resp = await client.notificationResourceV2GetBundleByName(params);
58
+ expect(resp.status).toBe(200);
59
+ });
60
+ test('Retrieve an application by bundle and application names', async () => {
61
+ const params = { applicationName: '', bundleName: '' };
62
+ const resp = await client.notificationResourceV2GetApplicationByNameAndBundleName(params);
63
+ expect(resp.status).toBe(200);
64
+ });
65
+ test('Retrieve an event type by bundle, application and event type names', async () => {
66
+ const params = {
67
+ applicationName: '',
68
+ bundleName: '',
69
+ eventTypeName: '',
70
+ };
71
+ const resp = await client.notificationResourceV2GetEventTypesByNameAndBundleAndApplicationName(params);
72
+ expect(resp.status).toBe(200);
73
+ });
74
+ test('List all event types', async () => {
75
+ const params = {};
76
+ const resp = await client.notificationResourceV2GetEventTypes(params);
77
+ expect(resp.status).toBe(200);
78
+ });
79
+ test('List the event types affected by the removal of a behavior group', async () => {
80
+ const params = {
81
+ behaviorGroupId: '16087f1c-94b7-4d23-a19a-a447595b44a8',
82
+ };
83
+ const resp = await client.notificationResourceV2GetEventTypesAffectedByRemovalOfBehaviorGroup(params);
84
+ expect(resp.status).toBe(200);
85
+ });
86
+ test('Update the list of behavior groups for an event type', async () => {
87
+ const params = {
88
+ eventTypeId: '51512695-4d25-43aa-9631-2bfffc5fd92f',
89
+ requestBody: new Set(),
90
+ };
91
+ const resp = await client.notificationResourceV2UpdateEventTypeBehaviors(params);
92
+ expect(resp.status).toBe(200);
93
+ });
94
+ test('Retrieve the behavior groups linked to an event type.', async () => {
95
+ const params = { eventTypeId: 'ad1a7cd7-0b42-4210-8093-b6c58a23d4b0' };
96
+ const resp = await client.notificationResourceV2GetLinkedBehaviorGroups(params);
97
+ expect(resp.status).toBe(200);
98
+ });
99
+ test('Delete a behavior group from an event type', async () => {
100
+ const params = {
101
+ behaviorGroupId: '98d38280-0589-4072-aaa5-0977e95fb31a',
102
+ eventTypeId: '38a3f0d4-f5cf-4411-8702-9b89ee26d2b2',
103
+ };
104
+ const resp = await client.notificationResourceV2DeleteBehaviorGroupFromEventType(params);
105
+ expect(resp.status).toBe(204);
106
+ });
107
+ test('Update the list of endpoints for an event type', async () => {
108
+ const params = {
109
+ eventTypeId: 'e6756939-0f1e-40bf-aff4-f1f8888aef91',
110
+ requestBody: new Set(),
111
+ };
112
+ const resp = await client.notificationResourceV2UpdateEventTypeEndpoints(params);
113
+ expect(resp.status).toBe(200);
114
+ });
115
+ test('Add a behavior group to the given event type.', async () => {
116
+ const params = {
117
+ behaviorGroupUuid: '878a5716-f4c9-4430-aa36-ce54613b425c',
118
+ eventTypeUuid: '15785bd9-102f-4bc8-b71c-d048215ba995',
119
+ };
120
+ const resp = await client.notificationResourceV2AppendBehaviorGroupToEventType(params);
121
+ expect(resp.status).toBe(204);
122
+ });
123
+ test('List configured applications', async () => {
124
+ const params = {};
125
+ const resp = await client.notificationResourceV2GetApplicationsFacets(params);
126
+ expect(resp.status).toBe(200);
127
+ });
128
+ test('List configured bundles', async () => {
129
+ const params = {};
130
+ const resp = await client.notificationResourceV2GetBundleFacets(params);
131
+ expect(resp.status).toBe(200);
132
+ });
133
+ });
134
+ //# sourceMappingURL=notifications.v2.integration.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.v2.integration.test.js","sourceRoot":"","sources":["../../../../../v2/tests/integration/notifications.v2.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEvD,kCAAkC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAsBhD,wBAAwB;AACxB,MAAM,SAAS,GAAG,8CAA8C,CAAC;AAEjE,MAAM,MAAM,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAE9C,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,0BAA0B,GAA+B;YAC7D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,EAAE,sCAAsC;SACtD,CAAC;QACF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,oDAAoD,CAAC,MAAM,CAAC,CAAC;QACvF,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,MAAM,GAAsD,EAAE,CAAC;QACrE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,2CAA2C,CAAC,MAAM,CAAC,CAAC;QAC9E,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,MAAM,GAAgD,EAAE,CAAC;QAC/D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,qCAAqC,CAAC,MAAM,CAAC,CAAC;QACxE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ displayName: string;
3
+ preset: string;
4
+ transform: {
5
+ '^.+\\.[t]s$': (string | {
6
+ tsconfig: string;
7
+ })[];
8
+ };
9
+ moduleFileExtensions: string[];
10
+ coverageDirectory: string;
11
+ testEnvironmentOptions: {
12
+ testEnvironment: string;
13
+ url: string;
14
+ };
15
+ testMatch: string[];
16
+ };
17
+ export default _default;
18
+ //# sourceMappingURL=jest.integration.v1.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v1.config.d.ts","sourceRoot":"","sources":["../jest.integration.v1.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,wBAaE"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable */
4
+ exports.default = {
5
+ displayName: 'notifications-client',
6
+ preset: '../../jest.preset.js',
7
+ transform: {
8
+ '^.+\\.[t]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.integration.v1.spec.json' }],
9
+ },
10
+ moduleFileExtensions: ['ts', 'js'],
11
+ coverageDirectory: '../../coverage/packages/notifications',
12
+ testEnvironmentOptions: {
13
+ testEnvironment: 'node',
14
+ url: "http://localhost:3001",
15
+ },
16
+ testMatch: ['**/notifications.v1.integration.test.ts']
17
+ };
18
+ //# sourceMappingURL=jest.integration.v1.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v1.config.js","sourceRoot":"","sources":["../jest.integration.v1.config.ts"],"names":[],"mappings":";;AAAA,oBAAoB;AACpB,kBAAe;IACb,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,sBAAsB;IAC9B,SAAS,EAAE;QACT,aAAa,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,6CAA6C,EAAE,CAAC;KACxF;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAClC,iBAAiB,EAAE,uCAAuC;IAC1D,sBAAsB,EAAE;QACtB,eAAe,EAAE,MAAM;QACvB,GAAG,EAAE,uBAAuB;KAC7B;IACD,SAAS,EAAE,CAAC,yCAAyC,CAAC;CACvD,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ displayName: string;
3
+ preset: string;
4
+ transform: {
5
+ '^.+\\.[t]s$': (string | {
6
+ tsconfig: string;
7
+ })[];
8
+ };
9
+ moduleFileExtensions: string[];
10
+ coverageDirectory: string;
11
+ testEnvironmentOptions: {
12
+ testEnvironment: string;
13
+ url: string;
14
+ };
15
+ testMatch: string[];
16
+ };
17
+ export default _default;
18
+ //# sourceMappingURL=jest.integration.v2.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v2.config.d.ts","sourceRoot":"","sources":["../jest.integration.v2.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,wBAaE"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable */
4
+ exports.default = {
5
+ displayName: 'notifications-client',
6
+ preset: '../../jest.preset.js',
7
+ transform: {
8
+ '^.+\\.[t]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.integration.v2.spec.json' }],
9
+ },
10
+ moduleFileExtensions: ['ts', 'js'],
11
+ coverageDirectory: '../../coverage/packages/notifications',
12
+ testEnvironmentOptions: {
13
+ testEnvironment: 'node',
14
+ url: "http://localhost:3002",
15
+ },
16
+ testMatch: ['**/notifications.v2.integration.test.ts']
17
+ };
18
+ //# sourceMappingURL=jest.integration.v2.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.integration.v2.config.js","sourceRoot":"","sources":["../jest.integration.v2.config.ts"],"names":[],"mappings":";;AAAA,oBAAoB;AACpB,kBAAe;IACb,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,sBAAsB;IAC9B,SAAS,EAAE;QACT,aAAa,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,6CAA6C,EAAE,CAAC;KACxF;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAClC,iBAAiB,EAAE,uCAAuC;IAC1D,sBAAsB,EAAE;QACtB,eAAe,EAAE,MAAM;QACvB,GAAG,EAAE,uBAAuB;KAC7B;IACD,SAAS,EAAE,CAAC,yCAAyC,CAAC;CACvD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/notifications-client",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -21,7 +21,6 @@
21
21
  "doc": "typedoc"
22
22
  },
23
23
  "dependencies": {
24
- "axios": "^1.7.2",
25
24
  "tslib": "^2.6.2",
26
25
  "@redhat-cloud-services/javascript-clients-shared": "^1.2.6"
27
26
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notifications.v1.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.v1.integration.test.d.ts","sourceRoot":"","sources":["../../../tests/integration/notifications.v1.integration.test.ts"],"names":[],"mappings":""}