@hapl/api-queries 0.2.79 → 0.2.80

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.
@@ -18,7 +18,7 @@ export declare type UpdateCompanyUrlParams = {
18
18
  export declare type UpdateCompanyHeaders = {
19
19
  'x-auth-hc': string;
20
20
  };
21
- export declare type UpdateCompanyBody = Partial<Company>;
21
+ export declare type UpdateCompanyBody = Partial<Omit<Company, 'id' | 'createdAt' | 'dealCount' | 'yearIncomes' | 'receiptAmount' | 'commissionSum'>>;
22
22
  export declare type UpdateCompanyData = AxiosResponse<ResultData>;
23
23
  export declare type UpdateCompanyError = AxiosError<ResultError>;
24
24
  export declare type UpdateCompanyConfig = {
@@ -1,4 +1,5 @@
1
1
  import { MoneyAmount } from './Currency';
2
+ import { User } from './User';
2
3
  export declare type Company = {
3
4
  bankName: string;
4
5
  bic: string;
@@ -25,4 +26,10 @@ export declare type Company = {
25
26
  receiptAmount: MoneyAmount;
26
27
  commissionSum: MoneyAmount;
27
28
  comment?: string;
29
+ employees: Array<{
30
+ isMain: boolean;
31
+ user: Partial<User> & {
32
+ id: number;
33
+ };
34
+ }>;
28
35
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.79",
2
+ "version": "0.2.80",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -9,7 +9,9 @@ type ResultError = ErrorData['data']['error'];
9
9
 
10
10
  export type UpdateCompanyUrlParams = { id: number };
11
11
  export type UpdateCompanyHeaders = { 'x-auth-hc': string };
12
- export type UpdateCompanyBody = Partial<Company>;
12
+ export type UpdateCompanyBody = Partial<
13
+ Omit<Company, 'id' | 'createdAt' | 'dealCount' | 'yearIncomes' | 'receiptAmount' | 'commissionSum'>
14
+ >;
13
15
  export type UpdateCompanyData = AxiosResponse<ResultData>;
14
16
  export type UpdateCompanyError = AxiosError<ResultError>;
15
17
  export type UpdateCompanyConfig = {
@@ -1,4 +1,5 @@
1
1
  import { MoneyAmount } from './Currency';
2
+ import { User } from './User';
2
3
 
3
4
  export type Company = {
4
5
  bankName: string;
@@ -26,4 +27,5 @@ export type Company = {
26
27
  receiptAmount: MoneyAmount;
27
28
  commissionSum: MoneyAmount;
28
29
  comment?: string;
30
+ employees: Array<{ isMain: boolean; user: Partial<User> & { id: number } }>;
29
31
  };