@equinor/subsurface-app-management 5.0.0 → 5.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.
@@ -23,7 +23,8 @@ export type { StepDto } from './models/StepDto';
23
23
  export { TutorialPosition } from './models/TutorialPosition';
24
24
  export type { MyFeatureDto } from './models/MyFeatureDto';
25
25
  export type { Faq } from './models/Faq';
26
- export type { FaqCategory } from './models/FaqCategory';
26
+ export type { FaqDto } from './models/FaqDto';
27
+ export type { FaqCategoriesWithFaqDto } from './models/FaqCategoriesWithFaqDto';
27
28
  export { AmplifyApplicationService } from './services/AmplifyApplicationService';
28
29
  export { FeatureToggleService } from './services/FeatureToggleService';
29
30
  export { ImpersonateUserService } from './services/ImpersonateUserService';
@@ -1,9 +1,15 @@
1
1
  export type Faq = {
2
+ updatedBy?: string | null;
3
+ updatedByName?: string | null;
4
+ updatedDate?: string | null;
5
+ createdBy: string;
6
+ createdByName: string;
7
+ createdDate: string;
2
8
  id: number;
3
9
  question: string;
4
10
  answer: string;
11
+ visible: boolean;
5
12
  orderBy?: number | null;
6
- faqCategoryId: number;
7
- updatedDate?: string | null;
8
- createdDate?: string | null;
13
+ roles?: Array<string> | null;
14
+ categoryId: number;
9
15
  };
@@ -0,0 +1,13 @@
1
+ import type { FaqDto } from './FaqDto';
2
+ export type FaqCategoriesWithFaqDto = {
3
+ id: number;
4
+ fkParentCategoryId: number;
5
+ categoryName: string;
6
+ orderBy?: number | null;
7
+ visible: boolean;
8
+ applicationId: string;
9
+ faqs?: Array<FaqDto> | null;
10
+ updatedDate?: string | null;
11
+ createdDate?: string | null;
12
+ subCategories?: Array<FaqCategoriesWithFaqDto> | null;
13
+ };
@@ -0,0 +1,11 @@
1
+ export type FaqDto = {
2
+ id: number;
3
+ question?: string | null;
4
+ answer?: string | null;
5
+ visible?: boolean | null;
6
+ orderBy?: number | null;
7
+ roles?: Array<string> | null;
8
+ categoryId: number;
9
+ updatedDate?: string | null;
10
+ createdDate?: string | null;
11
+ };
@@ -1,6 +1,6 @@
1
1
  import type { Faq } from '../models/Faq';
2
- import type { FaqCategory } from '../models/FaqCategory';
3
2
  import type { CancelablePromise } from '../core/CancelablePromise';
3
+ import type { FaqCategoriesWithFaqDto } from '../models/FaqCategoriesWithFaqDto';
4
4
  export declare class FaqService {
5
5
  /**
6
6
  * Get FAQ categories and related FAQs based on application id
@@ -8,7 +8,7 @@ export declare class FaqService {
8
8
  * @returns FaqCategory OK
9
9
  * @throws ApiError
10
10
  */
11
- static getCategoriesWithFaqsFromApplicationName(applicationName: string): CancelablePromise<Array<FaqCategory>>;
11
+ static getCategoriesWithFaqsFromApplicationName(applicationName: string): CancelablePromise<Array<FaqCategoriesWithFaqDto>>;
12
12
  /**
13
13
  * Get FAQ image
14
14
  * @param path
@@ -22,7 +22,7 @@ export declare class FaqService {
22
22
  * @returns FaqCategory OK
23
23
  * @throws ApiError
24
24
  */
25
- static getFaqCategoriesFromApplicationId(applicationId: string): CancelablePromise<Array<FaqCategory>>;
25
+ static getFaqCategoriesFromApplicationId(applicationId: string): CancelablePromise<Array<FaqCategoriesWithFaqDto>>;
26
26
  /**
27
27
  * Get FAQs from category id
28
28
  * @param categoryId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/subsurface-app-management",
3
- "version": "5.0.0",
3
+ "version": "5.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",
@@ -1,10 +0,0 @@
1
- import { Faq } from './..';
2
- export type FaqCategory = {
3
- id: number;
4
- categoryName: string;
5
- orderBy?: number | null;
6
- applicationId: string;
7
- faqs: Array<Faq>;
8
- updatedDate?: string | null;
9
- createdDate?: string | null;
10
- };