@equinor/subsurface-app-management 2.0.1 → 2.1.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.
@@ -1,4 +1,4 @@
1
- import type { CancelablePromise } from './..';
1
+ import type { CancelablePromise, ReleaseNote } from './..';
2
2
  export declare class ReleaseNotesService {
3
3
  /**
4
4
  * @param applicationName
@@ -33,4 +33,11 @@ export declare class ReleaseNotesService {
33
33
  * @throws ApiError
34
34
  */
35
35
  static getReleaseNoteImage(path: string): CancelablePromise<string>;
36
+ /**
37
+ * Get published release notes
38
+ * @param applicationName
39
+ * @returns ReleaseNote OK
40
+ * @throws ApiError
41
+ */
42
+ static getPublishedReleasenotes(applicationName: string): CancelablePromise<Array<ReleaseNote>>;
36
43
  }
@@ -1 +1 @@
1
- import{OpenAPI_SAM as e}from"../core/OpenAPI.js";import{request as t}from"../core/request.js";class a{static getReleasenoteList(a,r,s){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes",query:{applicationName:a,version:r,tags:s}})}static getMyReleasenotes(a){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/myreleasenotes",query:{tags:a}})}static getReleasenote(a,r){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/{applicationName}/{releaseId}",path:{applicationName:a,releaseId:r}})}static getContainerSasUri(){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/GetContainerSasUri",errors:{401:"Unauthorized"}})}static getReleaseNoteImage(a){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/getreleasenoteimage/{path}",path:{path:a},errors:{404:"Not Found"}})}}export{a as ReleaseNotesService};
1
+ import{OpenAPI_SAM as e}from"../core/OpenAPI.js";import{request as t}from"../core/request.js";class a{static getReleasenoteList(a,r,s){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes",query:{applicationName:a,version:r,tags:s}})}static getMyReleasenotes(a){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/myreleasenotes",query:{tags:a}})}static getReleasenote(a,r){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/{applicationName}/{releaseId}",path:{applicationName:a,releaseId:r}})}static getContainerSasUri(){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/GetContainerSasUri",errors:{401:"Unauthorized"}})}static getReleaseNoteImage(a){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/getreleasenoteimage/{path}",path:{path:a},errors:{404:"Not Found"}})}static getPublishedReleasenotes(a){return t(e,{method:"GET",url:"/api/v1/ReleaseNotes/{applicationName}",path:{applicationName:a}})}}export{a as ReleaseNotesService};
@@ -1,7 +1,6 @@
1
- import { ReleaseNote } from '../api/models/ReleaseNote';
2
1
  interface ReleaseNotesQueryProps {
3
2
  enabled?: boolean;
4
3
  overrideAppName?: string;
5
4
  }
6
- export declare function useReleaseNotesQuery(options?: ReleaseNotesQueryProps): import("@tanstack/react-query").UseQueryResult<ReleaseNote[], Error>;
5
+ export declare function useReleaseNotesQuery(options?: ReleaseNotesQueryProps): import("@tanstack/react-query").UseQueryResult<import("..").ReleaseNote[], Error>;
7
6
  export {};
@@ -1 +1 @@
1
- import{useQuery as e}from"@tanstack/react-query";import{ReleaseNotesService as t}from"../api/services/ReleaseNotesService.js";import{GET_RELEASE_NOTES as r}from"../constants/queryKeys.js";import*as o from"../utils/environment.js";const{getAppName:s}=o;function n(o){const n=o?.overrideAppName??s(import.meta.env.VITE_NAME);return e({queryKey:[r],queryFn:()=>t.getReleasenoteList(n),enabled:o?.enabled??!0})}export{n as useReleaseNotesQuery};
1
+ import{useQuery as e}from"@tanstack/react-query";import{ReleaseNotesService as r}from"../api/services/ReleaseNotesService.js";import{GET_RELEASE_NOTES as t}from"../constants/queryKeys.js";import*as o from"../utils/environment.js";const{getAppName:s}=o;function n(o){const n=o?.overrideAppName??s(import.meta.env.VITE_NAME);return e({queryKey:[t],queryFn:()=>r.getPublishedReleasenotes(n),enabled:o?.enabled??!0})}export{n as useReleaseNotesQuery};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/subsurface-app-management",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "React Typescript components/hooks to communicate with equinor/sam",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",