@equinor/subsurface-app-management 1.1.1 → 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.
@@ -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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/subsurface-app-management",
3
- "version": "1.1.1",
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",