@incomy/platform-sdk 0.4.0-49 → 0.4.0-51

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.
@@ -2,7 +2,6 @@ export { ApiError } from './core/ApiError';
2
2
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
3
3
  export { OpenAPI } from './core/OpenAPI';
4
4
  export type { OpenAPIConfig } from './core/OpenAPI';
5
- export type { ActualBalance } from './models/ActualBalance';
6
5
  export type { Balance } from './models/Balance';
7
6
  export type { BalanceReport } from './models/BalanceReport';
8
7
  export type { Bucket } from './models/Bucket';
@@ -27,6 +26,8 @@ export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
27
26
  export type { LogOperation } from './models/LogOperation';
28
27
  export type { LogSettlement } from './models/LogSettlement';
29
28
  export type { Member } from './models/Member';
29
+ export type { MemberBalance } from './models/MemberBalance';
30
+ export type { MemberBalancePaginatedList } from './models/MemberBalancePaginatedList';
30
31
  export type { MemberBalanceReport } from './models/MemberBalanceReport';
31
32
  export type { MemberEdit } from './models/MemberEdit';
32
33
  export type { MemberInsert } from './models/MemberInsert';
@@ -64,6 +65,7 @@ export type { TemplateInsert } from './models/TemplateInsert';
64
65
  export type { TemplateOperationDefinition } from './models/TemplateOperationDefinition';
65
66
  export type { TemplateSettlementDefinition } from './models/TemplateSettlementDefinition';
66
67
  export type { WalletBalance } from './models/WalletBalance';
68
+ export type { WalletBalancePaginatedList } from './models/WalletBalancePaginatedList';
67
69
  export { BucketsService } from './services/BucketsService';
68
70
  export { EntriesService } from './services/EntriesService';
69
71
  export { LabelsService } from './services/LabelsService';
@@ -1,6 +1,5 @@
1
- import type { ActualBalance } from './ActualBalance';
2
1
  import type { BucketableBalance } from './BucketableBalance';
3
2
  export type BalanceReport = {
4
- actualBalance: ActualBalance;
3
+ actualBalance: BucketableBalance;
5
4
  effectiveBalance: BucketableBalance;
6
5
  };
@@ -1,4 +1,6 @@
1
+ import type { Money } from './Money';
1
2
  export type Member = {
2
3
  id: string;
3
4
  name: string;
5
+ balance?: Array<Money> | null;
4
6
  };
@@ -0,0 +1,5 @@
1
+ import type { Money } from './Money';
2
+ export type MemberBalance = {
3
+ total: Array<Money>;
4
+ memberId: string;
5
+ };
@@ -0,0 +1,16 @@
1
+ import type { MemberBalance } from './MemberBalance';
2
+ export type MemberBalancePaginatedList = {
3
+ /**
4
+ * Token item to start the next query from; Empty start from the beginning
5
+ */
6
+ next: string;
7
+ /**
8
+ * Estimated total count over all pages. -1 means the total count could not be determined.
9
+ */
10
+ totalCount?: number;
11
+ /**
12
+ * Results for the current query
13
+ */
14
+ items: Array<MemberBalance>;
15
+ meta?: Record<string, string | null> | null;
16
+ };
@@ -1,5 +1,7 @@
1
+ import type { Money } from './Money';
1
2
  export type ProjectWallet = {
2
3
  id: string;
3
4
  name: string;
4
5
  ownerId?: string | null;
6
+ balance?: Array<Money> | null;
5
7
  };
@@ -0,0 +1,16 @@
1
+ import type { WalletBalance } from './WalletBalance';
2
+ export type WalletBalancePaginatedList = {
3
+ /**
4
+ * Token item to start the next query from; Empty start from the beginning
5
+ */
6
+ next: string;
7
+ /**
8
+ * Estimated total count over all pages. -1 means the total count could not be determined.
9
+ */
10
+ totalCount?: number;
11
+ /**
12
+ * Results for the current query
13
+ */
14
+ items: Array<WalletBalance>;
15
+ meta?: Record<string, string | null> | null;
16
+ };
@@ -11,10 +11,11 @@ export declare class MembersService {
11
11
  * @param orderByName
12
12
  * @param limit
13
13
  * @param next
14
+ * @param includeBalance
14
15
  * @returns MemberPaginatedList OK
15
16
  * @throws ApiError
16
17
  */
17
- static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<MemberPaginatedList>;
18
+ static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean): CancelablePromise<MemberPaginatedList>;
18
19
  /**
19
20
  * @param projectId
20
21
  * @param requestBody
@@ -7,10 +7,11 @@ export class MembersService {
7
7
  * @param orderByName
8
8
  * @param limit
9
9
  * @param next
10
+ * @param includeBalance
10
11
  * @returns MemberPaginatedList OK
11
12
  * @throws ApiError
12
13
  */
13
- static getProjectsMembers(projectId, query, orderByName, limit = 100, next) {
14
+ static getProjectsMembers(projectId, query, orderByName, limit = 100, next, includeBalance = false) {
14
15
  return __request(OpenAPI, {
15
16
  method: 'GET',
16
17
  url: '/projects/{projectId}/members',
@@ -22,6 +23,7 @@ export class MembersService {
22
23
  'orderByName': orderByName,
23
24
  'limit': limit,
24
25
  'next': next,
26
+ 'includeBalance': includeBalance,
25
27
  },
26
28
  });
27
29
  }
@@ -6,10 +6,11 @@ import type { CancelablePromise } from '../core/CancelablePromise';
6
6
  export declare class ProjectWalletsService {
7
7
  /**
8
8
  * @param projectId
9
+ * @param includeBalance
9
10
  * @returns ProjectWallet OK
10
11
  * @throws ApiError
11
12
  */
12
- static getProjectsWallets(projectId: string): CancelablePromise<Array<ProjectWallet>>;
13
+ static getProjectsWallets(projectId: string, includeBalance?: boolean): CancelablePromise<Array<ProjectWallet>>;
13
14
  /**
14
15
  * @param projectId
15
16
  * @param requestBody
@@ -3,16 +3,20 @@ import { request as __request } from '../core/request';
3
3
  export class ProjectWalletsService {
4
4
  /**
5
5
  * @param projectId
6
+ * @param includeBalance
6
7
  * @returns ProjectWallet OK
7
8
  * @throws ApiError
8
9
  */
9
- static getProjectsWallets(projectId) {
10
+ static getProjectsWallets(projectId, includeBalance = false) {
10
11
  return __request(OpenAPI, {
11
12
  method: 'GET',
12
13
  url: '/projects/{projectId}/wallets',
13
14
  path: {
14
15
  'projectId': projectId,
15
16
  },
17
+ query: {
18
+ 'includeBalance': includeBalance,
19
+ },
16
20
  });
17
21
  }
18
22
  /**
@@ -1,11 +1,13 @@
1
1
  import type { BalanceReport } from '../models/BalanceReport';
2
2
  import type { LogItemPaginatedList } from '../models/LogItemPaginatedList';
3
+ import type { MemberBalancePaginatedList } from '../models/MemberBalancePaginatedList';
3
4
  import type { Project } from '../models/Project';
4
5
  import type { ProjectBatchGet } from '../models/ProjectBatchGet';
5
6
  import type { ProjectBatchGetResult } from '../models/ProjectBatchGetResult';
6
7
  import type { ProjectEdit } from '../models/ProjectEdit';
7
8
  import type { ProjectInsert } from '../models/ProjectInsert';
8
9
  import type { ProjectPaginatedList } from '../models/ProjectPaginatedList';
10
+ import type { WalletBalancePaginatedList } from '../models/WalletBalancePaginatedList';
9
11
  import type { CancelablePromise } from '../core/CancelablePromise';
10
12
  export declare class ProjectsService {
11
13
  /**
@@ -48,6 +50,26 @@ export declare class ProjectsService {
48
50
  * @throws ApiError
49
51
  */
50
52
  static getProjectsBalance(projectId: string): CancelablePromise<BalanceReport>;
53
+ /**
54
+ * @param projectId
55
+ * @param orderByName
56
+ * @param orderByAmount
57
+ * @param limit
58
+ * @param next
59
+ * @returns MemberBalancePaginatedList OK
60
+ * @throws ApiError
61
+ */
62
+ static getProjectsBalanceMembers(projectId: string, orderByName?: 'Desc' | 'Asc', orderByAmount?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<MemberBalancePaginatedList>;
63
+ /**
64
+ * @param projectId
65
+ * @param orderByName
66
+ * @param orderByAmount
67
+ * @param limit
68
+ * @param next
69
+ * @returns WalletBalancePaginatedList OK
70
+ * @throws ApiError
71
+ */
72
+ static getProjectsBalanceWallets(projectId: string, orderByName?: 'Desc' | 'Asc', orderByAmount?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<WalletBalancePaginatedList>;
51
73
  /**
52
74
  * @param projectId
53
75
  * @param query
@@ -93,6 +93,54 @@ export class ProjectsService {
93
93
  },
94
94
  });
95
95
  }
96
+ /**
97
+ * @param projectId
98
+ * @param orderByName
99
+ * @param orderByAmount
100
+ * @param limit
101
+ * @param next
102
+ * @returns MemberBalancePaginatedList OK
103
+ * @throws ApiError
104
+ */
105
+ static getProjectsBalanceMembers(projectId, orderByName, orderByAmount, limit = 100, next) {
106
+ return __request(OpenAPI, {
107
+ method: 'GET',
108
+ url: '/projects/{projectId}/balance/members',
109
+ path: {
110
+ 'projectId': projectId,
111
+ },
112
+ query: {
113
+ 'orderByName': orderByName,
114
+ 'orderByAmount': orderByAmount,
115
+ 'limit': limit,
116
+ 'next': next,
117
+ },
118
+ });
119
+ }
120
+ /**
121
+ * @param projectId
122
+ * @param orderByName
123
+ * @param orderByAmount
124
+ * @param limit
125
+ * @param next
126
+ * @returns WalletBalancePaginatedList OK
127
+ * @throws ApiError
128
+ */
129
+ static getProjectsBalanceWallets(projectId, orderByName, orderByAmount, limit = 100, next) {
130
+ return __request(OpenAPI, {
131
+ method: 'GET',
132
+ url: '/projects/{projectId}/balance/wallets',
133
+ path: {
134
+ 'projectId': projectId,
135
+ },
136
+ query: {
137
+ 'orderByName': orderByName,
138
+ 'orderByAmount': orderByAmount,
139
+ 'limit': limit,
140
+ 'next': next,
141
+ },
142
+ });
143
+ }
96
144
  /**
97
145
  * @param projectId
98
146
  * @param query
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-49",
3
+ "version": "0.4.0-51",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,8 +0,0 @@
1
- import type { BucketBalance } from './BucketBalance';
2
- import type { Money } from './Money';
3
- import type { WalletBalance } from './WalletBalance';
4
- export type ActualBalance = {
5
- total: Array<Money>;
6
- perBucketBreakdown: Array<BucketBalance>;
7
- perWalletBreakdown: Array<WalletBalance>;
8
- };