@incomy/platform-sdk 0.5.0 → 0.6.0-beta.2229
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 +7 -0
- package/dist/services/hub/index.js +2 -0
- package/dist/services/hub/models/Accrual.d.ts +9 -0
- package/dist/services/hub/models/AccrualPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/BucketPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/CompanyPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/LabelPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/LogAccrual.d.ts +9 -0
- package/dist/services/hub/models/LogItemPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/LogOperation.d.ts +9 -0
- package/dist/services/hub/models/MemberBalancePaginatedList.d.ts +0 -1
- package/dist/services/hub/models/MemberPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/MultiEventPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/Operation.d.ts +9 -0
- package/dist/services/hub/models/OperationPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/ProjectPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/ProjectWalletPaginatedList.d.ts +0 -1
- package/dist/services/hub/models/TemplatePaginatedList.d.ts +0 -1
- package/dist/services/hub/models/TrashBatchGet.d.ts +7 -0
- package/dist/services/hub/models/TrashBatchGet.js +1 -0
- package/dist/services/hub/models/TrashItem.d.ts +30 -0
- package/dist/services/hub/models/TrashItem.js +1 -0
- package/dist/services/hub/models/TrashItemBatchGetResult.d.ts +8 -0
- package/dist/services/hub/models/TrashItemBatchGetResult.js +1 -0
- package/dist/services/hub/models/TrashItemPaginatedList.d.ts +15 -0
- package/dist/services/hub/models/TrashItemPaginatedList.js +1 -0
- package/dist/services/hub/models/TrashTask.d.ts +10 -0
- package/dist/services/hub/models/TrashTask.js +1 -0
- package/dist/services/hub/models/WalletBalancePaginatedList.d.ts +0 -1
- package/dist/services/hub/services/DeletedProjectsService.d.ts +29 -0
- package/dist/services/hub/services/DeletedProjectsService.js +50 -0
- package/dist/services/hub/services/OperationsService.d.ts +7 -2
- package/dist/services/hub/services/OperationsService.js +13 -3
- package/dist/services/hub/services/ProjectsService.d.ts +7 -1
- package/dist/services/hub/services/ProjectsService.js +13 -1
- package/dist/services/hub/services/TrashService.d.ts +44 -0
- package/dist/services/hub/services/TrashService.js +85 -0
- package/meta.json +5 -5
- package/package.json +1 -1
|
@@ -74,6 +74,11 @@ export type { TemplateInsert } from './models/TemplateInsert';
|
|
|
74
74
|
export type { TemplateMultiEventDefinition } from './models/TemplateMultiEventDefinition';
|
|
75
75
|
export type { TemplateOperationDefinition } from './models/TemplateOperationDefinition';
|
|
76
76
|
export type { TemplatePaginatedList } from './models/TemplatePaginatedList';
|
|
77
|
+
export type { TrashBatchGet } from './models/TrashBatchGet';
|
|
78
|
+
export type { TrashItem } from './models/TrashItem';
|
|
79
|
+
export type { TrashItemBatchGetResult } from './models/TrashItemBatchGetResult';
|
|
80
|
+
export type { TrashItemPaginatedList } from './models/TrashItemPaginatedList';
|
|
81
|
+
export type { TrashTask } from './models/TrashTask';
|
|
77
82
|
export type { UpdateProfileRequest } from './models/UpdateProfileRequest';
|
|
78
83
|
export type { User } from './models/User';
|
|
79
84
|
export type { UserIdentity } from './models/UserIdentity';
|
|
@@ -86,6 +91,7 @@ export { AuthService } from './services/AuthService';
|
|
|
86
91
|
export { BucketsService } from './services/BucketsService';
|
|
87
92
|
export { CompaniesService } from './services/CompaniesService';
|
|
88
93
|
export { CurrenciesService } from './services/CurrenciesService';
|
|
94
|
+
export { DeletedProjectsService } from './services/DeletedProjectsService';
|
|
89
95
|
export { LabelsService } from './services/LabelsService';
|
|
90
96
|
export { MembersService } from './services/MembersService';
|
|
91
97
|
export { MultiEventsService } from './services/MultiEventsService';
|
|
@@ -93,4 +99,5 @@ export { OperationsService } from './services/OperationsService';
|
|
|
93
99
|
export { ProjectsService } from './services/ProjectsService';
|
|
94
100
|
export { ProjectWalletsService } from './services/ProjectWalletsService';
|
|
95
101
|
export { TemplatesService } from './services/TemplatesService';
|
|
102
|
+
export { TrashService } from './services/TrashService';
|
|
96
103
|
export { UserSettingsService } from './services/UserSettingsService';
|
|
@@ -10,6 +10,7 @@ export { AuthService } from './services/AuthService';
|
|
|
10
10
|
export { BucketsService } from './services/BucketsService';
|
|
11
11
|
export { CompaniesService } from './services/CompaniesService';
|
|
12
12
|
export { CurrenciesService } from './services/CurrenciesService';
|
|
13
|
+
export { DeletedProjectsService } from './services/DeletedProjectsService';
|
|
13
14
|
export { LabelsService } from './services/LabelsService';
|
|
14
15
|
export { MembersService } from './services/MembersService';
|
|
15
16
|
export { MultiEventsService } from './services/MultiEventsService';
|
|
@@ -17,4 +18,5 @@ export { OperationsService } from './services/OperationsService';
|
|
|
17
18
|
export { ProjectsService } from './services/ProjectsService';
|
|
18
19
|
export { ProjectWalletsService } from './services/ProjectWalletsService';
|
|
19
20
|
export { TemplatesService } from './services/TemplatesService';
|
|
21
|
+
export { TrashService } from './services/TrashService';
|
|
20
22
|
export { UserSettingsService } from './services/UserSettingsService';
|
|
@@ -3,6 +3,15 @@ import type { Money } from './Money';
|
|
|
3
3
|
export type Accrual = {
|
|
4
4
|
bucketBreakdown?: Array<BucketBreakdown> | null;
|
|
5
5
|
companyId?: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* Server-assigned creation time. Read-only. Among events sharing the same Incomy.Platform.Hub.Models.Accrual.OccurredAt,
|
|
8
|
+
* the most recently created is ordered first.
|
|
9
|
+
*/
|
|
10
|
+
dateCreated: string;
|
|
11
|
+
/**
|
|
12
|
+
* Server-assigned time of the last update. Read-only.
|
|
13
|
+
*/
|
|
14
|
+
dateLastUpdated: string;
|
|
6
15
|
/**
|
|
7
16
|
* If set, record will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
8
17
|
*/
|
|
@@ -5,6 +5,15 @@ export type LogAccrual = {
|
|
|
5
5
|
balance?: BalanceReport;
|
|
6
6
|
bucketBreakdown?: Array<BucketBreakdown> | null;
|
|
7
7
|
companyId?: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Server-assigned creation time. Read-only. Among events sharing the same Incomy.Platform.Hub.Models.Accrual.OccurredAt,
|
|
10
|
+
* the most recently created is ordered first.
|
|
11
|
+
*/
|
|
12
|
+
dateCreated: string;
|
|
13
|
+
/**
|
|
14
|
+
* Server-assigned time of the last update. Read-only.
|
|
15
|
+
*/
|
|
16
|
+
dateLastUpdated: string;
|
|
8
17
|
/**
|
|
9
18
|
* If set, record will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
10
19
|
*/
|
|
@@ -4,6 +4,15 @@ import type { Money } from './Money';
|
|
|
4
4
|
export type LogOperation = {
|
|
5
5
|
balance?: BalanceReport;
|
|
6
6
|
bucketBreakdown?: Array<BucketBreakdown> | null;
|
|
7
|
+
/**
|
|
8
|
+
* Server-assigned creation time. Read-only. Among events sharing the same Incomy.Platform.Hub.Models.Operation.Time,
|
|
9
|
+
* the most recently created is ordered first.
|
|
10
|
+
*/
|
|
11
|
+
dateCreated: string;
|
|
12
|
+
/**
|
|
13
|
+
* Server-assigned time of the last update. Read-only.
|
|
14
|
+
*/
|
|
15
|
+
dateLastUpdated: string;
|
|
7
16
|
/**
|
|
8
17
|
* If set, operation will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
9
18
|
*/
|
|
@@ -2,6 +2,15 @@ import type { BucketBreakdown } from './BucketBreakdown';
|
|
|
2
2
|
import type { Money } from './Money';
|
|
3
3
|
export type Operation = {
|
|
4
4
|
bucketBreakdown?: Array<BucketBreakdown> | null;
|
|
5
|
+
/**
|
|
6
|
+
* Server-assigned creation time. Read-only. Among events sharing the same Incomy.Platform.Hub.Models.Operation.Time,
|
|
7
|
+
* the most recently created is ordered first.
|
|
8
|
+
*/
|
|
9
|
+
dateCreated: string;
|
|
10
|
+
/**
|
|
11
|
+
* Server-assigned time of the last update. Read-only.
|
|
12
|
+
*/
|
|
13
|
+
dateLastUpdated: string;
|
|
5
14
|
/**
|
|
6
15
|
* If set, operation will be deleted when unlined from a multievent or when linked multievent is deleted.
|
|
7
16
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A trashed item shown in the Trash view (flat across entity types).
|
|
3
|
+
*/
|
|
4
|
+
export type TrashItem = {
|
|
5
|
+
/**
|
|
6
|
+
* Unix seconds when the item was deleted.
|
|
7
|
+
*/
|
|
8
|
+
deletedAt?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Unix seconds when the item becomes eligible for permanent erase.
|
|
11
|
+
*/
|
|
12
|
+
eraseAt?: number;
|
|
13
|
+
id?: string | null;
|
|
14
|
+
name?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Status of Incomy.Platform.Hub.Models.TrashItem.RestoreTaskId (InProgress | Failed); null when no restore is pending. A
|
|
17
|
+
* completed restore removes the item from the Trash, so a listed item's restore is never Done.
|
|
18
|
+
*/
|
|
19
|
+
restoreStatus?: 'InProgress' | 'Done' | 'Failed' | null;
|
|
20
|
+
/**
|
|
21
|
+
* Id of the in-flight (or last-failed) restore task for this item, if any — poll it via the tasks
|
|
22
|
+
* endpoint. Null when no restore is pending, so a client that reloads the Trash can re-attach to a restore
|
|
23
|
+
* it started and track each item independently.
|
|
24
|
+
*/
|
|
25
|
+
restoreTaskId?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* Entity type of the trashed item.
|
|
28
|
+
*/
|
|
29
|
+
type?: 'Project' | 'MultiEvent' | 'Operation' | 'Accrual' | 'Wallet' | 'Member' | 'Bucket' | 'Company' | 'Template' | 'Label';
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StringStringValueTuple } from './StringStringValueTuple';
|
|
2
|
+
import type { TrashItem } from './TrashItem';
|
|
3
|
+
export type TrashItemBatchGetResult = {
|
|
4
|
+
errors: Array<StringStringValueTuple>;
|
|
5
|
+
forbiddenIds: Array<string>;
|
|
6
|
+
items: Array<TrashItem>;
|
|
7
|
+
notFoundIds: Array<string>;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TrashItem } from './TrashItem';
|
|
2
|
+
export type TrashItemPaginatedList = {
|
|
3
|
+
/**
|
|
4
|
+
* Results for the current query
|
|
5
|
+
*/
|
|
6
|
+
items: Array<TrashItem>;
|
|
7
|
+
/**
|
|
8
|
+
* Token item to start the next query from; Empty start from the beginning
|
|
9
|
+
*/
|
|
10
|
+
next: string;
|
|
11
|
+
/**
|
|
12
|
+
* Estimated total count over all pages. -1 means the total count could not be determined.
|
|
13
|
+
*/
|
|
14
|
+
totalCount?: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TrashBatchGet } from '../models/TrashBatchGet';
|
|
2
|
+
import type { TrashItemBatchGetResult } from '../models/TrashItemBatchGetResult';
|
|
3
|
+
import type { TrashItemPaginatedList } from '../models/TrashItemPaginatedList';
|
|
4
|
+
import type { TrashTask } from '../models/TrashTask';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class DeletedProjectsService {
|
|
7
|
+
/**
|
|
8
|
+
* @param limit
|
|
9
|
+
* @param next
|
|
10
|
+
* @returns TrashItemPaginatedList OK
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static getTrashProjects(limit?: number, next?: string): CancelablePromise<TrashItemPaginatedList>;
|
|
14
|
+
/**
|
|
15
|
+
* Refresh a set of trashed projects in bulk — same contract as the in-project Trash `$batchGet`: each id
|
|
16
|
+
* still deleted comes back in `Items` with its current restore status; ids that have since been restored
|
|
17
|
+
* or erased come back in `NotFoundIds`, so the client can drop them from the view.
|
|
18
|
+
* @param requestBody
|
|
19
|
+
* @returns TrashItemBatchGetResult OK
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static batchGetDeletedProjects(requestBody: TrashBatchGet): CancelablePromise<TrashItemBatchGetResult>;
|
|
23
|
+
/**
|
|
24
|
+
* @param id
|
|
25
|
+
* @returns TrashTask OK
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static postTrashProjectsRestore(id: string): CancelablePromise<TrashTask>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class DeletedProjectsService {
|
|
4
|
+
/**
|
|
5
|
+
* @param limit
|
|
6
|
+
* @param next
|
|
7
|
+
* @returns TrashItemPaginatedList OK
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static getTrashProjects(limit = 100, next) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/trash/projects',
|
|
14
|
+
query: {
|
|
15
|
+
'limit': limit,
|
|
16
|
+
'next': next,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Refresh a set of trashed projects in bulk — same contract as the in-project Trash `$batchGet`: each id
|
|
22
|
+
* still deleted comes back in `Items` with its current restore status; ids that have since been restored
|
|
23
|
+
* or erased come back in `NotFoundIds`, so the client can drop them from the view.
|
|
24
|
+
* @param requestBody
|
|
25
|
+
* @returns TrashItemBatchGetResult OK
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static batchGetDeletedProjects(requestBody) {
|
|
29
|
+
return __request(OpenAPI, {
|
|
30
|
+
method: 'POST',
|
|
31
|
+
url: '/trash/projects/$batchGet',
|
|
32
|
+
body: requestBody,
|
|
33
|
+
mediaType: 'application/json',
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @param id
|
|
38
|
+
* @returns TrashTask OK
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static postTrashProjectsRestore(id) {
|
|
42
|
+
return __request(OpenAPI, {
|
|
43
|
+
method: 'POST',
|
|
44
|
+
url: '/trash/projects/{id}/restore',
|
|
45
|
+
path: {
|
|
46
|
+
'id': id,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -6,9 +6,14 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
6
6
|
export declare class OperationsService {
|
|
7
7
|
/**
|
|
8
8
|
* @param projectId
|
|
9
|
-
* @param
|
|
9
|
+
* @param walletIds
|
|
10
10
|
* @param query
|
|
11
11
|
* @param standaloneOnly
|
|
12
|
+
* @param types
|
|
13
|
+
* @param labelIds
|
|
14
|
+
* @param companyIds
|
|
15
|
+
* @param from
|
|
16
|
+
* @param to
|
|
12
17
|
* @param orderByName
|
|
13
18
|
* @param orderByTime
|
|
14
19
|
* @param limit
|
|
@@ -16,7 +21,7 @@ export declare class OperationsService {
|
|
|
16
21
|
* @returns OperationPaginatedList OK
|
|
17
22
|
* @throws ApiError
|
|
18
23
|
*/
|
|
19
|
-
static getProjectsOperations(projectId: string,
|
|
24
|
+
static getProjectsOperations(projectId: string, walletIds?: Array<string>, query?: string, standaloneOnly?: boolean, types?: Array<'in' | 'out' | 'transfer'>, labelIds?: Array<string>, companyIds?: Array<string>, from?: string, to?: string, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<OperationPaginatedList>;
|
|
20
25
|
/**
|
|
21
26
|
* @param projectId
|
|
22
27
|
* @param requestBody
|
|
@@ -3,9 +3,14 @@ import { request as __request } from '../core/request';
|
|
|
3
3
|
export class OperationsService {
|
|
4
4
|
/**
|
|
5
5
|
* @param projectId
|
|
6
|
-
* @param
|
|
6
|
+
* @param walletIds
|
|
7
7
|
* @param query
|
|
8
8
|
* @param standaloneOnly
|
|
9
|
+
* @param types
|
|
10
|
+
* @param labelIds
|
|
11
|
+
* @param companyIds
|
|
12
|
+
* @param from
|
|
13
|
+
* @param to
|
|
9
14
|
* @param orderByName
|
|
10
15
|
* @param orderByTime
|
|
11
16
|
* @param limit
|
|
@@ -13,7 +18,7 @@ export class OperationsService {
|
|
|
13
18
|
* @returns OperationPaginatedList OK
|
|
14
19
|
* @throws ApiError
|
|
15
20
|
*/
|
|
16
|
-
static getProjectsOperations(projectId,
|
|
21
|
+
static getProjectsOperations(projectId, walletIds, query, standaloneOnly = false, types, labelIds, companyIds, from, to, orderByName, orderByTime, limit = 100, next) {
|
|
17
22
|
return __request(OpenAPI, {
|
|
18
23
|
method: 'GET',
|
|
19
24
|
url: '/projects/{projectId}/operations',
|
|
@@ -21,9 +26,14 @@ export class OperationsService {
|
|
|
21
26
|
'projectId': projectId,
|
|
22
27
|
},
|
|
23
28
|
query: {
|
|
24
|
-
'
|
|
29
|
+
'walletIds': walletIds,
|
|
25
30
|
'query': query,
|
|
26
31
|
'standaloneOnly': standaloneOnly,
|
|
32
|
+
'types': types,
|
|
33
|
+
'labelIds': labelIds,
|
|
34
|
+
'companyIds': companyIds,
|
|
35
|
+
'from': from,
|
|
36
|
+
'to': to,
|
|
27
37
|
'orderByName': orderByName,
|
|
28
38
|
'orderByTime': orderByTime,
|
|
29
39
|
'limit': limit,
|
|
@@ -80,6 +80,12 @@ export declare class ProjectsService {
|
|
|
80
80
|
/**
|
|
81
81
|
* @param projectId
|
|
82
82
|
* @param query
|
|
83
|
+
* @param types
|
|
84
|
+
* @param walletIds
|
|
85
|
+
* @param labelIds
|
|
86
|
+
* @param companyIds
|
|
87
|
+
* @param from
|
|
88
|
+
* @param to
|
|
83
89
|
* @param orderByName
|
|
84
90
|
* @param orderByTime
|
|
85
91
|
* @param limit
|
|
@@ -87,5 +93,5 @@ export declare class ProjectsService {
|
|
|
87
93
|
* @returns LogItemPaginatedList OK
|
|
88
94
|
* @throws ApiError
|
|
89
95
|
*/
|
|
90
|
-
static getProjectsLog(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<LogItemPaginatedList>;
|
|
96
|
+
static getProjectsLog(projectId: string, query?: string, types?: Array<'income' | 'outcome' | 'transfer' | 'receivable' | 'settlement' | 'multiEvent'>, walletIds?: Array<string>, labelIds?: Array<string>, companyIds?: Array<string>, from?: string, to?: string, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<LogItemPaginatedList>;
|
|
91
97
|
}
|
|
@@ -158,6 +158,12 @@ export class ProjectsService {
|
|
|
158
158
|
/**
|
|
159
159
|
* @param projectId
|
|
160
160
|
* @param query
|
|
161
|
+
* @param types
|
|
162
|
+
* @param walletIds
|
|
163
|
+
* @param labelIds
|
|
164
|
+
* @param companyIds
|
|
165
|
+
* @param from
|
|
166
|
+
* @param to
|
|
161
167
|
* @param orderByName
|
|
162
168
|
* @param orderByTime
|
|
163
169
|
* @param limit
|
|
@@ -165,7 +171,7 @@ export class ProjectsService {
|
|
|
165
171
|
* @returns LogItemPaginatedList OK
|
|
166
172
|
* @throws ApiError
|
|
167
173
|
*/
|
|
168
|
-
static getProjectsLog(projectId, query, orderByName, orderByTime, limit = 100, next) {
|
|
174
|
+
static getProjectsLog(projectId, query, types, walletIds, labelIds, companyIds, from, to, orderByName, orderByTime, limit = 100, next) {
|
|
169
175
|
return __request(OpenAPI, {
|
|
170
176
|
method: 'GET',
|
|
171
177
|
url: '/projects/{projectId}/log',
|
|
@@ -174,6 +180,12 @@ export class ProjectsService {
|
|
|
174
180
|
},
|
|
175
181
|
query: {
|
|
176
182
|
'query': query,
|
|
183
|
+
'types': types,
|
|
184
|
+
'walletIds': walletIds,
|
|
185
|
+
'labelIds': labelIds,
|
|
186
|
+
'companyIds': companyIds,
|
|
187
|
+
'from': from,
|
|
188
|
+
'to': to,
|
|
177
189
|
'orderByName': orderByName,
|
|
178
190
|
'orderByTime': orderByTime,
|
|
179
191
|
'limit': limit,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { TrashBatchGet } from '../models/TrashBatchGet';
|
|
2
|
+
import type { TrashItemBatchGetResult } from '../models/TrashItemBatchGetResult';
|
|
3
|
+
import type { TrashItemPaginatedList } from '../models/TrashItemPaginatedList';
|
|
4
|
+
import type { TrashTask } from '../models/TrashTask';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class TrashService {
|
|
7
|
+
/**
|
|
8
|
+
* @param projectId
|
|
9
|
+
* @param limit
|
|
10
|
+
* @param next
|
|
11
|
+
* @returns TrashItemPaginatedList OK
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static getProjectsTrash(projectId: string, limit?: number, next?: string): CancelablePromise<TrashItemPaginatedList>;
|
|
15
|
+
/**
|
|
16
|
+
* Refresh a set of trashed items in bulk — the client re-polls the items it is currently showing (e.g. to
|
|
17
|
+
* pick up restore-status transitions). Each id still in the Trash comes back in `Items` with its
|
|
18
|
+
* current restore status; ids that have since left the Trash (restored or erased) come back in
|
|
19
|
+
* `NotFoundIds`, so the client can drop them from the view.
|
|
20
|
+
* @param projectId
|
|
21
|
+
* @param requestBody
|
|
22
|
+
* @returns TrashItemBatchGetResult OK
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static batchGetTrash(projectId: string, requestBody: TrashBatchGet): CancelablePromise<TrashItemBatchGetResult>;
|
|
26
|
+
/**
|
|
27
|
+
* @param projectId
|
|
28
|
+
* @param taskId
|
|
29
|
+
* @returns TrashTask OK
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static getProjectsTrashTasks(projectId: string, taskId: string): CancelablePromise<TrashTask>;
|
|
33
|
+
/**
|
|
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
|
+
* @returns TrashTask OK
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static postProjectsTrashRestore(projectId: string, type: 'Project' | 'MultiEvent' | 'Operation' | 'Accrual' | 'Wallet' | 'Member' | 'Bucket' | 'Company' | 'Template' | 'Label', id: string, restoreOwners?: boolean): CancelablePromise<TrashTask>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class TrashService {
|
|
4
|
+
/**
|
|
5
|
+
* @param projectId
|
|
6
|
+
* @param limit
|
|
7
|
+
* @param next
|
|
8
|
+
* @returns TrashItemPaginatedList OK
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getProjectsTrash(projectId, limit = 100, next) {
|
|
12
|
+
return __request(OpenAPI, {
|
|
13
|
+
method: 'GET',
|
|
14
|
+
url: '/projects/{projectId}/trash',
|
|
15
|
+
path: {
|
|
16
|
+
'projectId': projectId,
|
|
17
|
+
},
|
|
18
|
+
query: {
|
|
19
|
+
'limit': limit,
|
|
20
|
+
'next': next,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Refresh a set of trashed items in bulk — the client re-polls the items it is currently showing (e.g. to
|
|
26
|
+
* pick up restore-status transitions). Each id still in the Trash comes back in `Items` with its
|
|
27
|
+
* current restore status; ids that have since left the Trash (restored or erased) come back in
|
|
28
|
+
* `NotFoundIds`, so the client can drop them from the view.
|
|
29
|
+
* @param projectId
|
|
30
|
+
* @param requestBody
|
|
31
|
+
* @returns TrashItemBatchGetResult OK
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static batchGetTrash(projectId, requestBody) {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'POST',
|
|
37
|
+
url: '/projects/{projectId}/trash/$batchGet',
|
|
38
|
+
path: {
|
|
39
|
+
'projectId': projectId,
|
|
40
|
+
},
|
|
41
|
+
body: requestBody,
|
|
42
|
+
mediaType: 'application/json',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @param projectId
|
|
47
|
+
* @param taskId
|
|
48
|
+
* @returns TrashTask OK
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static getProjectsTrashTasks(projectId, taskId) {
|
|
52
|
+
return __request(OpenAPI, {
|
|
53
|
+
method: 'GET',
|
|
54
|
+
url: '/projects/{projectId}/trash/tasks/{taskId}',
|
|
55
|
+
path: {
|
|
56
|
+
'projectId': projectId,
|
|
57
|
+
'taskId': taskId,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
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
|
+
* @returns TrashTask OK
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static postProjectsTrashRestore(projectId, type, id, restoreOwners = false) {
|
|
72
|
+
return __request(OpenAPI, {
|
|
73
|
+
method: 'POST',
|
|
74
|
+
url: '/projects/{projectId}/trash/{type}/{id}/restore',
|
|
75
|
+
path: {
|
|
76
|
+
'projectId': projectId,
|
|
77
|
+
'type': type,
|
|
78
|
+
'id': id,
|
|
79
|
+
},
|
|
80
|
+
query: {
|
|
81
|
+
'restoreOwners': restoreOwners,
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
package/meta.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sdkVersion": "0.
|
|
3
|
-
"generatedAt": "2026-
|
|
4
|
-
"apiCommit": "
|
|
5
|
-
"pipelineUrl": "https://gitlab.com/incomy/platform/-/pipelines/
|
|
2
|
+
"sdkVersion": "0.6.0-beta.2229",
|
|
3
|
+
"generatedAt": "2026-07-07T14:09:07.451Z",
|
|
4
|
+
"apiCommit": "db292009",
|
|
5
|
+
"pipelineUrl": "https://gitlab.com/incomy/platform/-/pipelines/2658838091",
|
|
6
6
|
"sources": {
|
|
7
7
|
"hub": {
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "da73e2bcc34a59417d6b182b2f60a9dfeed70e829a7b2084b793c15a75c66444"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|