@equinor/subsurface-app-management 4.3.0 → 4.3.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.
- package/dist/api/models/Faq.d.ts +2 -2
- package/dist/api/models/FaqCategory.d.ts +4 -0
- package/dist/api/models/Step.d.ts +1 -0
- package/dist/api/models/StepDto.d.ts +1 -0
- package/dist/api/services/FaqService.d.ts +7 -0
- package/dist/api/services/FaqService.js +1 -1
- package/dist/hooks/useTutorialsQuery.js +1 -1
- package/package.json +1 -1
package/dist/api/models/Faq.d.ts
CHANGED
|
@@ -2,6 +2,13 @@ import type { Faq } from '../models/Faq';
|
|
|
2
2
|
import type { FaqCategory } from '../models/FaqCategory';
|
|
3
3
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
4
|
export declare class FaqService {
|
|
5
|
+
/**
|
|
6
|
+
* Get FAQ categories and related FAQs based on application id
|
|
7
|
+
* @param applicationId
|
|
8
|
+
* @returns FaqCategory OK
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getCategoriesWithFaqsFromApplicationName(applicationName: string): CancelablePromise<Array<FaqCategory>>;
|
|
5
12
|
/**
|
|
6
13
|
* Get FAQ image
|
|
7
14
|
* @param path
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{OpenAPI_SAM_Prod as
|
|
1
|
+
import{OpenAPI_SAM_Prod as a}from"../core/OpenAPI.js";import{request as t}from"../core/request.js";class e{static getCategoriesWithFaqsFromApplicationName(e){return t(a,{method:"GET",url:"/api/v1/Faq/faqcategorieswithfaqs/{applicationName}",path:{applicationName:e}})}static getFaqImage(e){return t(a,{method:"GET",url:"/api/v1/Faq/getfaqimage/{path}",path:{path:e},errors:{404:"Not Found"}})}static getFaqCategoriesFromApplicationId(e){return t(a,{method:"GET",url:"/api/v1/Faq/faqcategories/{applicationId}",path:{applicationId:e}})}static getFaqsFromCategoryId(e){return t(a,{method:"GET",url:"/api/v1/Faq/faqs/{categoryId}",path:{categoryId:e}})}static getFaqById(e){return t(a,{method:"GET",url:"/api/v1/Faq/faq/{id}",path:{id:e}})}}export{e as FaqService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useQuery as
|
|
1
|
+
import{useQuery as r}from"@tanstack/react-query";import"../api/core/OpenAPI.js";import"../api/models/ApplicationCategory.js";import"../api/models/ServiceNowUrgency.js";import"../api/models/TutorialPosition.js";import{TutorialService as t}from"../api/services/TutorialService.js";import{GET_TUTORIALS_FOR_APP as o}from"../constants/queryKeys.js";import{EnvironmentType as e}from"../types/Environment.js";import"../types/ReleaseNotes.js";import{getEnvironmentName as i,getAppName as s}from"../utils/environment.js";function p(){return r({queryKey:[o],queryFn:async()=>{if(i(import.meta.env.VITE_ENVIRONMENT_NAME)===e.PRODUCTION){return(await t.getMyTutorialsForApplication(s(import.meta.env.VITE_NAME),!1)).map((r=>({...r,id:r.tutorialDraftId?r.tutorialDraftId:r.id,steps:r.steps.sort(((r,t)=>(r.orderBy??0)-(t.orderBy??0)))})))}return t.getDraftTutorialsForApplication(s(import.meta.env.VITE_NAME))}})}export{p as useTutorialsQuery};
|