@hapl/api-queries 0.1.96 → 0.1.97

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
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { AvailableFunds, AvailableFundsIncomeType, AvailableFundsPaymentType, AvailableFundsCostType, AvailableFundsRealtyType, AvailableFundsPayerType } from '../../../types';
2
+ import { AvailableFunds } from '../../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: AvailableFunds;
@@ -16,14 +16,14 @@ export declare type CreateAvailableFundsHeaders = {
16
16
  'x-auth-hc': string;
17
17
  };
18
18
  export declare type CreateAvailableFundsBody = {
19
- amount: number;
20
- incomeType: AvailableFundsIncomeType;
21
- paymentType: AvailableFundsPaymentType | AvailableFundsCostType;
22
- realtyType: AvailableFundsRealtyType;
23
- receivedAt: string;
19
+ amount: Required<AvailableFunds>['amount'];
20
+ incomeType: Required<AvailableFunds>['incomeType'];
21
+ paymentType: Required<AvailableFunds>['paymentType'];
22
+ realtyType: Required<AvailableFunds>['realtyType'];
23
+ receivedAt: Required<AvailableFunds>['receivedAt'];
24
24
  serviceRequestId: number;
25
- payerType?: AvailableFundsPayerType;
26
- comment?: string;
25
+ comment?: AvailableFunds['comment'];
26
+ payerType?: AvailableFunds['payerType'];
27
27
  dealId?: number;
28
28
  };
29
29
  export declare type CreateAvailableFundsData = AxiosResponse<ResultData>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse, AxiosError } from 'axios';
2
- import { AvailableFunds, AvailableFundsIncomeType, AvailableFundsPaymentType, AvailableFundsCostType, AvailableFundsRealtyType, AvailableFundsPayerType } from '../../../types';
2
+ import { AvailableFunds } from '../../../types';
3
3
  declare type SuccessData = {
4
4
  success: true;
5
5
  data: AvailableFunds;
@@ -19,12 +19,13 @@ export declare type UpdateAvailableFundsHeaders = {
19
19
  'x-auth-hc': string;
20
20
  };
21
21
  export declare type UpdateAvailableFundsBody = {
22
- amount?: number;
23
- incomeType?: AvailableFundsIncomeType;
24
- paymentType?: AvailableFundsPaymentType | AvailableFundsCostType;
25
- realtyType?: AvailableFundsRealtyType;
26
- payerType?: AvailableFundsPayerType;
27
- comment?: string;
22
+ amount?: AvailableFunds['amount'];
23
+ incomeType?: AvailableFunds['incomeType'];
24
+ paymentType?: AvailableFunds['paymentType'];
25
+ realtyType?: AvailableFunds['realtyType'];
26
+ receivedAt?: AvailableFunds['receivedAt'];
27
+ payerType?: AvailableFunds['payerType'];
28
+ comment?: AvailableFunds['comment'];
28
29
  };
29
30
  export declare type UpdateAvailableFundsData = AxiosResponse<ResultData>;
30
31
  export declare type UpdateAvailableFundsError = AxiosError<ResultError>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.96",
2
+ "version": "0.1.97",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -1,12 +1,5 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosTransformer } from 'axios';
2
- import {
3
- AvailableFunds,
4
- AvailableFundsIncomeType,
5
- AvailableFundsPaymentType,
6
- AvailableFundsCostType,
7
- AvailableFundsRealtyType,
8
- AvailableFundsPayerType,
9
- } from '../../../types';
2
+ import { AvailableFunds } from '../../../types';
10
3
 
11
4
  type SuccessData = { success: true; data: AvailableFunds };
12
5
  type ErrorData = { success: false; data: { error: string } };
@@ -16,16 +9,17 @@ type ResultError = ErrorData['data']['error'];
16
9
 
17
10
  export type CreateAvailableFundsHeaders = { 'x-auth-hc': string };
18
11
  export type CreateAvailableFundsBody = {
19
- amount: number;
20
- incomeType: AvailableFundsIncomeType;
21
- paymentType: AvailableFundsPaymentType | AvailableFundsCostType;
22
- realtyType: AvailableFundsRealtyType;
23
- receivedAt: string;
12
+ amount: Required<AvailableFunds>['amount'];
13
+ incomeType: Required<AvailableFunds>['incomeType'];
14
+ paymentType: Required<AvailableFunds>['paymentType'];
15
+ realtyType: Required<AvailableFunds>['realtyType'];
16
+ receivedAt: Required<AvailableFunds>['receivedAt'];
24
17
  serviceRequestId: number;
25
- payerType?: AvailableFundsPayerType;
26
- comment?: string;
18
+ comment?: AvailableFunds['comment'];
19
+ payerType?: AvailableFunds['payerType'];
27
20
  dealId?: number;
28
21
  };
22
+
29
23
  export type CreateAvailableFundsData = AxiosResponse<ResultData>;
30
24
  export type CreateAvailableFundsError = AxiosError<ResultError>;
31
25
  export type CreateAvailableFundsConfig = {
@@ -1,13 +1,6 @@
1
1
  import axios, { AxiosResponse, AxiosError, AxiosTransformer } from 'axios';
2
2
 
3
- import {
4
- AvailableFunds,
5
- AvailableFundsIncomeType,
6
- AvailableFundsPaymentType,
7
- AvailableFundsCostType,
8
- AvailableFundsRealtyType,
9
- AvailableFundsPayerType,
10
- } from '../../../types';
3
+ import { AvailableFunds } from '../../../types';
11
4
 
12
5
  type SuccessData = { success: true; data: AvailableFunds };
13
6
  type ErrorData = { success: false; data: { error: string } };
@@ -18,13 +11,15 @@ type ResultError = ErrorData['data']['error'];
18
11
  export type UpdateAvailableFundsUrlParams = { id: number };
19
12
  export type UpdateAvailableFundsHeaders = { 'x-auth-hc': string };
20
13
  export type UpdateAvailableFundsBody = {
21
- amount?: number;
22
- incomeType?: AvailableFundsIncomeType;
23
- paymentType?: AvailableFundsPaymentType | AvailableFundsCostType;
24
- realtyType?: AvailableFundsRealtyType;
25
- payerType?: AvailableFundsPayerType;
26
- comment?: string;
14
+ amount?: AvailableFunds['amount'];
15
+ incomeType?: AvailableFunds['incomeType'];
16
+ paymentType?: AvailableFunds['paymentType'];
17
+ realtyType?: AvailableFunds['realtyType'];
18
+ receivedAt?: AvailableFunds['receivedAt'];
19
+ payerType?: AvailableFunds['payerType'];
20
+ comment?: AvailableFunds['comment'];
27
21
  };
22
+
28
23
  export type UpdateAvailableFundsData = AxiosResponse<ResultData>;
29
24
  export type UpdateAvailableFundsError = AxiosError<ResultError>;
30
25
  export type UpdateAvailableFundsConfig = {