@incomy/platform-sdk 0.4.0-151 → 0.4.0-157
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/hub/models/Member.d.ts +8 -0
- package/dist/services/hub/models/ProjectWallet.d.ts +9 -0
- package/dist/services/hub/models/ProjectWalletEdit.d.ts +4 -0
- package/dist/services/hub/models/ProjectWalletInsert.d.ts +1 -0
- package/dist/services/hub/services/MembersService.d.ts +4 -2
- package/dist/services/hub/services/MembersService.js +8 -2
- package/dist/services/hub/services/ProjectWalletsService.d.ts +4 -2
- package/dist/services/hub/services/ProjectWalletsService.js +8 -2
- package/package.json +1 -1
|
@@ -3,4 +3,12 @@ export type Member = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
balance?: Array<Money> | null;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the member can be deleted. Null when not requested (see includeDeletability query param).
|
|
8
|
+
*/
|
|
9
|
+
canDelete?: boolean | null;
|
|
10
|
+
/**
|
|
11
|
+
* Reason code why the member cannot be deleted. Null when it can be deleted or when not requested.
|
|
12
|
+
*/
|
|
13
|
+
deleteBlockedReason?: 'hasAccruals' | 'ownsWalletWithEvents' | null;
|
|
6
14
|
};
|
|
@@ -3,5 +3,14 @@ export type ProjectWallet = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
ownerId?: string | null;
|
|
6
|
+
defaultCurrency?: string | null;
|
|
6
7
|
balance?: Array<Money> | null;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the wallet can be deleted. Null when not requested (see includeDeletability query param).
|
|
10
|
+
*/
|
|
11
|
+
canDelete?: boolean | null;
|
|
12
|
+
/**
|
|
13
|
+
* Reason code why the wallet cannot be deleted. Null when it can be deleted or when not requested.
|
|
14
|
+
*/
|
|
15
|
+
deleteBlockedReason?: 'hasAssociatedEvents' | null;
|
|
7
16
|
};
|
|
@@ -12,10 +12,11 @@ export declare class MembersService {
|
|
|
12
12
|
* @param limit
|
|
13
13
|
* @param next
|
|
14
14
|
* @param includeBalance
|
|
15
|
+
* @param includeDeletability
|
|
15
16
|
* @returns MemberPaginatedList OK
|
|
16
17
|
* @throws ApiError
|
|
17
18
|
*/
|
|
18
|
-
static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean): CancelablePromise<MemberPaginatedList>;
|
|
19
|
+
static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean, includeDeletability?: boolean): CancelablePromise<MemberPaginatedList>;
|
|
19
20
|
/**
|
|
20
21
|
* @param projectId
|
|
21
22
|
* @param requestBody
|
|
@@ -26,10 +27,11 @@ export declare class MembersService {
|
|
|
26
27
|
/**
|
|
27
28
|
* @param projectId
|
|
28
29
|
* @param memberId
|
|
30
|
+
* @param includeDeletability
|
|
29
31
|
* @returns Member OK
|
|
30
32
|
* @throws ApiError
|
|
31
33
|
*/
|
|
32
|
-
static getProjectsMembers1(projectId: string, memberId: string): CancelablePromise<Member>;
|
|
34
|
+
static getProjectsMembers1(projectId: string, memberId: string, includeDeletability?: boolean): CancelablePromise<Member>;
|
|
33
35
|
/**
|
|
34
36
|
* @param projectId
|
|
35
37
|
* @param memberId
|
|
@@ -8,10 +8,11 @@ export class MembersService {
|
|
|
8
8
|
* @param limit
|
|
9
9
|
* @param next
|
|
10
10
|
* @param includeBalance
|
|
11
|
+
* @param includeDeletability
|
|
11
12
|
* @returns MemberPaginatedList OK
|
|
12
13
|
* @throws ApiError
|
|
13
14
|
*/
|
|
14
|
-
static getProjectsMembers(projectId, query, orderByName, limit = 100, next, includeBalance = false) {
|
|
15
|
+
static getProjectsMembers(projectId, query, orderByName, limit = 100, next, includeBalance = false, includeDeletability = false) {
|
|
15
16
|
return __request(OpenAPI, {
|
|
16
17
|
method: 'GET',
|
|
17
18
|
url: '/projects/{projectId}/members',
|
|
@@ -24,6 +25,7 @@ export class MembersService {
|
|
|
24
25
|
'limit': limit,
|
|
25
26
|
'next': next,
|
|
26
27
|
'includeBalance': includeBalance,
|
|
28
|
+
'includeDeletability': includeDeletability,
|
|
27
29
|
},
|
|
28
30
|
});
|
|
29
31
|
}
|
|
@@ -47,10 +49,11 @@ export class MembersService {
|
|
|
47
49
|
/**
|
|
48
50
|
* @param projectId
|
|
49
51
|
* @param memberId
|
|
52
|
+
* @param includeDeletability
|
|
50
53
|
* @returns Member OK
|
|
51
54
|
* @throws ApiError
|
|
52
55
|
*/
|
|
53
|
-
static getProjectsMembers1(projectId, memberId) {
|
|
56
|
+
static getProjectsMembers1(projectId, memberId, includeDeletability = false) {
|
|
54
57
|
return __request(OpenAPI, {
|
|
55
58
|
method: 'GET',
|
|
56
59
|
url: '/projects/{projectId}/members/{memberId}',
|
|
@@ -58,6 +61,9 @@ export class MembersService {
|
|
|
58
61
|
'projectId': projectId,
|
|
59
62
|
'memberId': memberId,
|
|
60
63
|
},
|
|
64
|
+
query: {
|
|
65
|
+
'includeDeletability': includeDeletability,
|
|
66
|
+
},
|
|
61
67
|
});
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
@@ -12,10 +12,11 @@ export declare class ProjectWalletsService {
|
|
|
12
12
|
* @param limit
|
|
13
13
|
* @param next
|
|
14
14
|
* @param includeBalance
|
|
15
|
+
* @param includeDeletability
|
|
15
16
|
* @returns ProjectWalletPaginatedList OK
|
|
16
17
|
* @throws ApiError
|
|
17
18
|
*/
|
|
18
|
-
static getProjectsWallets(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean): CancelablePromise<ProjectWalletPaginatedList>;
|
|
19
|
+
static getProjectsWallets(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean, includeDeletability?: boolean): CancelablePromise<ProjectWalletPaginatedList>;
|
|
19
20
|
/**
|
|
20
21
|
* @param projectId
|
|
21
22
|
* @param requestBody
|
|
@@ -26,10 +27,11 @@ export declare class ProjectWalletsService {
|
|
|
26
27
|
/**
|
|
27
28
|
* @param projectId
|
|
28
29
|
* @param walletId
|
|
30
|
+
* @param includeDeletability
|
|
29
31
|
* @returns ProjectWallet OK
|
|
30
32
|
* @throws ApiError
|
|
31
33
|
*/
|
|
32
|
-
static getProjectsWallets1(projectId: string, walletId: string): CancelablePromise<ProjectWallet>;
|
|
34
|
+
static getProjectsWallets1(projectId: string, walletId: string, includeDeletability?: boolean): CancelablePromise<ProjectWallet>;
|
|
33
35
|
/**
|
|
34
36
|
* @param projectId
|
|
35
37
|
* @param walletId
|
|
@@ -8,10 +8,11 @@ export class ProjectWalletsService {
|
|
|
8
8
|
* @param limit
|
|
9
9
|
* @param next
|
|
10
10
|
* @param includeBalance
|
|
11
|
+
* @param includeDeletability
|
|
11
12
|
* @returns ProjectWalletPaginatedList OK
|
|
12
13
|
* @throws ApiError
|
|
13
14
|
*/
|
|
14
|
-
static getProjectsWallets(projectId, query, orderByName, limit = 10, next, includeBalance = false) {
|
|
15
|
+
static getProjectsWallets(projectId, query, orderByName, limit = 10, next, includeBalance = false, includeDeletability = false) {
|
|
15
16
|
return __request(OpenAPI, {
|
|
16
17
|
method: 'GET',
|
|
17
18
|
url: '/projects/{projectId}/wallets',
|
|
@@ -24,6 +25,7 @@ export class ProjectWalletsService {
|
|
|
24
25
|
'limit': limit,
|
|
25
26
|
'next': next,
|
|
26
27
|
'includeBalance': includeBalance,
|
|
28
|
+
'includeDeletability': includeDeletability,
|
|
27
29
|
},
|
|
28
30
|
});
|
|
29
31
|
}
|
|
@@ -47,10 +49,11 @@ export class ProjectWalletsService {
|
|
|
47
49
|
/**
|
|
48
50
|
* @param projectId
|
|
49
51
|
* @param walletId
|
|
52
|
+
* @param includeDeletability
|
|
50
53
|
* @returns ProjectWallet OK
|
|
51
54
|
* @throws ApiError
|
|
52
55
|
*/
|
|
53
|
-
static getProjectsWallets1(projectId, walletId) {
|
|
56
|
+
static getProjectsWallets1(projectId, walletId, includeDeletability = false) {
|
|
54
57
|
return __request(OpenAPI, {
|
|
55
58
|
method: 'GET',
|
|
56
59
|
url: '/projects/{projectId}/wallets/{walletId}',
|
|
@@ -58,6 +61,9 @@ export class ProjectWalletsService {
|
|
|
58
61
|
'projectId': projectId,
|
|
59
62
|
'walletId': walletId,
|
|
60
63
|
},
|
|
64
|
+
query: {
|
|
65
|
+
'includeDeletability': includeDeletability,
|
|
66
|
+
},
|
|
61
67
|
});
|
|
62
68
|
}
|
|
63
69
|
/**
|