@incomy/platform-sdk 0.4.0-43 → 0.4.0-45
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/index.d.ts +9 -0
- package/dist/services/hub/index.js +1 -0
- package/dist/services/hub/models/EntryPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/EntryPaginatedList.js +1 -0
- package/dist/services/hub/models/MemberPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/MemberPaginatedList.js +1 -0
- package/dist/services/hub/models/OperationPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/OperationPaginatedList.js +1 -0
- package/dist/services/hub/models/ProjectBatchGet.d.ts +3 -0
- package/dist/services/hub/models/ProjectBatchGet.js +1 -0
- package/dist/services/hub/models/ProjectBatchGetResult.d.ts +8 -0
- package/dist/services/hub/models/ProjectBatchGetResult.js +1 -0
- package/dist/services/hub/models/ProjectPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/ProjectPaginatedList.js +1 -0
- package/dist/services/hub/models/SettlementPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/SettlementPaginatedList.js +1 -0
- package/dist/services/hub/models/StringStringValueTuple.d.ts +1 -0
- package/dist/services/hub/models/StringStringValueTuple.js +1 -0
- package/dist/services/hub/services/EntriesService.d.ts +7 -2
- package/dist/services/hub/services/EntriesService.js +10 -2
- package/dist/services/hub/services/MembersService.d.ts +54 -0
- package/dist/services/hub/services/MembersService.js +112 -0
- package/dist/services/hub/services/OperationsService.d.ts +8 -2
- package/dist/services/hub/services/OperationsService.js +12 -2
- package/dist/services/hub/services/ProjectsService.d.ts +12 -44
- package/dist/services/hub/services/ProjectsService.js +16 -90
- package/dist/services/hub/services/SettlementsService.d.ts +8 -2
- package/dist/services/hub/services/SettlementsService.js +12 -2
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export type { Entry } from './models/Entry';
|
|
|
15
15
|
export type { EntryEdit } from './models/EntryEdit';
|
|
16
16
|
export type { EntryInsert } from './models/EntryInsert';
|
|
17
17
|
export type { EntryOperations } from './models/EntryOperations';
|
|
18
|
+
export type { EntryPaginatedList } from './models/EntryPaginatedList';
|
|
18
19
|
export type { EntrySettlements } from './models/EntrySettlements';
|
|
19
20
|
export type { InputFieldDefinition } from './models/InputFieldDefinition';
|
|
20
21
|
export type { LogItem } from './models/LogItem';
|
|
@@ -24,20 +25,27 @@ export type { Member } from './models/Member';
|
|
|
24
25
|
export type { MemberBalanceReport } from './models/MemberBalanceReport';
|
|
25
26
|
export type { MemberEdit } from './models/MemberEdit';
|
|
26
27
|
export type { MemberInsert } from './models/MemberInsert';
|
|
28
|
+
export type { MemberPaginatedList } from './models/MemberPaginatedList';
|
|
27
29
|
export type { Money } from './models/Money';
|
|
28
30
|
export type { MoneyExpression } from './models/MoneyExpression';
|
|
29
31
|
export type { Operation } from './models/Operation';
|
|
30
32
|
export type { OperationEdit } from './models/OperationEdit';
|
|
31
33
|
export type { OperationInsert } from './models/OperationInsert';
|
|
34
|
+
export type { OperationPaginatedList } from './models/OperationPaginatedList';
|
|
32
35
|
export type { Project } from './models/Project';
|
|
36
|
+
export type { ProjectBatchGet } from './models/ProjectBatchGet';
|
|
37
|
+
export type { ProjectBatchGetResult } from './models/ProjectBatchGetResult';
|
|
33
38
|
export type { ProjectEdit } from './models/ProjectEdit';
|
|
34
39
|
export type { ProjectInsert } from './models/ProjectInsert';
|
|
40
|
+
export type { ProjectPaginatedList } from './models/ProjectPaginatedList';
|
|
35
41
|
export type { ProjectWallet } from './models/ProjectWallet';
|
|
36
42
|
export type { ProjectWalletEdit } from './models/ProjectWalletEdit';
|
|
37
43
|
export type { ProjectWalletInsert } from './models/ProjectWalletInsert';
|
|
38
44
|
export type { Settlement } from './models/Settlement';
|
|
39
45
|
export type { SettlementEdit } from './models/SettlementEdit';
|
|
40
46
|
export type { SettlementInsert } from './models/SettlementInsert';
|
|
47
|
+
export type { SettlementPaginatedList } from './models/SettlementPaginatedList';
|
|
48
|
+
export type { StringStringValueTuple } from './models/StringStringValueTuple';
|
|
41
49
|
export type { Template } from './models/Template';
|
|
42
50
|
export type { TemplateBucketBreakdownDefinition } from './models/TemplateBucketBreakdownDefinition';
|
|
43
51
|
export type { TemplateData } from './models/TemplateData';
|
|
@@ -53,6 +61,7 @@ export type { TemplateSettlementDefinition } from './models/TemplateSettlementDe
|
|
|
53
61
|
export type { WalletBalance } from './models/WalletBalance';
|
|
54
62
|
export { BucketsService } from './services/BucketsService';
|
|
55
63
|
export { EntriesService } from './services/EntriesService';
|
|
64
|
+
export { MembersService } from './services/MembersService';
|
|
56
65
|
export { OperationsService } from './services/OperationsService';
|
|
57
66
|
export { ProjectsService } from './services/ProjectsService';
|
|
58
67
|
export { ProjectWalletsService } from './services/ProjectWalletsService';
|
|
@@ -7,6 +7,7 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI';
|
|
8
8
|
export { BucketsService } from './services/BucketsService';
|
|
9
9
|
export { EntriesService } from './services/EntriesService';
|
|
10
|
+
export { MembersService } from './services/MembersService';
|
|
10
11
|
export { OperationsService } from './services/OperationsService';
|
|
11
12
|
export { ProjectsService } from './services/ProjectsService';
|
|
12
13
|
export { ProjectWalletsService } from './services/ProjectWalletsService';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Entry } from './Entry';
|
|
2
|
+
export type EntryPaginatedList = {
|
|
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<Entry>;
|
|
15
|
+
meta?: Record<string, string | null> | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Member } from './Member';
|
|
2
|
+
export type MemberPaginatedList = {
|
|
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<Member>;
|
|
15
|
+
meta?: Record<string, string | null> | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Operation } from './Operation';
|
|
2
|
+
export type OperationPaginatedList = {
|
|
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<Operation>;
|
|
15
|
+
meta?: Record<string, string | null> | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Project } from './Project';
|
|
2
|
+
import type { StringStringValueTuple } from './StringStringValueTuple';
|
|
3
|
+
export type ProjectBatchGetResult = {
|
|
4
|
+
items: Array<Project>;
|
|
5
|
+
errors: Array<StringStringValueTuple>;
|
|
6
|
+
notFoundIds: Array<string>;
|
|
7
|
+
forbiddenIds: Array<string>;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Project } from './Project';
|
|
2
|
+
export type ProjectPaginatedList = {
|
|
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<Project>;
|
|
15
|
+
meta?: Record<string, string | null> | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Settlement } from './Settlement';
|
|
2
|
+
export type SettlementPaginatedList = {
|
|
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<Settlement>;
|
|
15
|
+
meta?: Record<string, string | null> | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type StringStringValueTuple = Record<string, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { Entry } from '../models/Entry';
|
|
2
2
|
import type { EntryEdit } from '../models/EntryEdit';
|
|
3
3
|
import type { EntryInsert } from '../models/EntryInsert';
|
|
4
|
+
import type { EntryPaginatedList } from '../models/EntryPaginatedList';
|
|
4
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
6
|
export declare class EntriesService {
|
|
6
7
|
/**
|
|
7
8
|
* @param projectId
|
|
8
9
|
* @param templateId
|
|
9
10
|
* @param includeBalance
|
|
10
|
-
* @
|
|
11
|
+
* @param orderByName
|
|
12
|
+
* @param orderByTime
|
|
13
|
+
* @param limit
|
|
14
|
+
* @param next
|
|
15
|
+
* @returns EntryPaginatedList OK
|
|
11
16
|
* @throws ApiError
|
|
12
17
|
*/
|
|
13
|
-
static getProjectsEntries(projectId: string, templateId?: string, includeBalance?: boolean): CancelablePromise<
|
|
18
|
+
static getProjectsEntries(projectId: string, templateId?: string, includeBalance?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<EntryPaginatedList>;
|
|
14
19
|
/**
|
|
15
20
|
* @param projectId
|
|
16
21
|
* @param requestBody
|
|
@@ -5,10 +5,14 @@ export class EntriesService {
|
|
|
5
5
|
* @param projectId
|
|
6
6
|
* @param templateId
|
|
7
7
|
* @param includeBalance
|
|
8
|
-
* @
|
|
8
|
+
* @param orderByName
|
|
9
|
+
* @param orderByTime
|
|
10
|
+
* @param limit
|
|
11
|
+
* @param next
|
|
12
|
+
* @returns EntryPaginatedList OK
|
|
9
13
|
* @throws ApiError
|
|
10
14
|
*/
|
|
11
|
-
static getProjectsEntries(projectId, templateId, includeBalance = false) {
|
|
15
|
+
static getProjectsEntries(projectId, templateId, includeBalance = false, orderByName, orderByTime, limit = 100, next) {
|
|
12
16
|
return __request(OpenAPI, {
|
|
13
17
|
method: 'GET',
|
|
14
18
|
url: '/projects/{projectId}/entries',
|
|
@@ -18,6 +22,10 @@ export class EntriesService {
|
|
|
18
22
|
query: {
|
|
19
23
|
'templateId': templateId,
|
|
20
24
|
'includeBalance': includeBalance,
|
|
25
|
+
'orderByName': orderByName,
|
|
26
|
+
'orderByTime': orderByTime,
|
|
27
|
+
'limit': limit,
|
|
28
|
+
'next': next,
|
|
21
29
|
},
|
|
22
30
|
});
|
|
23
31
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Member } from '../models/Member';
|
|
2
|
+
import type { MemberBalanceReport } from '../models/MemberBalanceReport';
|
|
3
|
+
import type { MemberEdit } from '../models/MemberEdit';
|
|
4
|
+
import type { MemberInsert } from '../models/MemberInsert';
|
|
5
|
+
import type { MemberPaginatedList } from '../models/MemberPaginatedList';
|
|
6
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
+
export declare class MembersService {
|
|
8
|
+
/**
|
|
9
|
+
* @param projectId
|
|
10
|
+
* @param query
|
|
11
|
+
* @param orderByName
|
|
12
|
+
* @param limit
|
|
13
|
+
* @param next
|
|
14
|
+
* @returns MemberPaginatedList OK
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<MemberPaginatedList>;
|
|
18
|
+
/**
|
|
19
|
+
* @param projectId
|
|
20
|
+
* @param requestBody
|
|
21
|
+
* @returns Member OK
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static postProjectsMembers(projectId: string, requestBody?: MemberInsert): CancelablePromise<Member>;
|
|
25
|
+
/**
|
|
26
|
+
* @param projectId
|
|
27
|
+
* @param memberId
|
|
28
|
+
* @returns Member OK
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static getProjectsMembers1(projectId: string, memberId: string): CancelablePromise<Member>;
|
|
32
|
+
/**
|
|
33
|
+
* @param projectId
|
|
34
|
+
* @param memberId
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns Member OK
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static patchProjectsMembers(projectId: string, memberId: string, requestBody?: MemberEdit): CancelablePromise<Member>;
|
|
40
|
+
/**
|
|
41
|
+
* @param projectId
|
|
42
|
+
* @param memberId
|
|
43
|
+
* @returns any OK
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static deleteProjectsMembers(projectId: string, memberId: string): CancelablePromise<any>;
|
|
47
|
+
/**
|
|
48
|
+
* @param projectId
|
|
49
|
+
* @param memberId
|
|
50
|
+
* @returns MemberBalanceReport OK
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static getProjectsMembersBalance(projectId: string, memberId: string): CancelablePromise<MemberBalanceReport>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class MembersService {
|
|
4
|
+
/**
|
|
5
|
+
* @param projectId
|
|
6
|
+
* @param query
|
|
7
|
+
* @param orderByName
|
|
8
|
+
* @param limit
|
|
9
|
+
* @param next
|
|
10
|
+
* @returns MemberPaginatedList OK
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static getProjectsMembers(projectId, query, orderByName, limit = 100, next) {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/projects/{projectId}/members',
|
|
17
|
+
path: {
|
|
18
|
+
'projectId': projectId,
|
|
19
|
+
},
|
|
20
|
+
query: {
|
|
21
|
+
'query': query,
|
|
22
|
+
'orderByName': orderByName,
|
|
23
|
+
'limit': limit,
|
|
24
|
+
'next': next,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @param projectId
|
|
30
|
+
* @param requestBody
|
|
31
|
+
* @returns Member OK
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static postProjectsMembers(projectId, requestBody) {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'POST',
|
|
37
|
+
url: '/projects/{projectId}/members',
|
|
38
|
+
path: {
|
|
39
|
+
'projectId': projectId,
|
|
40
|
+
},
|
|
41
|
+
body: requestBody,
|
|
42
|
+
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @param projectId
|
|
47
|
+
* @param memberId
|
|
48
|
+
* @returns Member OK
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static getProjectsMembers1(projectId, memberId) {
|
|
52
|
+
return __request(OpenAPI, {
|
|
53
|
+
method: 'GET',
|
|
54
|
+
url: '/projects/{projectId}/members/{memberId}',
|
|
55
|
+
path: {
|
|
56
|
+
'projectId': projectId,
|
|
57
|
+
'memberId': memberId,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @param projectId
|
|
63
|
+
* @param memberId
|
|
64
|
+
* @param requestBody
|
|
65
|
+
* @returns Member OK
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
static patchProjectsMembers(projectId, memberId, requestBody) {
|
|
69
|
+
return __request(OpenAPI, {
|
|
70
|
+
method: 'PATCH',
|
|
71
|
+
url: '/projects/{projectId}/members/{memberId}',
|
|
72
|
+
path: {
|
|
73
|
+
'projectId': projectId,
|
|
74
|
+
'memberId': memberId,
|
|
75
|
+
},
|
|
76
|
+
body: requestBody,
|
|
77
|
+
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @param projectId
|
|
82
|
+
* @param memberId
|
|
83
|
+
* @returns any OK
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static deleteProjectsMembers(projectId, memberId) {
|
|
87
|
+
return __request(OpenAPI, {
|
|
88
|
+
method: 'DELETE',
|
|
89
|
+
url: '/projects/{projectId}/members/{memberId}',
|
|
90
|
+
path: {
|
|
91
|
+
'projectId': projectId,
|
|
92
|
+
'memberId': memberId,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @param projectId
|
|
98
|
+
* @param memberId
|
|
99
|
+
* @returns MemberBalanceReport OK
|
|
100
|
+
* @throws ApiError
|
|
101
|
+
*/
|
|
102
|
+
static getProjectsMembersBalance(projectId, memberId) {
|
|
103
|
+
return __request(OpenAPI, {
|
|
104
|
+
method: 'GET',
|
|
105
|
+
url: '/projects/{projectId}/members/{memberId}/balance',
|
|
106
|
+
path: {
|
|
107
|
+
'projectId': projectId,
|
|
108
|
+
'memberId': memberId,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import type { Operation } from '../models/Operation';
|
|
2
2
|
import type { OperationEdit } from '../models/OperationEdit';
|
|
3
3
|
import type { OperationInsert } from '../models/OperationInsert';
|
|
4
|
+
import type { OperationPaginatedList } from '../models/OperationPaginatedList';
|
|
4
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
6
|
export declare class OperationsService {
|
|
6
7
|
/**
|
|
7
8
|
* @param projectId
|
|
8
9
|
* @param walletId
|
|
10
|
+
* @param query
|
|
9
11
|
* @param standaloneOnly
|
|
10
|
-
* @
|
|
12
|
+
* @param orderByName
|
|
13
|
+
* @param orderByTime
|
|
14
|
+
* @param limit
|
|
15
|
+
* @param next
|
|
16
|
+
* @returns OperationPaginatedList OK
|
|
11
17
|
* @throws ApiError
|
|
12
18
|
*/
|
|
13
|
-
static getProjectsOperations(projectId: string, walletId?: string, standaloneOnly?: boolean): CancelablePromise<
|
|
19
|
+
static getProjectsOperations(projectId: string, walletId?: string, query?: string, standaloneOnly?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<OperationPaginatedList>;
|
|
14
20
|
/**
|
|
15
21
|
* @param projectId
|
|
16
22
|
* @param requestBody
|
|
@@ -4,11 +4,16 @@ export class OperationsService {
|
|
|
4
4
|
/**
|
|
5
5
|
* @param projectId
|
|
6
6
|
* @param walletId
|
|
7
|
+
* @param query
|
|
7
8
|
* @param standaloneOnly
|
|
8
|
-
* @
|
|
9
|
+
* @param orderByName
|
|
10
|
+
* @param orderByTime
|
|
11
|
+
* @param limit
|
|
12
|
+
* @param next
|
|
13
|
+
* @returns OperationPaginatedList OK
|
|
9
14
|
* @throws ApiError
|
|
10
15
|
*/
|
|
11
|
-
static getProjectsOperations(projectId, walletId, standaloneOnly = false) {
|
|
16
|
+
static getProjectsOperations(projectId, walletId, query, standaloneOnly = false, orderByName, orderByTime, limit = 100, next) {
|
|
12
17
|
return __request(OpenAPI, {
|
|
13
18
|
method: 'GET',
|
|
14
19
|
url: '/projects/{projectId}/operations',
|
|
@@ -17,7 +22,12 @@ export class OperationsService {
|
|
|
17
22
|
},
|
|
18
23
|
query: {
|
|
19
24
|
'walletId': walletId,
|
|
25
|
+
'query': query,
|
|
20
26
|
'standaloneOnly': standaloneOnly,
|
|
27
|
+
'orderByName': orderByName,
|
|
28
|
+
'orderByTime': orderByTime,
|
|
29
|
+
'limit': limit,
|
|
30
|
+
'next': next,
|
|
21
31
|
},
|
|
22
32
|
});
|
|
23
33
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import type { BalanceReport } from '../models/BalanceReport';
|
|
2
2
|
import type { LogItem } from '../models/LogItem';
|
|
3
|
-
import type { Member } from '../models/Member';
|
|
4
|
-
import type { MemberBalanceReport } from '../models/MemberBalanceReport';
|
|
5
|
-
import type { MemberEdit } from '../models/MemberEdit';
|
|
6
|
-
import type { MemberInsert } from '../models/MemberInsert';
|
|
7
3
|
import type { Project } from '../models/Project';
|
|
4
|
+
import type { ProjectBatchGet } from '../models/ProjectBatchGet';
|
|
5
|
+
import type { ProjectBatchGetResult } from '../models/ProjectBatchGetResult';
|
|
8
6
|
import type { ProjectEdit } from '../models/ProjectEdit';
|
|
9
7
|
import type { ProjectInsert } from '../models/ProjectInsert';
|
|
8
|
+
import type { ProjectPaginatedList } from '../models/ProjectPaginatedList';
|
|
10
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
10
|
export declare class ProjectsService {
|
|
12
11
|
/**
|
|
13
|
-
* @
|
|
12
|
+
* @param query
|
|
13
|
+
* @param orderByName
|
|
14
|
+
* @param limit
|
|
15
|
+
* @param next
|
|
16
|
+
* @returns ProjectPaginatedList OK
|
|
14
17
|
* @throws ApiError
|
|
15
18
|
*/
|
|
16
|
-
static getProjects(): CancelablePromise<
|
|
19
|
+
static getProjects(query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<ProjectPaginatedList>;
|
|
17
20
|
/**
|
|
18
21
|
* @param requestBody
|
|
19
22
|
* @returns Project OK
|
|
@@ -52,45 +55,10 @@ export declare class ProjectsService {
|
|
|
52
55
|
*/
|
|
53
56
|
static getProjectsLog(projectId: string): CancelablePromise<Array<LogItem>>;
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @returns Member OK
|
|
57
|
-
* @throws ApiError
|
|
58
|
-
*/
|
|
59
|
-
static getProjectsMembers(projectId: string): CancelablePromise<Array<Member>>;
|
|
60
|
-
/**
|
|
61
|
-
* @param projectId
|
|
62
|
-
* @param requestBody
|
|
63
|
-
* @returns Member OK
|
|
64
|
-
* @throws ApiError
|
|
65
|
-
*/
|
|
66
|
-
static postProjectsMembers(projectId: string, requestBody?: MemberInsert): CancelablePromise<Member>;
|
|
67
|
-
/**
|
|
68
|
-
* @param projectId
|
|
69
|
-
* @param memberId
|
|
70
|
-
* @returns Member OK
|
|
71
|
-
* @throws ApiError
|
|
72
|
-
*/
|
|
73
|
-
static getProjectsMembers1(projectId: string, memberId: string): CancelablePromise<Member>;
|
|
74
|
-
/**
|
|
75
|
-
* @param projectId
|
|
76
|
-
* @param memberId
|
|
58
|
+
* Get projects in bulk.
|
|
77
59
|
* @param requestBody
|
|
78
|
-
* @returns
|
|
79
|
-
* @throws ApiError
|
|
80
|
-
*/
|
|
81
|
-
static patchProjectsMembers(projectId: string, memberId: string, requestBody?: MemberEdit): CancelablePromise<Member>;
|
|
82
|
-
/**
|
|
83
|
-
* @param projectId
|
|
84
|
-
* @param memberId
|
|
85
|
-
* @returns any OK
|
|
86
|
-
* @throws ApiError
|
|
87
|
-
*/
|
|
88
|
-
static deleteProjectsMembers(projectId: string, memberId: string): CancelablePromise<any>;
|
|
89
|
-
/**
|
|
90
|
-
* @param projectId
|
|
91
|
-
* @param memberId
|
|
92
|
-
* @returns MemberBalanceReport OK
|
|
60
|
+
* @returns ProjectBatchGetResult OK
|
|
93
61
|
* @throws ApiError
|
|
94
62
|
*/
|
|
95
|
-
static
|
|
63
|
+
static batchGetProjects(requestBody: ProjectBatchGet): CancelablePromise<ProjectBatchGetResult>;
|
|
96
64
|
}
|
|
@@ -2,13 +2,23 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class ProjectsService {
|
|
4
4
|
/**
|
|
5
|
-
* @
|
|
5
|
+
* @param query
|
|
6
|
+
* @param orderByName
|
|
7
|
+
* @param limit
|
|
8
|
+
* @param next
|
|
9
|
+
* @returns ProjectPaginatedList OK
|
|
6
10
|
* @throws ApiError
|
|
7
11
|
*/
|
|
8
|
-
static getProjects() {
|
|
12
|
+
static getProjects(query, orderByName, limit = 100, next) {
|
|
9
13
|
return __request(OpenAPI, {
|
|
10
14
|
method: 'GET',
|
|
11
15
|
url: '/projects',
|
|
16
|
+
query: {
|
|
17
|
+
'query': query,
|
|
18
|
+
'orderByName': orderByName,
|
|
19
|
+
'limit': limit,
|
|
20
|
+
'next': next,
|
|
21
|
+
},
|
|
12
22
|
});
|
|
13
23
|
}
|
|
14
24
|
/**
|
|
@@ -98,101 +108,17 @@ export class ProjectsService {
|
|
|
98
108
|
});
|
|
99
109
|
}
|
|
100
110
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @returns Member OK
|
|
103
|
-
* @throws ApiError
|
|
104
|
-
*/
|
|
105
|
-
static getProjectsMembers(projectId) {
|
|
106
|
-
return __request(OpenAPI, {
|
|
107
|
-
method: 'GET',
|
|
108
|
-
url: '/projects/{projectId}/members',
|
|
109
|
-
path: {
|
|
110
|
-
'projectId': projectId,
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @param projectId
|
|
111
|
+
* Get projects in bulk.
|
|
116
112
|
* @param requestBody
|
|
117
|
-
* @returns
|
|
113
|
+
* @returns ProjectBatchGetResult OK
|
|
118
114
|
* @throws ApiError
|
|
119
115
|
*/
|
|
120
|
-
static
|
|
116
|
+
static batchGetProjects(requestBody) {
|
|
121
117
|
return __request(OpenAPI, {
|
|
122
118
|
method: 'POST',
|
|
123
|
-
url: '/projects
|
|
124
|
-
path: {
|
|
125
|
-
'projectId': projectId,
|
|
126
|
-
},
|
|
119
|
+
url: '/projects/$batchGet',
|
|
127
120
|
body: requestBody,
|
|
128
121
|
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
129
122
|
});
|
|
130
123
|
}
|
|
131
|
-
/**
|
|
132
|
-
* @param projectId
|
|
133
|
-
* @param memberId
|
|
134
|
-
* @returns Member OK
|
|
135
|
-
* @throws ApiError
|
|
136
|
-
*/
|
|
137
|
-
static getProjectsMembers1(projectId, memberId) {
|
|
138
|
-
return __request(OpenAPI, {
|
|
139
|
-
method: 'GET',
|
|
140
|
-
url: '/projects/{projectId}/members/{memberId}',
|
|
141
|
-
path: {
|
|
142
|
-
'projectId': projectId,
|
|
143
|
-
'memberId': memberId,
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* @param projectId
|
|
149
|
-
* @param memberId
|
|
150
|
-
* @param requestBody
|
|
151
|
-
* @returns Member OK
|
|
152
|
-
* @throws ApiError
|
|
153
|
-
*/
|
|
154
|
-
static patchProjectsMembers(projectId, memberId, requestBody) {
|
|
155
|
-
return __request(OpenAPI, {
|
|
156
|
-
method: 'PATCH',
|
|
157
|
-
url: '/projects/{projectId}/members/{memberId}',
|
|
158
|
-
path: {
|
|
159
|
-
'projectId': projectId,
|
|
160
|
-
'memberId': memberId,
|
|
161
|
-
},
|
|
162
|
-
body: requestBody,
|
|
163
|
-
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* @param projectId
|
|
168
|
-
* @param memberId
|
|
169
|
-
* @returns any OK
|
|
170
|
-
* @throws ApiError
|
|
171
|
-
*/
|
|
172
|
-
static deleteProjectsMembers(projectId, memberId) {
|
|
173
|
-
return __request(OpenAPI, {
|
|
174
|
-
method: 'DELETE',
|
|
175
|
-
url: '/projects/{projectId}/members/{memberId}',
|
|
176
|
-
path: {
|
|
177
|
-
'projectId': projectId,
|
|
178
|
-
'memberId': memberId,
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @param projectId
|
|
184
|
-
* @param memberId
|
|
185
|
-
* @returns MemberBalanceReport OK
|
|
186
|
-
* @throws ApiError
|
|
187
|
-
*/
|
|
188
|
-
static getProjectsMembersBalance(projectId, memberId) {
|
|
189
|
-
return __request(OpenAPI, {
|
|
190
|
-
method: 'GET',
|
|
191
|
-
url: '/projects/{projectId}/members/{memberId}/balance',
|
|
192
|
-
path: {
|
|
193
|
-
'projectId': projectId,
|
|
194
|
-
'memberId': memberId,
|
|
195
|
-
},
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
124
|
}
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import type { Settlement } from '../models/Settlement';
|
|
2
2
|
import type { SettlementEdit } from '../models/SettlementEdit';
|
|
3
3
|
import type { SettlementInsert } from '../models/SettlementInsert';
|
|
4
|
+
import type { SettlementPaginatedList } from '../models/SettlementPaginatedList';
|
|
4
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
6
|
export declare class SettlementsService {
|
|
6
7
|
/**
|
|
7
8
|
* @param projectId
|
|
8
9
|
* @param memberId
|
|
10
|
+
* @param query
|
|
9
11
|
* @param standaloneOnly
|
|
10
|
-
* @
|
|
12
|
+
* @param orderByName
|
|
13
|
+
* @param orderByTime
|
|
14
|
+
* @param limit
|
|
15
|
+
* @param next
|
|
16
|
+
* @returns SettlementPaginatedList OK
|
|
11
17
|
* @throws ApiError
|
|
12
18
|
*/
|
|
13
|
-
static getProjectsSettlements(projectId: string, memberId?: string, standaloneOnly?: boolean): CancelablePromise<
|
|
19
|
+
static getProjectsSettlements(projectId: string, memberId?: string, query?: string, standaloneOnly?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<SettlementPaginatedList>;
|
|
14
20
|
/**
|
|
15
21
|
* @param projectId
|
|
16
22
|
* @param requestBody
|
|
@@ -4,11 +4,16 @@ export class SettlementsService {
|
|
|
4
4
|
/**
|
|
5
5
|
* @param projectId
|
|
6
6
|
* @param memberId
|
|
7
|
+
* @param query
|
|
7
8
|
* @param standaloneOnly
|
|
8
|
-
* @
|
|
9
|
+
* @param orderByName
|
|
10
|
+
* @param orderByTime
|
|
11
|
+
* @param limit
|
|
12
|
+
* @param next
|
|
13
|
+
* @returns SettlementPaginatedList OK
|
|
9
14
|
* @throws ApiError
|
|
10
15
|
*/
|
|
11
|
-
static getProjectsSettlements(projectId, memberId, standaloneOnly = false) {
|
|
16
|
+
static getProjectsSettlements(projectId, memberId, query, standaloneOnly = false, orderByName, orderByTime, limit = 100, next) {
|
|
12
17
|
return __request(OpenAPI, {
|
|
13
18
|
method: 'GET',
|
|
14
19
|
url: '/projects/{projectId}/settlements',
|
|
@@ -17,7 +22,12 @@ export class SettlementsService {
|
|
|
17
22
|
},
|
|
18
23
|
query: {
|
|
19
24
|
'memberId': memberId,
|
|
25
|
+
'query': query,
|
|
20
26
|
'standaloneOnly': standaloneOnly,
|
|
27
|
+
'orderByName': orderByName,
|
|
28
|
+
'orderByTime': orderByTime,
|
|
29
|
+
'limit': limit,
|
|
30
|
+
'next': next,
|
|
21
31
|
},
|
|
22
32
|
});
|
|
23
33
|
}
|