@equinor/subsurface-app-management 1.1.0 → 1.1.2
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/api/services/FeatureToggleService.d.ts +1 -2
- package/dist/api/services/ImpersonateUserService.d.ts +2 -3
- package/dist/api/services/ReleaseNotesService.d.ts +1 -1
- package/dist/api/services/ServiceNowService.d.ts +3 -10
- package/dist/api/services/ServiceNowService.js +1 -1
- package/dist/api/services/SlackService.d.ts +4 -14
- package/dist/api/services/SlackService.js +1 -1
- package/dist/api/services/TutorialService.d.ts +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { FeatureToggleDto } from '
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import type { CancelablePromise, FeatureToggleDto } from './..';
|
|
3
2
|
export declare class FeatureToggleService {
|
|
4
3
|
/**
|
|
5
4
|
* Gets a Feature Toggle from Application name
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import { CancelablePromise, ImpersonateUser } from './..';
|
|
3
2
|
export declare class ImpersonateUserService {
|
|
4
3
|
/**
|
|
5
4
|
* Get all impersonate users
|
|
6
5
|
* @returns ImpersonateUser Success
|
|
7
6
|
* @throws ApiError
|
|
8
7
|
*/
|
|
9
|
-
static getApiV1ImpersonateUser(): CancelablePromise<ImpersonateUser
|
|
8
|
+
static getApiV1ImpersonateUser(): CancelablePromise<Array<ImpersonateUser>>;
|
|
10
9
|
/**
|
|
11
10
|
* @param requestBody
|
|
12
11
|
* @returns ImpersonateUser Success
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
1
|
+
import { CancelablePromise, ServiceNowIncidentResponse } from './..';
|
|
3
2
|
export declare class ServiceNowService {
|
|
4
3
|
/**
|
|
4
|
+
* Creates a incident report in service now
|
|
5
5
|
* @param formData
|
|
6
6
|
* @returns any Success
|
|
7
7
|
* @throws ApiError
|
|
8
8
|
*/
|
|
9
|
-
static createIncident(formData?:
|
|
10
|
-
ConfigurationItem: string;
|
|
11
|
-
Title: string;
|
|
12
|
-
Description: string;
|
|
13
|
-
CallerEmail: string;
|
|
14
|
-
urgency?: ServiceNowUrgency;
|
|
15
|
-
Images?: Array<Blob>;
|
|
16
|
-
}): CancelablePromise<any>;
|
|
9
|
+
static createIncident(formData?: FormData): CancelablePromise<ServiceNowIncidentResponse>;
|
|
17
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{OpenAPI_Portal as e}from"../core/OpenAPI.js";import{request as r}from"../core/request.js";class t{static createIncident(t){return r(e,{method:"POST",url:"/api/v1/ServiceNow/incident",
|
|
1
|
+
import{OpenAPI_Portal as e}from"../core/OpenAPI.js";import{request as r}from"../core/request.js";class t{static createIncident(t){return r(e,{method:"POST",url:"/api/v1/ServiceNow/incident",body:t})}}export{t as ServiceNowService};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CancelablePromise } from '
|
|
1
|
+
import type { CancelablePromise } from './..';
|
|
2
2
|
export declare class SlackService {
|
|
3
3
|
/**
|
|
4
4
|
* Uploads file to slack and links it to a channel defined in config
|
|
@@ -6,22 +6,12 @@ export declare class SlackService {
|
|
|
6
6
|
* @returns any Success
|
|
7
7
|
* @throws ApiError
|
|
8
8
|
*/
|
|
9
|
-
static fileUpload(formData?:
|
|
10
|
-
ContentType?: string;
|
|
11
|
-
ContentDisposition?: string;
|
|
12
|
-
Headers?: Record<string, Array<string>>;
|
|
13
|
-
Length?: number;
|
|
14
|
-
Name?: string;
|
|
15
|
-
FileName?: string;
|
|
16
|
-
comment?: string;
|
|
17
|
-
}): CancelablePromise<any>;
|
|
9
|
+
static fileUpload(formData?: FormData): CancelablePromise<unknown>;
|
|
18
10
|
/**
|
|
19
|
-
*
|
|
11
|
+
* Posts a slack message to channel defined in config
|
|
20
12
|
* @param formData
|
|
21
13
|
* @returns any Success
|
|
22
14
|
* @throws ApiError
|
|
23
15
|
*/
|
|
24
|
-
static
|
|
25
|
-
comment?: string;
|
|
26
|
-
}): CancelablePromise<any>;
|
|
16
|
+
static postmessage(formData?: FormData): CancelablePromise<unknown>;
|
|
27
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{OpenAPI_Portal as
|
|
1
|
+
import{OpenAPI_Portal as e}from"../core/OpenAPI.js";import{request as o}from"../core/request.js";class r{static fileUpload(r){return o(e,{method:"POST",url:"/api/v1/Slack/fileUpload",body:r})}static postmessage(r){return o(e,{method:"POST",url:"/api/v1/Slack/postmessage",body:r})}}export{r as SlackService};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFeatureToggleContext } from
|
|
1
|
+
import { useFeatureToggleContext } from '../providers/FeatureToggleProvider';
|
|
2
2
|
import { useFeatureToggling } from './useFeatureToggling';
|
|
3
3
|
import { useReleaseNotesQuery } from './useReleaseNotesQuery';
|
|
4
4
|
export { useFeatureToggling, useReleaseNotesQuery, useFeatureToggleContext };
|