@equinor/subsurface-app-management 1.1.7 → 1.1.9
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/services/ImpersonateUserService.d.ts +9 -3
- package/dist/api/services/ImpersonateUserService.js +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/queryKeys.d.ts +4 -0
- package/dist/constants/queryKeys.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/providers/FeatureToggleProvider.js +1 -1
- package/dist/providers/TutorialProvider/TutorialProvider.const.d.ts +0 -2
- package/dist/providers/TutorialProvider/TutorialProvider.const.js +1 -1
- package/dist/providers/TutorialProvider/TutorialProvider.hooks.js +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,13 @@ export declare class ImpersonateUserService {
|
|
|
20
20
|
* @throws ApiError
|
|
21
21
|
*/
|
|
22
22
|
static putImpersonateUser(requestBody?: ImpersonateUser): CancelablePromise<ImpersonateUser>;
|
|
23
|
+
/**
|
|
24
|
+
* Get all impersonate users by application name
|
|
25
|
+
* @param appName
|
|
26
|
+
* @returns ImpersonateUser Success
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static getApiV1ImpersonateUserGetImpersonateUserForApp(appName: string): CancelablePromise<Array<ImpersonateUser>>;
|
|
23
30
|
/**
|
|
24
31
|
* Get all active users
|
|
25
32
|
* @returns ImpersonateUser Success
|
|
@@ -27,12 +34,11 @@ export declare class ImpersonateUserService {
|
|
|
27
34
|
*/
|
|
28
35
|
static getAllActiveUsers(): CancelablePromise<ImpersonateUser>;
|
|
29
36
|
/**
|
|
30
|
-
* Get active user
|
|
31
|
-
* @param username
|
|
37
|
+
* Get active user
|
|
32
38
|
* @returns ImpersonateUser Success
|
|
33
39
|
* @throws ApiError
|
|
34
40
|
*/
|
|
35
|
-
static
|
|
41
|
+
static getActiveUser(): CancelablePromise<ImpersonateUser>;
|
|
36
42
|
/**
|
|
37
43
|
* Get impersonate user by id
|
|
38
44
|
* @param id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{OpenAPI_Portal as r}from"../core/OpenAPI.js";import{request as e}from"../core/request.js";class t{static getApiV1ImpersonateUser(){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser",errors:{400:"Bad Request",500:"Server Error"}})}static createImpersonateUser(t){return e(r,{method:"POST",url:"/api/v1/ImpersonateUser",body:t,mediaType:"application/json-patch+json",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static putImpersonateUser(t){return e(r,{method:"PUT",url:"/api/v1/ImpersonateUser",body:t,mediaType:"application/json-patch+json",errors:{400:"Bad Request"}})}static
|
|
1
|
+
import{OpenAPI_Portal as r}from"../core/OpenAPI.js";import{request as e}from"../core/request.js";class t{static getApiV1ImpersonateUser(){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser",errors:{400:"Bad Request",500:"Server Error"}})}static createImpersonateUser(t){return e(r,{method:"POST",url:"/api/v1/ImpersonateUser",body:t,mediaType:"application/json-patch+json",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static putImpersonateUser(t){return e(r,{method:"PUT",url:"/api/v1/ImpersonateUser",body:t,mediaType:"application/json-patch+json",errors:{400:"Bad Request"}})}static getApiV1ImpersonateUserGetImpersonateUserForApp(t){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser/GetImpersonateUserForApp/{appName}",path:{appName:t},errors:{400:"Bad Request",500:"Server Error"}})}static getAllActiveUsers(){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser/ActiveUsers",errors:{400:"Bad Request",500:"Server Error"}})}static getActiveUser(){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser/ActiveUser",errors:{400:"Bad Request",500:"Server Error"}})}static getImpersonateUserById(t){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser/ImpersonateUser",query:{id:t},errors:{400:"Bad Request",500:"Server Error"}})}static getImpersonateUserByUserName(t){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser/ImpersonateUserByUserName",query:{username:t},errors:{400:"Bad Request",500:"Server Error"}})}static canImpersonate(){return e(r,{method:"GET",url:"/api/v1/ImpersonateUser/CanImpersonate",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static startImpersonating(t){return e(r,{method:"PUT",url:"/api/v1/ImpersonateUser/StartImpersonating",query:{username:t},errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}static stopImpersonating(){return e(r,{method:"PUT",url:"/api/v1/ImpersonateUser/StopImpersonating",errors:{400:"Bad Request",404:"Not Found",500:"Server Error"}})}}export{t as ImpersonateUserService};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './queryKeys';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e="getFeatureToggleFromAppName",o="getTutorialsForApp",t="getTutorialsSasToken",r=[e,o,t];export{e as GET_FEATURE_TOGGLES_FOR_APP,o as GET_TUTORIALS_FOR_APP,t as GET_TUTORIALS_SAS_TOKEN,r as SAM_QUERIES};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Feature}from"./components/Feature/Feature.js";export{FeatureToggleProvider,useFeatureToggleContext}from"./providers/FeatureToggleProvider.js";export{useFeatureToggling}from"./hooks/useFeatureToggling.js";export{useReleaseNotesQuery}from"./hooks/useReleaseNotesQuery.js";export{TutorialProvider}from"./providers/TutorialProvider/TutorialProvider.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_SAM,getPortalToken}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";
|
|
1
|
+
export{Feature}from"./components/Feature/Feature.js";export{FeatureToggleProvider,useFeatureToggleContext}from"./providers/FeatureToggleProvider.js";export{useFeatureToggling}from"./hooks/useFeatureToggling.js";export{useReleaseNotesQuery}from"./hooks/useReleaseNotesQuery.js";export{TutorialProvider}from"./providers/TutorialProvider/TutorialProvider.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_SAM,getPortalToken}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_TUTORIALS_FOR_APP,GET_TUTORIALS_SAS_TOKEN,SAM_QUERIES}from"./constants/queryKeys.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{createContext as r,useContext as o}from"react";import{useQuery as t}from"@tanstack/react-query";import{FeatureToggleService as i}from"../api/services/FeatureToggleService.js";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createContext as r,useContext as o}from"react";import{useQuery as t}from"@tanstack/react-query";import{FeatureToggleService as i}from"../api/services/FeatureToggleService.js";import{GET_FEATURE_TOGGLES_FOR_APP as n}from"../constants/queryKeys.js";import*as m from"../utils/environment.js";import{getEnvironmentName as a}from"../utils/environment.js";const{getAppName:s}=m,p=(e,r)=>!!(e&&r&&r.length>0)&&r.map((e=>e.mail.toLowerCase())).includes(e.toLowerCase()),u=r(void 0);function c(){const e=o(u);if(void 0===e)throw new Error("'useFeatureToggleContext' must be used within provider");return e}const v=({children:r,loadingComponent:o,overrideAppName:m,overrideEnvironment:p})=>{const c=m??s(import.meta.env.VITE_NAME),v=p??a(import.meta.env.VITE_ENVIRONMENT_NAME),{data:d,isLoading:l,isError:g}=t({queryKey:[n],queryFn:async()=>i.getFeatureToggleFromApplicationName(c)});return l&&o?o:e(u.Provider,{value:{features:d?.features,isLoading:l,isError:g,environmentName:v},children:r})};export{v as FeatureToggleProvider,p as isUserInActiveUserArray,c as useFeatureToggleContext};
|
|
@@ -3,5 +3,3 @@ export declare const DIALOG_EDGE_MARGIN = 24;
|
|
|
3
3
|
export declare const TUTORIAL_SEARCH_PARAM_KEY = "tutorial";
|
|
4
4
|
export declare const TUTORIAL_LOCALSTORAGE_VALUE_STRING = "hasCompletedTutorial";
|
|
5
5
|
export declare const TUTORIAL_HIGHLIGHTER_DATATEST_ID = "tutorial-highlighter";
|
|
6
|
-
export declare const GET_TUTORIALS_FOR_APP = "getTutorialsForApp";
|
|
7
|
-
export declare const GET_TUTORIALS_SAS_TOKEN = "getTutorialsSasToken";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=8,o=24,
|
|
1
|
+
const t=8,o=24,i="tutorial",l="hasCompletedTutorial",r="tutorial-highlighter";export{o as DIALOG_EDGE_MARGIN,t as HIGHLIGHT_PADDING,r as TUTORIAL_HIGHLIGHTER_DATATEST_ID,l as TUTORIAL_LOCALSTORAGE_VALUE_STRING,i as TUTORIAL_SEARCH_PARAM_KEY};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as r}from"react";import{useQuery as o}from"@tanstack/react-query";import{
|
|
1
|
+
import{useContext as r}from"react";import{useQuery as o}from"@tanstack/react-query";import{TutorialService as t}from"../../api/services/TutorialService.js";import{GET_TUTORIALS_FOR_APP as e,GET_TUTORIALS_SAS_TOKEN as i}from"../../constants/queryKeys.js";import{TutorialContext as s}from"./TutorialProvider.js";const u=r=>o({queryKey:[e,r],queryFn:()=>t.getTutorialsForApplication(r)}),a=()=>o({queryKey:[i],queryFn:()=>t.getTutorialSasToken()}),n=()=>{const o=r(s);if(void 0===o)throw new Error("'useTutorial' must be used within a TutorialProvider");return o};export{a as useGetTutorialSasToken,u as useGetTutorialsForApp,n as useTutorial};
|