@equinor/subsurface-app-management 5.2.1 → 5.2.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.
@@ -25,7 +25,10 @@ export type { MyFeatureDto } from './models/MyFeatureDto';
25
25
  export type { Faq } from './models/Faq';
26
26
  export type { FaqDto } from './models/FaqDto';
27
27
  export type { FaqCategoriesWithFaqDto } from './models/FaqCategoriesWithFaqDto';
28
- export type { BrowseImpactMetricDto } from './models/BrowseImpactMetricDto';
28
+ export type { ImpactMetric } from './models/ImpactMetric';
29
+ export type { ImpactMetricDto } from './models/ImpactMetricDto';
30
+ export type { ImpactUrl } from './models/ImpactUrl';
31
+ export type { ImpactUrlDto } from './models/ImpactUrlDto';
29
32
  export { AmplifyApplicationService } from './services/AmplifyApplicationService';
30
33
  export { FeatureToggleService } from './services/FeatureToggleService';
31
34
  export { ImpersonateUserService } from './services/ImpersonateUserService';
@@ -0,0 +1,13 @@
1
+ import type { ImpactUrl } from './ImpactUrl';
2
+ export type ImpactMetric = {
3
+ applicationName: string;
4
+ featureName: string;
5
+ userType: string;
6
+ id: string;
7
+ startTimeStamp?: string;
8
+ endTimeStamp?: string;
9
+ clickCount: number;
10
+ listUrlIds?: Array<ImpactUrl> | null;
11
+ userId: string;
12
+ isSuccessful?: boolean | null;
13
+ };
@@ -0,0 +1,10 @@
1
+ import type { ImpactUrlDto } from './ImpactUrlDto';
2
+ export type ImpactMetricDto = {
3
+ featureName: string;
4
+ userType: string;
5
+ startTimeStamp?: string;
6
+ endTimeStamp?: string;
7
+ listUrlIds?: Array<ImpactUrlDto> | null;
8
+ userId: string;
9
+ isSuccessful?: boolean;
10
+ };
@@ -0,0 +1,6 @@
1
+ export type ImpactUrl = {
2
+ id: number;
3
+ urlId: string;
4
+ timeStamp: string;
5
+ fkImpactMetricId: string;
6
+ };
@@ -1,4 +1,4 @@
1
- export type BrowseImpactUrlDto = {
1
+ export type ImpactUrlDto = {
2
2
  urlId: string;
3
3
  timeStamp: string;
4
4
  };
@@ -1,11 +1,12 @@
1
- import type { BrowseImpactMetric } from '../models/BrowseImpactMetric';
2
- import type { BrowseImpactMetricDto } from '../models/BrowseImpactMetricDto';
1
+ import type { ImpactMetric } from '../models/ImpactMetric';
2
+ import type { ImpactMetricDto } from '../models/ImpactMetricDto';
3
3
  import type { CancelablePromise } from '../core/CancelablePromise';
4
4
  export declare class AppAnalyticsService {
5
5
  /**
6
+ * @param applicationName - The name of the application
6
7
  * @param requestBody
7
- * @returns BrowseImpactMetric OK
8
+ * @returns ImpactMetric OK
8
9
  * @throws ApiError
9
10
  */
10
- static postApiV1AppAnalyticsPwexAddBrowseImpactMetrics(requestBody?: BrowseImpactMetricDto): CancelablePromise<BrowseImpactMetric>;
11
+ static postApiV1AppAnalyticsAddImpactMetrics(applicationName: string, requestBody?: ImpactMetricDto): CancelablePromise<ImpactMetric>;
11
12
  }
@@ -1 +1 @@
1
- import{OpenAPI_SAM as r}from"../core/OpenAPI.js";import{request as e}from"../core/request.js";class o{static postApiV1AppAnalyticsPwexAddBrowseImpactMetrics(o){return e(r,{method:"POST",url:"/api/v1/AppAnalytics/pwex/addBrowseImpactMetrics",body:o,mediaType:"application/json",errors:{404:"Not Found"}})}}export{o as AppAnalyticsService};
1
+ import{OpenAPI_SAM as p}from"../core/OpenAPI.js";import{request as t}from"../core/request.js";class a{static postApiV1AppAnalyticsAddImpactMetrics(a,i){return t(p,{method:"POST",url:"/api/v1/AppAnalytics/{applicationName}/impact-metrics",path:{applicationName:a},body:i,mediaType:"application/json",errors:{404:"Not Found"}})}}export{a as AppAnalyticsService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/subsurface-app-management",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "React Typescript components/hooks to communicate with equinor/sam",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,10 +0,0 @@
1
- import type { BrowseImpactUrl } from './BrowseImpactUrl';
2
- export type BrowseImpactMetric = {
3
- id: string;
4
- startTimeStamp: string;
5
- endTimeStamp: string;
6
- clickCount: number;
7
- listUrlIds?: Array<BrowseImpactUrl> | null;
8
- userId: string;
9
- isSuccessful?: boolean | null;
10
- };
@@ -1,8 +0,0 @@
1
- import type { BrowseImpactUrlDto } from './BrowseImpactUrlDto';
2
- export type BrowseImpactMetricDto = {
3
- startTimeStamp: string;
4
- endTimeStamp: string;
5
- listUrlIds?: Array<BrowseImpactUrlDto> | null;
6
- userId: string;
7
- isSuccessful: boolean;
8
- };
@@ -1,6 +0,0 @@
1
- export type BrowseImpactUrl = {
2
- id: number;
3
- urlId: string;
4
- timeStamp: string;
5
- fkBrowseImpactMetricId: string;
6
- };