@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.
@@ -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,4 @@
1
- import type { BucketBalance } from './BucketBalance';
2
1
  import type { Money } from './Money';
3
2
  export type Balance = {
4
3
  total: Array<Money>;
5
- perBucketBreakdown: Array<BucketBalance>;
6
4
  };
@@ -1,6 +1,6 @@
1
1
  import type { ActualBalance } from './ActualBalance';
2
- import type { Balance } from './Balance';
2
+ import type { BucketableBalance } from './BucketableBalance';
3
3
  export type BalanceReport = {
4
4
  actualBalance: ActualBalance;
5
- effectiveBalance: Balance;
5
+ effectiveBalance: BucketableBalance;
6
6
  };
@@ -0,0 +1,6 @@
1
+ import type { BucketBalance } from './BucketBalance';
2
+ import type { Money } from './Money';
3
+ export type BucketableBalance = {
4
+ total: Array<Money>;
5
+ perBucketBreakdown: Array<BucketBalance>;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
- import type { Balance } from './Balance';
1
+ import type { BucketableBalance } from './BucketableBalance';
2
2
  export type MemberBalanceReport = {
3
- balance: Balance;
4
- income: Balance;
3
+ balance: BucketableBalance;
4
+ income: BucketableBalance;
5
5
  };
@@ -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: Array<BucketBreakdown>;
12
+ bucketBreakdown?: Array<BucketBreakdown> | null;
12
13
  };
@@ -2,6 +2,7 @@ import type { BucketBreakdown } from './BucketBreakdown';
2
2
  import type { Money } from './Money';
3
3
  export type Settlement = {
4
4
  id: string;
5
+ entryId: string;
5
6
  name: string;
6
7
  description?: string | null;
7
8
  memberId: string;
@@ -1,7 +1,5 @@
1
- import type { BucketBalance } from './BucketBalance';
2
1
  import type { Money } from './Money';
3
2
  export type WalletBalance = {
4
3
  total: Array<Money>;
5
- perBucketBreakdown: Array<BucketBalance>;
6
4
  walletId: string;
7
5
  };
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.0.0-18c068fa",
3
+ "version": "0.0.0-215c2fbb",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [