@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.
@@ -1,5 +1,4 @@
1
- import type { FeatureToggleDto } from '../models/FeatureToggleDto';
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 type { ImpersonateUser } from '../models/ImpersonateUser';
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,4 +1,4 @@
1
- import type { CancelablePromise } from '../core/CancelablePromise';
1
+ import type { CancelablePromise } from './..';
2
2
  export declare class ReleaseNotesService {
3
3
  /**
4
4
  * @param applicationName
@@ -1,17 +1,10 @@
1
- import type { ServiceNowUrgency } from '../models/ServiceNowUrgency';
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",formData:t,mediaType:"multipart/form-data"})}}export{t as ServiceNowService};
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 '../core/CancelablePromise';
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
- * Creates a message in the slack channel defined in config
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 postMessage(formData?: {
25
- comment?: string;
26
- }): CancelablePromise<any>;
16
+ static postmessage(formData?: FormData): CancelablePromise<unknown>;
27
17
  }
@@ -1 +1 @@
1
- import{OpenAPI_Portal as a}from"../core/OpenAPI.js";import{request as t}from"../core/request.js";class e{static fileUpload(e){return t(a,{method:"POST",url:"/api/v1/Slack/fileUpload",formData:e,mediaType:"multipart/form-data"})}static postMessage(e){return t(a,{method:"POST",url:"/api/v1/Slack/postmessage",formData:e,mediaType:"multipart/form-data"})}}export{e as SlackService};
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};
@@ -1,5 +1,4 @@
1
- import type { Tutorial } from '../models/Tutorial';
2
- import type { CancelablePromise } from '../core/CancelablePromise';
1
+ import { CancelablePromise, Tutorial } from './..';
3
2
  export declare class TutorialService {
4
3
  /**
5
4
  * Gets all tutorials for Application
@@ -1,4 +1,4 @@
1
- import { useFeatureToggleContext } from "../providers/FeatureToggleProvider";
1
+ import { useFeatureToggleContext } from '../providers/FeatureToggleProvider';
2
2
  import { useFeatureToggling } from './useFeatureToggling';
3
3
  import { useReleaseNotesQuery } from './useReleaseNotesQuery';
4
4
  export { useFeatureToggling, useReleaseNotesQuery, useFeatureToggleContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/subsurface-app-management",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "React Typescript components/hooks to communicate with equinor/sam",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",