@incomy/platform-sdk 0.4.0-43 → 0.4.0-47
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 +10 -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/LogItemPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/LogItemPaginatedList.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 +8 -2
- package/dist/services/hub/services/EntriesService.js +12 -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 +20 -47
- package/dist/services/hub/services/ProjectsService.js +29 -91
- 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,29 +15,38 @@ 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';
|
|
22
|
+
export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
|
|
21
23
|
export type { LogOperation } from './models/LogOperation';
|
|
22
24
|
export type { LogSettlement } from './models/LogSettlement';
|
|
23
25
|
export type { Member } from './models/Member';
|
|
24
26
|
export type { MemberBalanceReport } from './models/MemberBalanceReport';
|
|
25
27
|
export type { MemberEdit } from './models/MemberEdit';
|
|
26
28
|
export type { MemberInsert } from './models/MemberInsert';
|
|
29
|
+
export type { MemberPaginatedList } from './models/MemberPaginatedList';
|
|
27
30
|
export type { Money } from './models/Money';
|
|
28
31
|
export type { MoneyExpression } from './models/MoneyExpression';
|
|
29
32
|
export type { Operation } from './models/Operation';
|
|
30
33
|
export type { OperationEdit } from './models/OperationEdit';
|
|
31
34
|
export type { OperationInsert } from './models/OperationInsert';
|
|
35
|
+
export type { OperationPaginatedList } from './models/OperationPaginatedList';
|
|
32
36
|
export type { Project } from './models/Project';
|
|
37
|
+
export type { ProjectBatchGet } from './models/ProjectBatchGet';
|
|
38
|
+
export type { ProjectBatchGetResult } from './models/ProjectBatchGetResult';
|
|
33
39
|
export type { ProjectEdit } from './models/ProjectEdit';
|
|
34
40
|
export type { ProjectInsert } from './models/ProjectInsert';
|
|
41
|
+
export type { ProjectPaginatedList } from './models/ProjectPaginatedList';
|
|
35
42
|
export type { ProjectWallet } from './models/ProjectWallet';
|
|
36
43
|
export type { ProjectWalletEdit } from './models/ProjectWalletEdit';
|
|
37
44
|
export type { ProjectWalletInsert } from './models/ProjectWalletInsert';
|
|
38
45
|
export type { Settlement } from './models/Settlement';
|
|
39
46
|
export type { SettlementEdit } from './models/SettlementEdit';
|
|
40
47
|
export type { SettlementInsert } from './models/SettlementInsert';
|
|
48
|
+
export type { SettlementPaginatedList } from './models/SettlementPaginatedList';
|
|
49
|
+
export type { StringStringValueTuple } from './models/StringStringValueTuple';
|
|
41
50
|
export type { Template } from './models/Template';
|
|
42
51
|
export type { TemplateBucketBreakdownDefinition } from './models/TemplateBucketBreakdownDefinition';
|
|
43
52
|
export type { TemplateData } from './models/TemplateData';
|
|
@@ -53,6 +62,7 @@ export type { TemplateSettlementDefinition } from './models/TemplateSettlementDe
|
|
|
53
62
|
export type { WalletBalance } from './models/WalletBalance';
|
|
54
63
|
export { BucketsService } from './services/BucketsService';
|
|
55
64
|
export { EntriesService } from './services/EntriesService';
|
|
65
|
+
export { MembersService } from './services/MembersService';
|
|
56
66
|
export { OperationsService } from './services/OperationsService';
|
|
57
67
|
export { ProjectsService } from './services/ProjectsService';
|
|
58
68
|
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 { LogItem } from './LogItem';
|
|
2
|
+
export type LogItemPaginatedList = {
|
|
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<LogItem>;
|
|
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,22 @@
|
|
|
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
|
|
10
|
+
* @param query
|
|
9
11
|
* @param includeBalance
|
|
10
|
-
* @
|
|
12
|
+
* @param orderByName
|
|
13
|
+
* @param orderByTime
|
|
14
|
+
* @param limit
|
|
15
|
+
* @param next
|
|
16
|
+
* @returns EntryPaginatedList OK
|
|
11
17
|
* @throws ApiError
|
|
12
18
|
*/
|
|
13
|
-
static getProjectsEntries(projectId: string, templateId?: string, includeBalance?: boolean): CancelablePromise<
|
|
19
|
+
static getProjectsEntries(projectId: string, templateId?: string, query?: string, includeBalance?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<EntryPaginatedList>;
|
|
14
20
|
/**
|
|
15
21
|
* @param projectId
|
|
16
22
|
* @param requestBody
|
|
@@ -4,11 +4,16 @@ export class EntriesService {
|
|
|
4
4
|
/**
|
|
5
5
|
* @param projectId
|
|
6
6
|
* @param templateId
|
|
7
|
+
* @param query
|
|
7
8
|
* @param includeBalance
|
|
8
|
-
* @
|
|
9
|
+
* @param orderByName
|
|
10
|
+
* @param orderByTime
|
|
11
|
+
* @param limit
|
|
12
|
+
* @param next
|
|
13
|
+
* @returns EntryPaginatedList OK
|
|
9
14
|
* @throws ApiError
|
|
10
15
|
*/
|
|
11
|
-
static getProjectsEntries(projectId, templateId, includeBalance = false) {
|
|
16
|
+
static getProjectsEntries(projectId, templateId, query, includeBalance = false, orderByName, orderByTime, limit = 100, next) {
|
|
12
17
|
return __request(OpenAPI, {
|
|
13
18
|
method: 'GET',
|
|
14
19
|
url: '/projects/{projectId}/entries',
|
|
@@ -17,7 +22,12 @@ export class EntriesService {
|
|
|
17
22
|
},
|
|
18
23
|
query: {
|
|
19
24
|
'templateId': templateId,
|
|
25
|
+
'query': query,
|
|
20
26
|
'includeBalance': includeBalance,
|
|
27
|
+
'orderByName': orderByName,
|
|
28
|
+
'orderByTime': orderByTime,
|
|
29
|
+
'limit': limit,
|
|
30
|
+
'next': next,
|
|
21
31
|
},
|
|
22
32
|
});
|
|
23
33
|
}
|
|
@@ -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
|
-
import type {
|
|
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';
|
|
2
|
+
import type { LogItemPaginatedList } from '../models/LogItemPaginatedList';
|
|
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
|
|
@@ -47,50 +50,20 @@ export declare class ProjectsService {
|
|
|
47
50
|
static getProjectsBalance(projectId: string): CancelablePromise<BalanceReport>;
|
|
48
51
|
/**
|
|
49
52
|
* @param projectId
|
|
50
|
-
* @
|
|
51
|
-
* @
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
|
53
|
+
* @param query
|
|
54
|
+
* @param orderByName
|
|
55
|
+
* @param orderByTime
|
|
56
|
+
* @param limit
|
|
57
|
+
* @param next
|
|
58
|
+
* @returns LogItemPaginatedList OK
|
|
71
59
|
* @throws ApiError
|
|
72
60
|
*/
|
|
73
|
-
static
|
|
61
|
+
static getProjectsLog(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<LogItemPaginatedList>;
|
|
74
62
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @param memberId
|
|
63
|
+
* Get projects in bulk.
|
|
77
64
|
* @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
|
|
65
|
+
* @returns ProjectBatchGetResult OK
|
|
93
66
|
* @throws ApiError
|
|
94
67
|
*/
|
|
95
|
-
static
|
|
68
|
+
static batchGetProjects(requestBody: ProjectBatchGet): CancelablePromise<ProjectBatchGetResult>;
|
|
96
69
|
}
|
|
@@ -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
|
/**
|
|
@@ -85,114 +95,42 @@ export class ProjectsService {
|
|
|
85
95
|
}
|
|
86
96
|
/**
|
|
87
97
|
* @param projectId
|
|
88
|
-
* @
|
|
98
|
+
* @param query
|
|
99
|
+
* @param orderByName
|
|
100
|
+
* @param orderByTime
|
|
101
|
+
* @param limit
|
|
102
|
+
* @param next
|
|
103
|
+
* @returns LogItemPaginatedList OK
|
|
89
104
|
* @throws ApiError
|
|
90
105
|
*/
|
|
91
|
-
static getProjectsLog(projectId) {
|
|
106
|
+
static getProjectsLog(projectId, query, orderByName, orderByTime, limit = 100, next) {
|
|
92
107
|
return __request(OpenAPI, {
|
|
93
108
|
method: 'GET',
|
|
94
109
|
url: '/projects/{projectId}/log',
|
|
95
110
|
path: {
|
|
96
111
|
'projectId': projectId,
|
|
97
112
|
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
*/
|
|
105
|
-
static getProjectsMembers(projectId) {
|
|
106
|
-
return __request(OpenAPI, {
|
|
107
|
-
method: 'GET',
|
|
108
|
-
url: '/projects/{projectId}/members',
|
|
109
|
-
path: {
|
|
110
|
-
'projectId': projectId,
|
|
113
|
+
query: {
|
|
114
|
+
'query': query,
|
|
115
|
+
'orderByName': orderByName,
|
|
116
|
+
'orderByTime': orderByTime,
|
|
117
|
+
'limit': limit,
|
|
118
|
+
'next': next,
|
|
111
119
|
},
|
|
112
120
|
});
|
|
113
121
|
}
|
|
114
122
|
/**
|
|
115
|
-
*
|
|
123
|
+
* Get projects in bulk.
|
|
116
124
|
* @param requestBody
|
|
117
|
-
* @returns
|
|
125
|
+
* @returns ProjectBatchGetResult OK
|
|
118
126
|
* @throws ApiError
|
|
119
127
|
*/
|
|
120
|
-
static
|
|
128
|
+
static batchGetProjects(requestBody) {
|
|
121
129
|
return __request(OpenAPI, {
|
|
122
130
|
method: 'POST',
|
|
123
|
-
url: '/projects
|
|
124
|
-
path: {
|
|
125
|
-
'projectId': projectId,
|
|
126
|
-
},
|
|
127
|
-
body: requestBody,
|
|
128
|
-
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
129
|
-
});
|
|
130
|
-
}
|
|
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
|
-
},
|
|
131
|
+
url: '/projects/$batchGet',
|
|
162
132
|
body: requestBody,
|
|
163
133
|
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
164
134
|
});
|
|
165
135
|
}
|
|
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
136
|
}
|
|
@@ -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
|
}
|