@addsign/moje-agenda-shared-lib 0.0.21 → 0.0.23

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- interface IPageTitleProps {
2
+ interface IPageTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
3
  textSize?: string;
4
4
  children?: React.ReactNode;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- interface ISectionTitleProps {
2
+ interface ISectionTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
3
  textSize?: string;
4
4
  children?: React.ReactNode;
5
5
  }
package/dist/types.d.ts CHANGED
@@ -15,9 +15,7 @@ export interface IUserInfo {
15
15
  positionNumber: string;
16
16
  userId: string;
17
17
  }
18
- export interface IAuthApps {
19
- [index: number]: string;
20
- }
18
+ export type IAuthApps = string[];
21
19
  export interface IContextValue {
22
20
  userInfo: IUserInfo;
23
21
  apiClient: AxiosInstance;
@@ -34,7 +32,7 @@ export type IFormProps = {
34
32
  context: unknown;
35
33
  onSuccess: (path: string, message?: string) => void;
36
34
  };
37
- export interface IPositionEmployee {
35
+ export interface IPosition {
38
36
  id: number;
39
37
  departmentId: string;
40
38
  positionName: string;
@@ -42,5 +40,10 @@ export interface IPositionEmployee {
42
40
  manager: string;
43
41
  virtual: boolean;
44
42
  title: string;
43
+ }
44
+ export interface IPositionEmployee extends IPosition {
45
45
  employee: IUserInfo;
46
46
  }
47
+ export interface IEmployeePosition extends IUserInfo {
48
+ position: IPosition;
49
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@addsign/moje-agenda-shared-lib",
3
3
  "private": false,
4
- "version": "0.0.21",
4
+ "version": "0.0.23",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",