@incomy/platform-sdk 0.6.0-beta.2284 → 0.6.0-beta.2337
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/services/AccrualsService.d.ts +27 -22
- package/dist/services/hub/services/AccrualsService.js +5 -22
- package/dist/services/hub/services/AuthService.d.ts +12 -8
- package/dist/services/hub/services/AuthService.js +4 -8
- package/dist/services/hub/services/BucketsService.d.ts +24 -19
- package/dist/services/hub/services/BucketsService.js +5 -19
- package/dist/services/hub/services/CompaniesService.d.ts +24 -19
- package/dist/services/hub/services/CompaniesService.js +5 -19
- package/dist/services/hub/services/DeletedProjectsService.d.ts +10 -7
- package/dist/services/hub/services/DeletedProjectsService.js +3 -7
- package/dist/services/hub/services/LabelsService.d.ts +24 -19
- package/dist/services/hub/services/LabelsService.js +5 -19
- package/dist/services/hub/services/MembersService.d.ts +31 -25
- package/dist/services/hub/services/MembersService.js +6 -25
- package/dist/services/hub/services/MultiEventsService.d.ts +28 -23
- package/dist/services/hub/services/MultiEventsService.js +5 -23
- package/dist/services/hub/services/OperationsService.d.ts +32 -27
- package/dist/services/hub/services/OperationsService.js +5 -27
- package/dist/services/hub/services/ProjectWalletsService.d.ts +31 -25
- package/dist/services/hub/services/ProjectWalletsService.js +6 -25
- package/dist/services/hub/services/ProjectsService.d.ts +55 -45
- package/dist/services/hub/services/ProjectsService.js +10 -45
- package/dist/services/hub/services/TemplatesService.d.ts +24 -19
- package/dist/services/hub/services/TemplatesService.js +5 -19
- package/dist/services/hub/services/TrashService.d.ts +24 -17
- package/dist/services/hub/services/TrashService.js +4 -17
- package/dist/services/hub/services/UserSettingsService.d.ts +3 -2
- package/dist/services/hub/services/UserSettingsService.js +1 -2
- package/meta.json +4 -4
- package/package.json +1 -1
|
@@ -2,17 +2,10 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class ProjectWalletsService {
|
|
4
4
|
/**
|
|
5
|
-
* @param projectId
|
|
6
|
-
* @param query
|
|
7
|
-
* @param orderByName
|
|
8
|
-
* @param limit
|
|
9
|
-
* @param next
|
|
10
|
-
* @param includeBalance
|
|
11
|
-
* @param includeDeletability
|
|
12
5
|
* @returns ProjectWalletPaginatedList OK
|
|
13
6
|
* @throws ApiError
|
|
14
7
|
*/
|
|
15
|
-
static getProjectsWallets(projectId, query, orderByName, limit = 10, next, includeBalance = false, includeDeletability = false) {
|
|
8
|
+
static getProjectsWallets({ projectId, query, orderByName, limit = 10, next, includeBalance = false, includeDeletability = false, }) {
|
|
16
9
|
return __request(OpenAPI, {
|
|
17
10
|
method: 'GET',
|
|
18
11
|
url: '/projects/{projectId}/wallets',
|
|
@@ -30,12 +23,10 @@ export class ProjectWalletsService {
|
|
|
30
23
|
});
|
|
31
24
|
}
|
|
32
25
|
/**
|
|
33
|
-
* @param projectId
|
|
34
|
-
* @param requestBody
|
|
35
26
|
* @returns ProjectWallet OK
|
|
36
27
|
* @throws ApiError
|
|
37
28
|
*/
|
|
38
|
-
static postProjectsWallets(projectId, requestBody) {
|
|
29
|
+
static postProjectsWallets({ projectId, requestBody, }) {
|
|
39
30
|
return __request(OpenAPI, {
|
|
40
31
|
method: 'POST',
|
|
41
32
|
url: '/projects/{projectId}/wallets',
|
|
@@ -47,12 +38,10 @@ export class ProjectWalletsService {
|
|
|
47
38
|
});
|
|
48
39
|
}
|
|
49
40
|
/**
|
|
50
|
-
* @param projectId
|
|
51
|
-
* @param walletId
|
|
52
41
|
* @returns any OK
|
|
53
42
|
* @throws ApiError
|
|
54
43
|
*/
|
|
55
|
-
static deleteProjectsWallets(projectId, walletId) {
|
|
44
|
+
static deleteProjectsWallets({ projectId, walletId, }) {
|
|
56
45
|
return __request(OpenAPI, {
|
|
57
46
|
method: 'DELETE',
|
|
58
47
|
url: '/projects/{projectId}/wallets/{walletId}',
|
|
@@ -63,13 +52,10 @@ export class ProjectWalletsService {
|
|
|
63
52
|
});
|
|
64
53
|
}
|
|
65
54
|
/**
|
|
66
|
-
* @param projectId
|
|
67
|
-
* @param walletId
|
|
68
|
-
* @param includeDeletability
|
|
69
55
|
* @returns ProjectWallet OK
|
|
70
56
|
* @throws ApiError
|
|
71
57
|
*/
|
|
72
|
-
static getProjectsWallets1(projectId, walletId, includeDeletability = false) {
|
|
58
|
+
static getProjectsWallets1({ projectId, walletId, includeDeletability = false, }) {
|
|
73
59
|
return __request(OpenAPI, {
|
|
74
60
|
method: 'GET',
|
|
75
61
|
url: '/projects/{projectId}/wallets/{walletId}',
|
|
@@ -83,13 +69,10 @@ export class ProjectWalletsService {
|
|
|
83
69
|
});
|
|
84
70
|
}
|
|
85
71
|
/**
|
|
86
|
-
* @param projectId
|
|
87
|
-
* @param walletId
|
|
88
|
-
* @param requestBody
|
|
89
72
|
* @returns ProjectWallet OK
|
|
90
73
|
* @throws ApiError
|
|
91
74
|
*/
|
|
92
|
-
static patchProjectsWallets(projectId, walletId, requestBody) {
|
|
75
|
+
static patchProjectsWallets({ projectId, walletId, requestBody, }) {
|
|
93
76
|
return __request(OpenAPI, {
|
|
94
77
|
method: 'PATCH',
|
|
95
78
|
url: '/projects/{projectId}/wallets/{walletId}',
|
|
@@ -102,12 +85,10 @@ export class ProjectWalletsService {
|
|
|
102
85
|
});
|
|
103
86
|
}
|
|
104
87
|
/**
|
|
105
|
-
* @param projectId
|
|
106
|
-
* @param walletId
|
|
107
88
|
* @returns Balance OK
|
|
108
89
|
* @throws ApiError
|
|
109
90
|
*/
|
|
110
|
-
static getProjectsWalletsBalance(projectId, walletId) {
|
|
91
|
+
static getProjectsWalletsBalance({ projectId, walletId, }) {
|
|
111
92
|
return __request(OpenAPI, {
|
|
112
93
|
method: 'GET',
|
|
113
94
|
url: '/projects/{projectId}/wallets/{walletId}/balance',
|
|
@@ -11,89 +11,99 @@ import type { WalletBalancePaginatedList } from '../models/WalletBalancePaginate
|
|
|
11
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
12
|
export declare class ProjectsService {
|
|
13
13
|
/**
|
|
14
|
-
* @param query
|
|
15
|
-
* @param orderByName
|
|
16
|
-
* @param limit
|
|
17
|
-
* @param next
|
|
18
14
|
* @returns ProjectPaginatedList OK
|
|
19
15
|
* @throws ApiError
|
|
20
16
|
*/
|
|
21
|
-
static getProjects(query
|
|
17
|
+
static getProjects({ query, orderByName, limit, next, }: {
|
|
18
|
+
query?: string;
|
|
19
|
+
orderByName?: 'Desc' | 'Asc';
|
|
20
|
+
limit?: number;
|
|
21
|
+
next?: string;
|
|
22
|
+
}): CancelablePromise<ProjectPaginatedList>;
|
|
22
23
|
/**
|
|
23
|
-
* @param requestBody
|
|
24
24
|
* @returns Project OK
|
|
25
25
|
* @throws ApiError
|
|
26
26
|
*/
|
|
27
|
-
static postProjects(requestBody
|
|
27
|
+
static postProjects({ requestBody, }: {
|
|
28
|
+
requestBody?: ProjectInsert;
|
|
29
|
+
}): CancelablePromise<Project>;
|
|
28
30
|
/**
|
|
29
31
|
* Get projects in bulk.
|
|
30
|
-
* @param requestBody
|
|
31
32
|
* @returns ProjectBatchGetResult OK
|
|
32
33
|
* @throws ApiError
|
|
33
34
|
*/
|
|
34
|
-
static batchGetProjects(requestBody
|
|
35
|
+
static batchGetProjects({ requestBody, }: {
|
|
36
|
+
requestBody: ProjectBatchGet;
|
|
37
|
+
}): CancelablePromise<ProjectBatchGetResult>;
|
|
35
38
|
/**
|
|
36
|
-
* @param projectId
|
|
37
39
|
* @returns any OK
|
|
38
40
|
* @throws ApiError
|
|
39
41
|
*/
|
|
40
|
-
static deleteProjects(projectId
|
|
42
|
+
static deleteProjects({ projectId, }: {
|
|
43
|
+
projectId: string;
|
|
44
|
+
}): CancelablePromise<any>;
|
|
41
45
|
/**
|
|
42
|
-
* @param projectId
|
|
43
46
|
* @returns Project OK
|
|
44
47
|
* @throws ApiError
|
|
45
48
|
*/
|
|
46
|
-
static getProjects1(projectId
|
|
49
|
+
static getProjects1({ projectId, }: {
|
|
50
|
+
projectId: string;
|
|
51
|
+
}): CancelablePromise<Project>;
|
|
47
52
|
/**
|
|
48
|
-
* @param projectId
|
|
49
|
-
* @param requestBody
|
|
50
53
|
* @returns Project OK
|
|
51
54
|
* @throws ApiError
|
|
52
55
|
*/
|
|
53
|
-
static patchProjects(projectId
|
|
56
|
+
static patchProjects({ projectId, requestBody, }: {
|
|
57
|
+
projectId: string;
|
|
58
|
+
requestBody?: ProjectEdit;
|
|
59
|
+
}): CancelablePromise<Project>;
|
|
54
60
|
/**
|
|
55
|
-
* @param projectId
|
|
56
61
|
* @returns BalanceReport OK
|
|
57
62
|
* @throws ApiError
|
|
58
63
|
*/
|
|
59
|
-
static getProjectsBalance(projectId
|
|
64
|
+
static getProjectsBalance({ projectId, }: {
|
|
65
|
+
projectId: string;
|
|
66
|
+
}): CancelablePromise<BalanceReport>;
|
|
60
67
|
/**
|
|
61
|
-
* @param projectId
|
|
62
|
-
* @param orderByName
|
|
63
|
-
* @param orderByAmount
|
|
64
|
-
* @param limit
|
|
65
|
-
* @param next
|
|
66
68
|
* @returns MemberBalancePaginatedList OK
|
|
67
69
|
* @throws ApiError
|
|
68
70
|
*/
|
|
69
|
-
static getProjectsBalanceMembers(projectId
|
|
71
|
+
static getProjectsBalanceMembers({ projectId, orderByName, orderByAmount, limit, next, }: {
|
|
72
|
+
projectId: string;
|
|
73
|
+
orderByName?: 'Desc' | 'Asc';
|
|
74
|
+
orderByAmount?: 'Desc' | 'Asc';
|
|
75
|
+
limit?: number;
|
|
76
|
+
next?: string;
|
|
77
|
+
}): CancelablePromise<MemberBalancePaginatedList>;
|
|
70
78
|
/**
|
|
71
|
-
* @param projectId
|
|
72
|
-
* @param orderByName
|
|
73
|
-
* @param orderByAmount
|
|
74
|
-
* @param limit
|
|
75
|
-
* @param next
|
|
76
79
|
* @returns WalletBalancePaginatedList OK
|
|
77
80
|
* @throws ApiError
|
|
78
81
|
*/
|
|
79
|
-
static getProjectsBalanceWallets(projectId
|
|
82
|
+
static getProjectsBalanceWallets({ projectId, orderByName, orderByAmount, limit, next, }: {
|
|
83
|
+
projectId: string;
|
|
84
|
+
orderByName?: 'Desc' | 'Asc';
|
|
85
|
+
orderByAmount?: 'Desc' | 'Asc';
|
|
86
|
+
limit?: number;
|
|
87
|
+
next?: string;
|
|
88
|
+
}): CancelablePromise<WalletBalancePaginatedList>;
|
|
80
89
|
/**
|
|
81
|
-
* @param projectId
|
|
82
|
-
* @param query
|
|
83
|
-
* @param types
|
|
84
|
-
* @param walletIds
|
|
85
|
-
* @param labelIds
|
|
86
|
-
* @param companyIds
|
|
87
|
-
* @param memberIds
|
|
88
|
-
* @param from
|
|
89
|
-
* @param to
|
|
90
|
-
* @param orderByName
|
|
91
|
-
* @param orderByTime
|
|
92
|
-
* @param grouped
|
|
93
|
-
* @param limit
|
|
94
|
-
* @param next
|
|
95
90
|
* @returns LogItemPaginatedList OK
|
|
96
91
|
* @throws ApiError
|
|
97
92
|
*/
|
|
98
|
-
static getProjectsLog(projectId
|
|
93
|
+
static getProjectsLog({ projectId, query, types, walletIds, labelIds, companyIds, memberIds, from, to, orderByName, orderByTime, grouped, limit, next, }: {
|
|
94
|
+
projectId: string;
|
|
95
|
+
query?: string;
|
|
96
|
+
types?: Array<'income' | 'outcome' | 'transfer' | 'receivable' | 'settlement' | 'multiEvent'>;
|
|
97
|
+
walletIds?: Array<string>;
|
|
98
|
+
labelIds?: Array<string>;
|
|
99
|
+
companyIds?: Array<string>;
|
|
100
|
+
memberIds?: Array<string>;
|
|
101
|
+
from?: string;
|
|
102
|
+
to?: string;
|
|
103
|
+
orderByName?: 'Desc' | 'Asc';
|
|
104
|
+
orderByTime?: 'Desc' | 'Asc';
|
|
105
|
+
grouped?: boolean;
|
|
106
|
+
limit?: number;
|
|
107
|
+
next?: string;
|
|
108
|
+
}): CancelablePromise<LogItemPaginatedList>;
|
|
99
109
|
}
|
|
@@ -2,14 +2,10 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class ProjectsService {
|
|
4
4
|
/**
|
|
5
|
-
* @param query
|
|
6
|
-
* @param orderByName
|
|
7
|
-
* @param limit
|
|
8
|
-
* @param next
|
|
9
5
|
* @returns ProjectPaginatedList OK
|
|
10
6
|
* @throws ApiError
|
|
11
7
|
*/
|
|
12
|
-
static getProjects(query, orderByName, limit = 100, next) {
|
|
8
|
+
static getProjects({ query, orderByName, limit = 100, next, }) {
|
|
13
9
|
return __request(OpenAPI, {
|
|
14
10
|
method: 'GET',
|
|
15
11
|
url: '/projects',
|
|
@@ -22,11 +18,10 @@ export class ProjectsService {
|
|
|
22
18
|
});
|
|
23
19
|
}
|
|
24
20
|
/**
|
|
25
|
-
* @param requestBody
|
|
26
21
|
* @returns Project OK
|
|
27
22
|
* @throws ApiError
|
|
28
23
|
*/
|
|
29
|
-
static postProjects(requestBody) {
|
|
24
|
+
static postProjects({ requestBody, }) {
|
|
30
25
|
return __request(OpenAPI, {
|
|
31
26
|
method: 'POST',
|
|
32
27
|
url: '/projects',
|
|
@@ -36,11 +31,10 @@ export class ProjectsService {
|
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
38
33
|
* Get projects in bulk.
|
|
39
|
-
* @param requestBody
|
|
40
34
|
* @returns ProjectBatchGetResult OK
|
|
41
35
|
* @throws ApiError
|
|
42
36
|
*/
|
|
43
|
-
static batchGetProjects(requestBody) {
|
|
37
|
+
static batchGetProjects({ requestBody, }) {
|
|
44
38
|
return __request(OpenAPI, {
|
|
45
39
|
method: 'POST',
|
|
46
40
|
url: '/projects/$batchGet',
|
|
@@ -49,11 +43,10 @@ export class ProjectsService {
|
|
|
49
43
|
});
|
|
50
44
|
}
|
|
51
45
|
/**
|
|
52
|
-
* @param projectId
|
|
53
46
|
* @returns any OK
|
|
54
47
|
* @throws ApiError
|
|
55
48
|
*/
|
|
56
|
-
static deleteProjects(projectId) {
|
|
49
|
+
static deleteProjects({ projectId, }) {
|
|
57
50
|
return __request(OpenAPI, {
|
|
58
51
|
method: 'DELETE',
|
|
59
52
|
url: '/projects/{projectId}',
|
|
@@ -63,11 +56,10 @@ export class ProjectsService {
|
|
|
63
56
|
});
|
|
64
57
|
}
|
|
65
58
|
/**
|
|
66
|
-
* @param projectId
|
|
67
59
|
* @returns Project OK
|
|
68
60
|
* @throws ApiError
|
|
69
61
|
*/
|
|
70
|
-
static getProjects1(projectId) {
|
|
62
|
+
static getProjects1({ projectId, }) {
|
|
71
63
|
return __request(OpenAPI, {
|
|
72
64
|
method: 'GET',
|
|
73
65
|
url: '/projects/{projectId}',
|
|
@@ -77,12 +69,10 @@ export class ProjectsService {
|
|
|
77
69
|
});
|
|
78
70
|
}
|
|
79
71
|
/**
|
|
80
|
-
* @param projectId
|
|
81
|
-
* @param requestBody
|
|
82
72
|
* @returns Project OK
|
|
83
73
|
* @throws ApiError
|
|
84
74
|
*/
|
|
85
|
-
static patchProjects(projectId, requestBody) {
|
|
75
|
+
static patchProjects({ projectId, requestBody, }) {
|
|
86
76
|
return __request(OpenAPI, {
|
|
87
77
|
method: 'PATCH',
|
|
88
78
|
url: '/projects/{projectId}',
|
|
@@ -94,11 +84,10 @@ export class ProjectsService {
|
|
|
94
84
|
});
|
|
95
85
|
}
|
|
96
86
|
/**
|
|
97
|
-
* @param projectId
|
|
98
87
|
* @returns BalanceReport OK
|
|
99
88
|
* @throws ApiError
|
|
100
89
|
*/
|
|
101
|
-
static getProjectsBalance(projectId) {
|
|
90
|
+
static getProjectsBalance({ projectId, }) {
|
|
102
91
|
return __request(OpenAPI, {
|
|
103
92
|
method: 'GET',
|
|
104
93
|
url: '/projects/{projectId}/balance',
|
|
@@ -108,15 +97,10 @@ export class ProjectsService {
|
|
|
108
97
|
});
|
|
109
98
|
}
|
|
110
99
|
/**
|
|
111
|
-
* @param projectId
|
|
112
|
-
* @param orderByName
|
|
113
|
-
* @param orderByAmount
|
|
114
|
-
* @param limit
|
|
115
|
-
* @param next
|
|
116
100
|
* @returns MemberBalancePaginatedList OK
|
|
117
101
|
* @throws ApiError
|
|
118
102
|
*/
|
|
119
|
-
static getProjectsBalanceMembers(projectId, orderByName, orderByAmount, limit = 100, next) {
|
|
103
|
+
static getProjectsBalanceMembers({ projectId, orderByName, orderByAmount, limit = 100, next, }) {
|
|
120
104
|
return __request(OpenAPI, {
|
|
121
105
|
method: 'GET',
|
|
122
106
|
url: '/projects/{projectId}/balance/members',
|
|
@@ -132,15 +116,10 @@ export class ProjectsService {
|
|
|
132
116
|
});
|
|
133
117
|
}
|
|
134
118
|
/**
|
|
135
|
-
* @param projectId
|
|
136
|
-
* @param orderByName
|
|
137
|
-
* @param orderByAmount
|
|
138
|
-
* @param limit
|
|
139
|
-
* @param next
|
|
140
119
|
* @returns WalletBalancePaginatedList OK
|
|
141
120
|
* @throws ApiError
|
|
142
121
|
*/
|
|
143
|
-
static getProjectsBalanceWallets(projectId, orderByName, orderByAmount, limit = 100, next) {
|
|
122
|
+
static getProjectsBalanceWallets({ projectId, orderByName, orderByAmount, limit = 100, next, }) {
|
|
144
123
|
return __request(OpenAPI, {
|
|
145
124
|
method: 'GET',
|
|
146
125
|
url: '/projects/{projectId}/balance/wallets',
|
|
@@ -156,24 +135,10 @@ export class ProjectsService {
|
|
|
156
135
|
});
|
|
157
136
|
}
|
|
158
137
|
/**
|
|
159
|
-
* @param projectId
|
|
160
|
-
* @param query
|
|
161
|
-
* @param types
|
|
162
|
-
* @param walletIds
|
|
163
|
-
* @param labelIds
|
|
164
|
-
* @param companyIds
|
|
165
|
-
* @param memberIds
|
|
166
|
-
* @param from
|
|
167
|
-
* @param to
|
|
168
|
-
* @param orderByName
|
|
169
|
-
* @param orderByTime
|
|
170
|
-
* @param grouped
|
|
171
|
-
* @param limit
|
|
172
|
-
* @param next
|
|
173
138
|
* @returns LogItemPaginatedList OK
|
|
174
139
|
* @throws ApiError
|
|
175
140
|
*/
|
|
176
|
-
static getProjectsLog(projectId, query, types, walletIds, labelIds, companyIds, memberIds, from, to, orderByName, orderByTime, grouped = true, limit = 100, next) {
|
|
141
|
+
static getProjectsLog({ projectId, query, types, walletIds, labelIds, companyIds, memberIds, from, to, orderByName, orderByTime, grouped = true, limit = 100, next, }) {
|
|
177
142
|
return __request(OpenAPI, {
|
|
178
143
|
method: 'GET',
|
|
179
144
|
url: '/projects/{projectId}/log',
|
|
@@ -5,42 +5,47 @@ import type { TemplatePaginatedList } from '../models/TemplatePaginatedList';
|
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class TemplatesService {
|
|
7
7
|
/**
|
|
8
|
-
* @param projectId
|
|
9
|
-
* @param query
|
|
10
|
-
* @param orderByName
|
|
11
|
-
* @param limit
|
|
12
|
-
* @param next
|
|
13
8
|
* @returns TemplatePaginatedList OK
|
|
14
9
|
* @throws ApiError
|
|
15
10
|
*/
|
|
16
|
-
static getProjectsTemplates(projectId
|
|
11
|
+
static getProjectsTemplates({ projectId, query, orderByName, limit, next, }: {
|
|
12
|
+
projectId: string;
|
|
13
|
+
query?: string;
|
|
14
|
+
orderByName?: 'Desc' | 'Asc';
|
|
15
|
+
limit?: number;
|
|
16
|
+
next?: string;
|
|
17
|
+
}): CancelablePromise<TemplatePaginatedList>;
|
|
17
18
|
/**
|
|
18
|
-
* @param projectId
|
|
19
|
-
* @param requestBody
|
|
20
19
|
* @returns Template OK
|
|
21
20
|
* @throws ApiError
|
|
22
21
|
*/
|
|
23
|
-
static postProjectsTemplates(projectId
|
|
22
|
+
static postProjectsTemplates({ projectId, requestBody, }: {
|
|
23
|
+
projectId: string;
|
|
24
|
+
requestBody?: TemplateInsert;
|
|
25
|
+
}): CancelablePromise<Template>;
|
|
24
26
|
/**
|
|
25
|
-
* @param projectId
|
|
26
|
-
* @param templateId
|
|
27
27
|
* @returns any OK
|
|
28
28
|
* @throws ApiError
|
|
29
29
|
*/
|
|
30
|
-
static deleteProjectsTemplates(projectId
|
|
30
|
+
static deleteProjectsTemplates({ projectId, templateId, }: {
|
|
31
|
+
projectId: string;
|
|
32
|
+
templateId: string;
|
|
33
|
+
}): CancelablePromise<any>;
|
|
31
34
|
/**
|
|
32
|
-
* @param projectId
|
|
33
|
-
* @param templateId
|
|
34
35
|
* @returns Template OK
|
|
35
36
|
* @throws ApiError
|
|
36
37
|
*/
|
|
37
|
-
static getProjectsTemplates1(projectId
|
|
38
|
+
static getProjectsTemplates1({ projectId, templateId, }: {
|
|
39
|
+
projectId: string;
|
|
40
|
+
templateId: string;
|
|
41
|
+
}): CancelablePromise<Template>;
|
|
38
42
|
/**
|
|
39
|
-
* @param projectId
|
|
40
|
-
* @param templateId
|
|
41
|
-
* @param requestBody
|
|
42
43
|
* @returns Template OK
|
|
43
44
|
* @throws ApiError
|
|
44
45
|
*/
|
|
45
|
-
static patchProjectsTemplates(projectId
|
|
46
|
+
static patchProjectsTemplates({ projectId, templateId, requestBody, }: {
|
|
47
|
+
projectId: string;
|
|
48
|
+
templateId: string;
|
|
49
|
+
requestBody?: TemplateEdit;
|
|
50
|
+
}): CancelablePromise<Template>;
|
|
46
51
|
}
|
|
@@ -2,15 +2,10 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class TemplatesService {
|
|
4
4
|
/**
|
|
5
|
-
* @param projectId
|
|
6
|
-
* @param query
|
|
7
|
-
* @param orderByName
|
|
8
|
-
* @param limit
|
|
9
|
-
* @param next
|
|
10
5
|
* @returns TemplatePaginatedList OK
|
|
11
6
|
* @throws ApiError
|
|
12
7
|
*/
|
|
13
|
-
static getProjectsTemplates(projectId, query, orderByName, limit = 100, next) {
|
|
8
|
+
static getProjectsTemplates({ projectId, query, orderByName, limit = 100, next, }) {
|
|
14
9
|
return __request(OpenAPI, {
|
|
15
10
|
method: 'GET',
|
|
16
11
|
url: '/projects/{projectId}/templates',
|
|
@@ -26,12 +21,10 @@ export class TemplatesService {
|
|
|
26
21
|
});
|
|
27
22
|
}
|
|
28
23
|
/**
|
|
29
|
-
* @param projectId
|
|
30
|
-
* @param requestBody
|
|
31
24
|
* @returns Template OK
|
|
32
25
|
* @throws ApiError
|
|
33
26
|
*/
|
|
34
|
-
static postProjectsTemplates(projectId, requestBody) {
|
|
27
|
+
static postProjectsTemplates({ projectId, requestBody, }) {
|
|
35
28
|
return __request(OpenAPI, {
|
|
36
29
|
method: 'POST',
|
|
37
30
|
url: '/projects/{projectId}/templates',
|
|
@@ -43,12 +36,10 @@ export class TemplatesService {
|
|
|
43
36
|
});
|
|
44
37
|
}
|
|
45
38
|
/**
|
|
46
|
-
* @param projectId
|
|
47
|
-
* @param templateId
|
|
48
39
|
* @returns any OK
|
|
49
40
|
* @throws ApiError
|
|
50
41
|
*/
|
|
51
|
-
static deleteProjectsTemplates(projectId, templateId) {
|
|
42
|
+
static deleteProjectsTemplates({ projectId, templateId, }) {
|
|
52
43
|
return __request(OpenAPI, {
|
|
53
44
|
method: 'DELETE',
|
|
54
45
|
url: '/projects/{projectId}/templates/{templateId}',
|
|
@@ -59,12 +50,10 @@ export class TemplatesService {
|
|
|
59
50
|
});
|
|
60
51
|
}
|
|
61
52
|
/**
|
|
62
|
-
* @param projectId
|
|
63
|
-
* @param templateId
|
|
64
53
|
* @returns Template OK
|
|
65
54
|
* @throws ApiError
|
|
66
55
|
*/
|
|
67
|
-
static getProjectsTemplates1(projectId, templateId) {
|
|
56
|
+
static getProjectsTemplates1({ projectId, templateId, }) {
|
|
68
57
|
return __request(OpenAPI, {
|
|
69
58
|
method: 'GET',
|
|
70
59
|
url: '/projects/{projectId}/templates/{templateId}',
|
|
@@ -75,13 +64,10 @@ export class TemplatesService {
|
|
|
75
64
|
});
|
|
76
65
|
}
|
|
77
66
|
/**
|
|
78
|
-
* @param projectId
|
|
79
|
-
* @param templateId
|
|
80
|
-
* @param requestBody
|
|
81
67
|
* @returns Template OK
|
|
82
68
|
* @throws ApiError
|
|
83
69
|
*/
|
|
84
|
-
static patchProjectsTemplates(projectId, templateId, requestBody) {
|
|
70
|
+
static patchProjectsTemplates({ projectId, templateId, requestBody, }) {
|
|
85
71
|
return __request(OpenAPI, {
|
|
86
72
|
method: 'PATCH',
|
|
87
73
|
url: '/projects/{projectId}/templates/{templateId}',
|
|
@@ -5,40 +5,47 @@ import type { TrashTask } from '../models/TrashTask';
|
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class TrashService {
|
|
7
7
|
/**
|
|
8
|
-
* @param projectId
|
|
9
|
-
* @param limit
|
|
10
|
-
* @param next
|
|
11
8
|
* @returns TrashItemPaginatedList OK
|
|
12
9
|
* @throws ApiError
|
|
13
10
|
*/
|
|
14
|
-
static getProjectsTrash(projectId
|
|
11
|
+
static getProjectsTrash({ projectId, limit, next, }: {
|
|
12
|
+
projectId: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
next?: string;
|
|
15
|
+
}): CancelablePromise<TrashItemPaginatedList>;
|
|
15
16
|
/**
|
|
16
17
|
* Refresh a set of trashed items in bulk — the client re-polls the items it is currently showing (e.g. to
|
|
17
18
|
* pick up restore-status transitions). Each id still in the Trash comes back in `Items` with its
|
|
18
19
|
* current restore status; ids that have since left the Trash (restored or erased) come back in
|
|
19
20
|
* `NotFoundIds`, so the client can drop them from the view.
|
|
20
|
-
* @param projectId
|
|
21
|
-
* @param requestBody
|
|
22
21
|
* @returns TrashItemBatchGetResult OK
|
|
23
22
|
* @throws ApiError
|
|
24
23
|
*/
|
|
25
|
-
static batchGetTrash(projectId
|
|
24
|
+
static batchGetTrash({ projectId, requestBody, }: {
|
|
25
|
+
projectId: string;
|
|
26
|
+
requestBody: TrashBatchGet;
|
|
27
|
+
}): CancelablePromise<TrashItemBatchGetResult>;
|
|
26
28
|
/**
|
|
27
|
-
* @param projectId
|
|
28
|
-
* @param taskId
|
|
29
29
|
* @returns TrashTask OK
|
|
30
30
|
* @throws ApiError
|
|
31
31
|
*/
|
|
32
|
-
static getProjectsTrashTasks(projectId
|
|
32
|
+
static getProjectsTrashTasks({ projectId, taskId, }: {
|
|
33
|
+
projectId: string;
|
|
34
|
+
taskId: string;
|
|
35
|
+
}): CancelablePromise<TrashTask>;
|
|
33
36
|
/**
|
|
34
|
-
* @param projectId
|
|
35
|
-
* @param type The kind of entity a trashed item / trash operation refers to. Single source of truth for the trash
|
|
36
|
-
* type list — used for the route type segment, the Trash service dispatch, and Incomy.Platform.Hub.Models.TrashItem.Type.
|
|
37
|
-
* Serializes PascalCase ("Project", "MultiEvent", …); route binding is case-insensitive.
|
|
38
|
-
* @param id
|
|
39
|
-
* @param restoreOwners
|
|
40
37
|
* @returns TrashTask OK
|
|
41
38
|
* @throws ApiError
|
|
42
39
|
*/
|
|
43
|
-
static postProjectsTrashRestore(projectId
|
|
40
|
+
static postProjectsTrashRestore({ projectId, type, id, restoreOwners, }: {
|
|
41
|
+
projectId: string;
|
|
42
|
+
/**
|
|
43
|
+
* The kind of entity a trashed item / trash operation refers to. Single source of truth for the trash
|
|
44
|
+
* type list — used for the route type segment, the Trash service dispatch, and Incomy.Platform.Hub.Models.TrashItem.Type.
|
|
45
|
+
* Serializes PascalCase ("Project", "MultiEvent", …); route binding is case-insensitive.
|
|
46
|
+
*/
|
|
47
|
+
type: 'Project' | 'MultiEvent' | 'Operation' | 'Accrual' | 'Wallet' | 'Member' | 'Bucket' | 'Company' | 'Template' | 'Label';
|
|
48
|
+
id: string;
|
|
49
|
+
restoreOwners?: boolean;
|
|
50
|
+
}): CancelablePromise<TrashTask>;
|
|
44
51
|
}
|
|
@@ -2,13 +2,10 @@ import { OpenAPI } from '../core/OpenAPI';
|
|
|
2
2
|
import { request as __request } from '../core/request';
|
|
3
3
|
export class TrashService {
|
|
4
4
|
/**
|
|
5
|
-
* @param projectId
|
|
6
|
-
* @param limit
|
|
7
|
-
* @param next
|
|
8
5
|
* @returns TrashItemPaginatedList OK
|
|
9
6
|
* @throws ApiError
|
|
10
7
|
*/
|
|
11
|
-
static getProjectsTrash(projectId, limit = 100, next) {
|
|
8
|
+
static getProjectsTrash({ projectId, limit = 100, next, }) {
|
|
12
9
|
return __request(OpenAPI, {
|
|
13
10
|
method: 'GET',
|
|
14
11
|
url: '/projects/{projectId}/trash',
|
|
@@ -26,12 +23,10 @@ export class TrashService {
|
|
|
26
23
|
* pick up restore-status transitions). Each id still in the Trash comes back in `Items` with its
|
|
27
24
|
* current restore status; ids that have since left the Trash (restored or erased) come back in
|
|
28
25
|
* `NotFoundIds`, so the client can drop them from the view.
|
|
29
|
-
* @param projectId
|
|
30
|
-
* @param requestBody
|
|
31
26
|
* @returns TrashItemBatchGetResult OK
|
|
32
27
|
* @throws ApiError
|
|
33
28
|
*/
|
|
34
|
-
static batchGetTrash(projectId, requestBody) {
|
|
29
|
+
static batchGetTrash({ projectId, requestBody, }) {
|
|
35
30
|
return __request(OpenAPI, {
|
|
36
31
|
method: 'POST',
|
|
37
32
|
url: '/projects/{projectId}/trash/$batchGet',
|
|
@@ -43,12 +38,10 @@ export class TrashService {
|
|
|
43
38
|
});
|
|
44
39
|
}
|
|
45
40
|
/**
|
|
46
|
-
* @param projectId
|
|
47
|
-
* @param taskId
|
|
48
41
|
* @returns TrashTask OK
|
|
49
42
|
* @throws ApiError
|
|
50
43
|
*/
|
|
51
|
-
static getProjectsTrashTasks(projectId, taskId) {
|
|
44
|
+
static getProjectsTrashTasks({ projectId, taskId, }) {
|
|
52
45
|
return __request(OpenAPI, {
|
|
53
46
|
method: 'GET',
|
|
54
47
|
url: '/projects/{projectId}/trash/tasks/{taskId}',
|
|
@@ -59,16 +52,10 @@ export class TrashService {
|
|
|
59
52
|
});
|
|
60
53
|
}
|
|
61
54
|
/**
|
|
62
|
-
* @param projectId
|
|
63
|
-
* @param type The kind of entity a trashed item / trash operation refers to. Single source of truth for the trash
|
|
64
|
-
* type list — used for the route type segment, the Trash service dispatch, and Incomy.Platform.Hub.Models.TrashItem.Type.
|
|
65
|
-
* Serializes PascalCase ("Project", "MultiEvent", …); route binding is case-insensitive.
|
|
66
|
-
* @param id
|
|
67
|
-
* @param restoreOwners
|
|
68
55
|
* @returns TrashTask OK
|
|
69
56
|
* @throws ApiError
|
|
70
57
|
*/
|
|
71
|
-
static postProjectsTrashRestore(projectId, type, id, restoreOwners = false) {
|
|
58
|
+
static postProjectsTrashRestore({ projectId, type, id, restoreOwners = false, }) {
|
|
72
59
|
return __request(OpenAPI, {
|
|
73
60
|
method: 'POST',
|
|
74
61
|
url: '/projects/{projectId}/trash/{type}/{id}/restore',
|
|
@@ -8,9 +8,10 @@ export declare class UserSettingsService {
|
|
|
8
8
|
*/
|
|
9
9
|
static getUsersMeSettings(): CancelablePromise<UserSettings>;
|
|
10
10
|
/**
|
|
11
|
-
* @param requestBody
|
|
12
11
|
* @returns UserSettings OK
|
|
13
12
|
* @throws ApiError
|
|
14
13
|
*/
|
|
15
|
-
static patchUsersMeSettings(requestBody
|
|
14
|
+
static patchUsersMeSettings({ requestBody, }: {
|
|
15
|
+
requestBody?: UserSettingsEdit;
|
|
16
|
+
}): CancelablePromise<UserSettings>;
|
|
16
17
|
}
|
|
@@ -12,11 +12,10 @@ export class UserSettingsService {
|
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* @param requestBody
|
|
16
15
|
* @returns UserSettings OK
|
|
17
16
|
* @throws ApiError
|
|
18
17
|
*/
|
|
19
|
-
static patchUsersMeSettings(requestBody) {
|
|
18
|
+
static patchUsersMeSettings({ requestBody, }) {
|
|
20
19
|
return __request(OpenAPI, {
|
|
21
20
|
method: 'PATCH',
|
|
22
21
|
url: '/users/me/settings',
|