@incomy/platform-sdk 0.4.0-47 → 0.4.0-49
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 +5 -0
- package/dist/services/hub/index.js +1 -0
- package/dist/services/hub/models/Label.d.ts +9 -0
- package/dist/services/hub/models/Label.js +1 -0
- package/dist/services/hub/models/LabelEdit.d.ts +7 -0
- package/dist/services/hub/models/LabelEdit.js +1 -0
- package/dist/services/hub/models/LabelInsert.d.ts +7 -0
- package/dist/services/hub/models/LabelInsert.js +1 -0
- package/dist/services/hub/models/LabelPaginatedList.d.ts +16 -0
- package/dist/services/hub/models/LabelPaginatedList.js +1 -0
- package/dist/services/hub/models/LogOperation.d.ts +1 -0
- package/dist/services/hub/models/LogSettlement.d.ts +1 -0
- package/dist/services/hub/models/Operation.d.ts +1 -0
- package/dist/services/hub/models/OperationEdit.d.ts +1 -0
- package/dist/services/hub/models/OperationInsert.d.ts +1 -0
- package/dist/services/hub/models/Settlement.d.ts +1 -0
- package/dist/services/hub/models/SettlementEdit.d.ts +1 -0
- package/dist/services/hub/models/SettlementInsert.d.ts +1 -0
- package/dist/services/hub/services/LabelsService.d.ts +46 -0
- package/dist/services/hub/services/LabelsService.js +96 -0
- package/package.json +1 -1
|
@@ -18,6 +18,10 @@ export type { EntryOperations } from './models/EntryOperations';
|
|
|
18
18
|
export type { EntryPaginatedList } from './models/EntryPaginatedList';
|
|
19
19
|
export type { EntrySettlements } from './models/EntrySettlements';
|
|
20
20
|
export type { InputFieldDefinition } from './models/InputFieldDefinition';
|
|
21
|
+
export type { Label } from './models/Label';
|
|
22
|
+
export type { LabelEdit } from './models/LabelEdit';
|
|
23
|
+
export type { LabelInsert } from './models/LabelInsert';
|
|
24
|
+
export type { LabelPaginatedList } from './models/LabelPaginatedList';
|
|
21
25
|
export type { LogItem } from './models/LogItem';
|
|
22
26
|
export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
|
|
23
27
|
export type { LogOperation } from './models/LogOperation';
|
|
@@ -62,6 +66,7 @@ export type { TemplateSettlementDefinition } from './models/TemplateSettlementDe
|
|
|
62
66
|
export type { WalletBalance } from './models/WalletBalance';
|
|
63
67
|
export { BucketsService } from './services/BucketsService';
|
|
64
68
|
export { EntriesService } from './services/EntriesService';
|
|
69
|
+
export { LabelsService } from './services/LabelsService';
|
|
65
70
|
export { MembersService } from './services/MembersService';
|
|
66
71
|
export { OperationsService } from './services/OperationsService';
|
|
67
72
|
export { ProjectsService } from './services/ProjectsService';
|
|
@@ -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 { LabelsService } from './services/LabelsService';
|
|
10
11
|
export { MembersService } from './services/MembersService';
|
|
11
12
|
export { OperationsService } from './services/OperationsService';
|
|
12
13
|
export { ProjectsService } from './services/ProjectsService';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Label } from './Label';
|
|
2
|
+
export type LabelPaginatedList = {
|
|
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<Label>;
|
|
15
|
+
meta?: Record<string, string | null> | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Label } from '../models/Label';
|
|
2
|
+
import type { LabelEdit } from '../models/LabelEdit';
|
|
3
|
+
import type { LabelInsert } from '../models/LabelInsert';
|
|
4
|
+
import type { LabelPaginatedList } from '../models/LabelPaginatedList';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class LabelsService {
|
|
7
|
+
/**
|
|
8
|
+
* @param projectId
|
|
9
|
+
* @param query
|
|
10
|
+
* @param orderByName
|
|
11
|
+
* @param limit
|
|
12
|
+
* @param next
|
|
13
|
+
* @returns LabelPaginatedList OK
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
static getProjectsLabels(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<LabelPaginatedList>;
|
|
17
|
+
/**
|
|
18
|
+
* @param projectId
|
|
19
|
+
* @param requestBody
|
|
20
|
+
* @returns Label OK
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static postProjectsLabels(projectId: string, requestBody?: LabelInsert): CancelablePromise<Label>;
|
|
24
|
+
/**
|
|
25
|
+
* @param projectId
|
|
26
|
+
* @param labelId
|
|
27
|
+
* @returns Label OK
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static getProjectsLabels1(projectId: string, labelId: string): CancelablePromise<Label>;
|
|
31
|
+
/**
|
|
32
|
+
* @param projectId
|
|
33
|
+
* @param labelId
|
|
34
|
+
* @param requestBody
|
|
35
|
+
* @returns Label OK
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static patchProjectsLabels(projectId: string, labelId: string, requestBody?: LabelEdit): CancelablePromise<Label>;
|
|
39
|
+
/**
|
|
40
|
+
* @param projectId
|
|
41
|
+
* @param labelId
|
|
42
|
+
* @returns any OK
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
static deleteProjectsLabels(projectId: string, labelId: string): CancelablePromise<any>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
2
|
+
import { request as __request } from '../core/request';
|
|
3
|
+
export class LabelsService {
|
|
4
|
+
/**
|
|
5
|
+
* @param projectId
|
|
6
|
+
* @param query
|
|
7
|
+
* @param orderByName
|
|
8
|
+
* @param limit
|
|
9
|
+
* @param next
|
|
10
|
+
* @returns LabelPaginatedList OK
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static getProjectsLabels(projectId, query, orderByName, limit = 100, next) {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/projects/{projectId}/labels',
|
|
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 Label OK
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static postProjectsLabels(projectId, requestBody) {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'POST',
|
|
37
|
+
url: '/projects/{projectId}/labels',
|
|
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 labelId
|
|
48
|
+
* @returns Label OK
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static getProjectsLabels1(projectId, labelId) {
|
|
52
|
+
return __request(OpenAPI, {
|
|
53
|
+
method: 'GET',
|
|
54
|
+
url: '/projects/{projectId}/labels/{labelId}',
|
|
55
|
+
path: {
|
|
56
|
+
'projectId': projectId,
|
|
57
|
+
'labelId': labelId,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @param projectId
|
|
63
|
+
* @param labelId
|
|
64
|
+
* @param requestBody
|
|
65
|
+
* @returns Label OK
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
static patchProjectsLabels(projectId, labelId, requestBody) {
|
|
69
|
+
return __request(OpenAPI, {
|
|
70
|
+
method: 'PATCH',
|
|
71
|
+
url: '/projects/{projectId}/labels/{labelId}',
|
|
72
|
+
path: {
|
|
73
|
+
'projectId': projectId,
|
|
74
|
+
'labelId': labelId,
|
|
75
|
+
},
|
|
76
|
+
body: requestBody,
|
|
77
|
+
mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @param projectId
|
|
82
|
+
* @param labelId
|
|
83
|
+
* @returns any OK
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static deleteProjectsLabels(projectId, labelId) {
|
|
87
|
+
return __request(OpenAPI, {
|
|
88
|
+
method: 'DELETE',
|
|
89
|
+
url: '/projects/{projectId}/labels/{labelId}',
|
|
90
|
+
path: {
|
|
91
|
+
'projectId': projectId,
|
|
92
|
+
'labelId': labelId,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|