@incomy/platform-sdk 0.0.0-18c068fa → 0.0.0-215c2fbb
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.
- package/dist/services/core/index.d.ts +1 -0
- package/dist/services/core/models/Balance.d.ts +0 -2
- package/dist/services/core/models/BalanceReport.d.ts +2 -2
- package/dist/services/core/models/BucketableBalance.d.ts +6 -0
- package/dist/services/core/models/BucketableBalance.js +1 -0
- package/dist/services/core/models/MemberBalanceReport.d.ts +3 -3
- package/dist/services/core/models/Operation.d.ts +2 -1
- package/dist/services/core/models/Settlement.d.ts +1 -0
- package/dist/services/core/models/WalletBalance.d.ts +0 -2
- package/dist/services/core/services/ProjectWalletsService.d.ts +8 -0
- package/dist/services/core/services/ProjectWalletsService.js +16 -0
- package/dist/services/core/services/ProjectsService.d.ts +8 -0
- package/dist/services/core/services/ProjectsService.js +16 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export type { ActualBalance } from './models/ActualBalance';
|
|
|
6
6
|
export type { Balance } from './models/Balance';
|
|
7
7
|
export type { BalanceReport } from './models/BalanceReport';
|
|
8
8
|
export type { Bucket } from './models/Bucket';
|
|
9
|
+
export type { BucketableBalance } from './models/BucketableBalance';
|
|
9
10
|
export type { BucketBalance } from './models/BucketBalance';
|
|
10
11
|
export type { BucketBreakdown } from './models/BucketBreakdown';
|
|
11
12
|
export type { BucketEdit } from './models/BucketEdit';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ActualBalance } from './ActualBalance';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BucketableBalance } from './BucketableBalance';
|
|
3
3
|
export type BalanceReport = {
|
|
4
4
|
actualBalance: ActualBalance;
|
|
5
|
-
effectiveBalance:
|
|
5
|
+
effectiveBalance: BucketableBalance;
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,11 +2,12 @@ import type { BucketBreakdown } from './BucketBreakdown';
|
|
|
2
2
|
import type { Money } from './Money';
|
|
3
3
|
export type Operation = {
|
|
4
4
|
id: string;
|
|
5
|
+
entryId: string;
|
|
5
6
|
name: string;
|
|
6
7
|
time: string;
|
|
7
8
|
originWalletId?: string | null;
|
|
8
9
|
targetWalletId?: string | null;
|
|
9
10
|
type: 'in' | 'out' | 'transfer';
|
|
10
11
|
money: Money;
|
|
11
|
-
bucketBreakdown
|
|
12
|
+
bucketBreakdown?: Array<BucketBreakdown> | null;
|
|
12
13
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Balance } from '../models/Balance';
|
|
2
|
+
import type { Operation } from '../models/Operation';
|
|
2
3
|
import type { ProjectWallet } from '../models/ProjectWallet';
|
|
3
4
|
import type { ProjectWalletEdit } from '../models/ProjectWalletEdit';
|
|
4
5
|
import type { ProjectWalletInsert } from '../models/ProjectWalletInsert';
|
|
@@ -46,4 +47,11 @@ export declare class ProjectWalletsService {
|
|
|
46
47
|
* @throws ApiError
|
|
47
48
|
*/
|
|
48
49
|
static getProjectsWalletsBalance(projectId: string, walletId: string): CancelablePromise<Balance>;
|
|
50
|
+
/**
|
|
51
|
+
* @param projectId
|
|
52
|
+
* @param walletId
|
|
53
|
+
* @returns Operation OK
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static getProjectsWalletsOperations(projectId: string, walletId: string): CancelablePromise<Array<Operation>>;
|
|
49
57
|
}
|
|
@@ -99,4 +99,20 @@ export class ProjectWalletsService {
|
|
|
99
99
|
},
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* @param projectId
|
|
104
|
+
* @param walletId
|
|
105
|
+
* @returns Operation OK
|
|
106
|
+
* @throws ApiError
|
|
107
|
+
*/
|
|
108
|
+
static getProjectsWalletsOperations(projectId, walletId) {
|
|
109
|
+
return __request(OpenAPI, {
|
|
110
|
+
method: 'GET',
|
|
111
|
+
url: '/projects/{projectId}/wallets/{walletId}/operations',
|
|
112
|
+
path: {
|
|
113
|
+
'projectId': projectId,
|
|
114
|
+
'walletId': walletId,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
}
|
|
102
118
|
}
|
|
@@ -6,6 +6,7 @@ import type { MemberInsert } from '../models/MemberInsert';
|
|
|
6
6
|
import type { Project } from '../models/Project';
|
|
7
7
|
import type { ProjectEdit } from '../models/ProjectEdit';
|
|
8
8
|
import type { ProjectInsert } from '../models/ProjectInsert';
|
|
9
|
+
import type { Settlement } from '../models/Settlement';
|
|
9
10
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
11
|
export declare class ProjectsService {
|
|
11
12
|
/**
|
|
@@ -86,4 +87,11 @@ export declare class ProjectsService {
|
|
|
86
87
|
* @throws ApiError
|
|
87
88
|
*/
|
|
88
89
|
static getProjectsMembersBalance(projectId: string, memberId: string): CancelablePromise<MemberBalanceReport>;
|
|
90
|
+
/**
|
|
91
|
+
* @param projectId
|
|
92
|
+
* @param memberId
|
|
93
|
+
* @returns Settlement OK
|
|
94
|
+
* @throws ApiError
|
|
95
|
+
*/
|
|
96
|
+
static getProjectsMembersSettlements(projectId: string, memberId: string): CancelablePromise<Array<Settlement>>;
|
|
89
97
|
}
|
|
@@ -181,4 +181,20 @@ export class ProjectsService {
|
|
|
181
181
|
},
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* @param projectId
|
|
186
|
+
* @param memberId
|
|
187
|
+
* @returns Settlement OK
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
static getProjectsMembersSettlements(projectId, memberId) {
|
|
191
|
+
return __request(OpenAPI, {
|
|
192
|
+
method: 'GET',
|
|
193
|
+
url: '/projects/{projectId}/members/{memberId}/settlements',
|
|
194
|
+
path: {
|
|
195
|
+
'projectId': projectId,
|
|
196
|
+
'memberId': memberId,
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
}
|
|
184
200
|
}
|