@equinor/subsurface-app-management 4.1.0 → 4.3.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.
- package/dist/api/index.d.ts +3 -0
- package/dist/api/models/Faq.d.ts +9 -0
- package/dist/api/models/FaqCategory.d.ts +6 -0
- package/dist/api/services/FaqService.d.ts +33 -0
- package/dist/api/services/FaqService.js +1 -0
- package/dist/index.js +1 -1
- package/dist/providers/{ApplicationInsightsProvider.d.ts → ApplicationInsightsProvider/ApplicationInsightsProvider.d.ts} +2 -0
- package/dist/providers/ApplicationInsightsProvider/ApplicationInsightsProvider.js +1 -0
- package/dist/providers/ApplicationInsightsProvider/ApplicationInsightsProvider.utils.d.ts +3 -0
- package/dist/providers/ApplicationInsightsProvider/ApplicationInsightsProvider.utils.js +1 -0
- package/dist/providers/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/providers/ApplicationInsightsProvider.js +0 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export type { MyTutorialDto } from './models/MyTutorialDto';
|
|
|
22
22
|
export type { StepDto } from './models/StepDto';
|
|
23
23
|
export { TutorialPosition } from './models/TutorialPosition';
|
|
24
24
|
export type { MyFeatureDto } from './models/MyFeatureDto';
|
|
25
|
+
export type { Faq } from './models/Faq';
|
|
26
|
+
export type { FaqCategory } from './models/FaqCategory';
|
|
25
27
|
export { AmplifyApplicationService } from './services/AmplifyApplicationService';
|
|
26
28
|
export { FeatureToggleService } from './services/FeatureToggleService';
|
|
27
29
|
export { ImpersonateUserService } from './services/ImpersonateUserService';
|
|
@@ -29,3 +31,4 @@ export { ReleaseNotesService } from './services/ReleaseNotesService';
|
|
|
29
31
|
export { ServiceNowService } from './services/ServiceNowService';
|
|
30
32
|
export { SlackService } from './services/SlackService';
|
|
31
33
|
export { TutorialService } from './services/TutorialService';
|
|
34
|
+
export { FaqService } from './services/FaqService';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Faq } from '../models/Faq';
|
|
2
|
+
import type { FaqCategory } from '../models/FaqCategory';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class FaqService {
|
|
5
|
+
/**
|
|
6
|
+
* Get FAQ image
|
|
7
|
+
* @param path
|
|
8
|
+
* @returns string OK
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getFaqImage(path: string): CancelablePromise<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Get FAQ categories from application id
|
|
14
|
+
* @param applicationId
|
|
15
|
+
* @returns FaqCategory OK
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
static getFaqCategoriesFromApplicationId(applicationId: string): CancelablePromise<Array<FaqCategory>>;
|
|
19
|
+
/**
|
|
20
|
+
* Get FAQs from category id
|
|
21
|
+
* @param categoryId
|
|
22
|
+
* @returns Faq OK
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static getFaqsFromCategoryId(categoryId: number): CancelablePromise<Array<Faq>>;
|
|
26
|
+
/**
|
|
27
|
+
* Get FAQ by id
|
|
28
|
+
* @param id
|
|
29
|
+
* @returns Faq OK
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static getFaqById(id: number): CancelablePromise<Faq>;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{OpenAPI_SAM_Prod as t}from"../core/OpenAPI.js";import{request as a}from"../core/request.js";class r{static getFaqImage(r){return a(t,{method:"GET",url:"/api/v1/Faq/getfaqimage/{path}",path:{path:r},errors:{404:"Not Found"}})}static getFaqCategoriesFromApplicationId(r){return a(t,{method:"GET",url:"/api/v1/Faq/faqcategories/{applicationId}",path:{applicationId:r}})}static getFaqsFromCategoryId(r){return a(t,{method:"GET",url:"/api/v1/Faq/faqs/{categoryId}",path:{categoryId:r}})}static getFaqById(r){return a(t,{method:"GET",url:"/api/v1/Faq/faq/{id}",path:{id:r}})}}export{r as FaqService};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Feature}from"./components/Feature/Feature.js";export{FeatureRoute}from"./components/FeatureRoute/FeatureRoute.js";export{FeatureToggleProvider,useFeatureToggleContext}from"./providers/FeatureToggleProvider.js";export{useFeatureToggling}from"./hooks/useFeatureToggling.js";export{useReleaseNotesQuery}from"./hooks/useReleaseNotesQuery.js";export{useTutorialsQuery}from"./hooks/useTutorialsQuery.js";export{useTutorialStepImage}from"./hooks/useTutorialStepImage.js";export{useSignalRMessages}from"./hooks/useSignalRMessages.js";export{TutorialProvider,useTutorials}from"./providers/TutorialProvider/TutorialProvider.js";export{ApplicationInsightsProvider}from"./providers/ApplicationInsightsProvider.js";export{EnvironmentType}from"./types/Environment.js";export{RELEASENOTE_TYPES_INFORMATION,ReleaseNoteType}from"./types/ReleaseNotes.js";import*as e from"./utils/environment.js";export{e as environment};export{ApiError}from"./api/core/ApiError.js";export{CancelError,CancelablePromise}from"./api/core/CancelablePromise.js";export{OpenAPI_APP,getJSEmbarkToken,getPortalToken,getSAMToken}from"./api/core/OpenAPI.js";export{request}from"./api/core/request.js";export{ApplicationCategory}from"./api/models/ApplicationCategory.js";export{ServiceNowUrgency}from"./api/models/ServiceNowUrgency.js";export{TutorialPosition}from"./api/models/TutorialPosition.js";export{AmplifyApplicationService}from"./api/services/AmplifyApplicationService.js";export{FeatureToggleService}from"./api/services/FeatureToggleService.js";export{ImpersonateUserService}from"./api/services/ImpersonateUserService.js";export{ReleaseNotesService}from"./api/services/ReleaseNotesService.js";export{ServiceNowService}from"./api/services/ServiceNowService.js";export{SlackService}from"./api/services/SlackService.js";export{TutorialService}from"./api/services/TutorialService.js";export{GET_FEATURE_TOGGLES_FOR_APP,GET_RELEASE_NOTES,GET_TUTORIALS_FOR_APP,GET_TUTORIALS_SAS_TOKEN,GET_TUTORIAL_STEP_IMAGE,SAM_QUERIES}from"./constants/queryKeys.js";
|
|
1
|
+
export{Feature}from"./components/Feature/Feature.js";export{FeatureRoute}from"./components/FeatureRoute/FeatureRoute.js";export{FeatureToggleProvider,useFeatureToggleContext}from"./providers/FeatureToggleProvider.js";export{useFeatureToggling}from"./hooks/useFeatureToggling.js";export{useReleaseNotesQuery}from"./hooks/useReleaseNotesQuery.js";export{useTutorialsQuery}from"./hooks/useTutorialsQuery.js";export{useTutorialStepImage}from"./hooks/useTutorialStepImage.js";export{useSignalRMessages}from"./hooks/useSignalRMessages.js";export{TutorialProvider,useTutorials}from"./providers/TutorialProvider/TutorialProvider.js";export{ApplicationInsightsProvider}from"./providers/ApplicationInsightsProvider/ApplicationInsightsProvider.js";export{samTrackEvent,samTrackMetric}from"./providers/ApplicationInsightsProvider/ApplicationInsightsProvider.utils.js";export{EnvironmentType}from"./types/Environment.js";export{RELEASENOTE_TYPES_INFORMATION,ReleaseNoteType}from"./types/ReleaseNotes.js";import*as e from"./utils/environment.js";export{e as environment};export{ApiError}from"./api/core/ApiError.js";export{CancelError,CancelablePromise}from"./api/core/CancelablePromise.js";export{OpenAPI_APP,getJSEmbarkToken,getPortalToken,getSAMToken}from"./api/core/OpenAPI.js";export{request}from"./api/core/request.js";export{ApplicationCategory}from"./api/models/ApplicationCategory.js";export{ServiceNowUrgency}from"./api/models/ServiceNowUrgency.js";export{TutorialPosition}from"./api/models/TutorialPosition.js";export{AmplifyApplicationService}from"./api/services/AmplifyApplicationService.js";export{FeatureToggleService}from"./api/services/FeatureToggleService.js";export{ImpersonateUserService}from"./api/services/ImpersonateUserService.js";export{ReleaseNotesService}from"./api/services/ReleaseNotesService.js";export{ServiceNowService}from"./api/services/ServiceNowService.js";export{SlackService}from"./api/services/SlackService.js";export{TutorialService}from"./api/services/TutorialService.js";export{FaqService}from"./api/services/FaqService.js";export{GET_FEATURE_TOGGLES_FOR_APP,GET_RELEASE_NOTES,GET_TUTORIALS_FOR_APP,GET_TUTORIALS_SAS_TOKEN,GET_TUTORIAL_STEP_IMAGE,SAM_QUERIES}from"./constants/queryKeys.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{useEffect as e}from"react";import{ClickAnalyticsPlugin as n}from"@microsoft/applicationinsights-clickanalytics-js";import{ReactPlugin as o,AppInsightsContext as t}from"@microsoft/applicationinsights-react-js";import{ApplicationInsights as s}from"@microsoft/applicationinsights-web";import{getApplicationInsightsConnectionString as r}from"../../utils/environment.js";import{l as a}from"../../_virtual/lodash.js";const d=new o,c=new n,p=12e5,m=r(import.meta.env.VITE_APPLICATION_INSIGHTS_CONNECTION_STRING),l=m?new s({config:{connectionString:m,extensions:[d,c],extensionConfig:{[c.identifier]:{autoCapture:!0,dropInvalidEvents:!0}},autoTrackPageVisitTime:!0,enableAutoRouteTracking:!0,sessionRenewalMs:p,sessionExpirationMs:p}}):void 0;l?.loadAppInsights();const w=a.debounce((()=>{l?l.trackEvent({name:"Resolution",properties:{"Window Resolution":window.innerWidth+"x"+window.innerHeight,"Screen Resolution":screen.width+"x"+screen.height}}):console.warn('[SAM]: ApplicationInsightsProvider - "appInsights" is undefined, did you set APPLICATION_INSIGHTS_CONNECTION_STRING?')}),5e3),I=({children:n})=>(e((()=>(window.addEventListener("load",w),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w),window.removeEventListener("load",w)})),[]),i(t,{value:d,children:n}));export{I as ApplicationInsightsProvider,l as appInsights};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ICustomProperties, IEventTelemetry, IMetricTelemetry } from '@microsoft/applicationinsights-web';
|
|
2
|
+
export declare function samTrackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
|
|
3
|
+
export declare function samTrackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{appInsights as i}from"./ApplicationInsightsProvider.js";function n(n,t){i?i.trackEvent(n,t):console.warn('[SAM]: ApplicationInsightsProvider - "appInsights" is undefined, did you set APPLICATION_INSIGHTS_CONNECTION_STRING?')}function t(n,t){i?i.trackMetric(n,t):console.warn('[SAM]: ApplicationInsightsProvider - "appInsights" is undefined, did you set APPLICATION_INSIGHTS_CONNECTION_STRING?')}export{n as samTrackEvent,t as samTrackMetric};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { FeatureToggleProvider } from './FeatureToggleProvider';
|
|
2
2
|
export { TutorialProvider, useTutorials, } from './TutorialProvider/TutorialProvider';
|
|
3
|
-
export { ApplicationInsightsProvider } from './ApplicationInsightsProvider';
|
|
3
|
+
export { ApplicationInsightsProvider } from './ApplicationInsightsProvider/ApplicationInsightsProvider';
|
|
4
|
+
export * from './ApplicationInsightsProvider/ApplicationInsightsProvider.utils';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{useEffect as e}from"react";import{ClickAnalyticsPlugin as n}from"@microsoft/applicationinsights-clickanalytics-js";import{ReactPlugin as o,AppInsightsContext as t}from"@microsoft/applicationinsights-react-js";import{ApplicationInsights as s}from"@microsoft/applicationinsights-web";import{getApplicationInsightsConnectionString as r}from"../utils/environment.js";import{l as a}from"../_virtual/lodash.js";const d=new o,c=new n,p=12e5,m=r(import.meta.env.VITE_APPLICATION_INSIGHTS_CONNECTION_STRING),l=m?new s({config:{connectionString:m,extensions:[d,c],extensionConfig:{[c.identifier]:{autoCapture:!0,dropInvalidEvents:!0}},autoTrackPageVisitTime:!0,enableAutoRouteTracking:!0,sessionRenewalMs:p,sessionExpirationMs:p}}):void 0;l?.loadAppInsights();const w=a.debounce((()=>{l?l.trackEvent({name:"Resolution",properties:{"Window Resolution":window.innerWidth+"x"+window.innerHeight,"Screen Resolution":screen.width+"x"+screen.height}}):console.warn('[SAM]: ApplicationInsightsProvider - "appInsights" is undefined, did you set APPLICATION_INSIGHTS_CONNECTION_STRING?')}),5e3),I=({children:n})=>(e((()=>(window.addEventListener("load",w),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w),window.removeEventListener("load",w)})),[]),i(t,{value:d,children:n}));export{I as ApplicationInsightsProvider};
|