@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.
@@ -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,9 @@
1
+ export type Label = {
2
+ id: string;
3
+ name: string;
4
+ /**
5
+ * Valid HEX color code (e.g. #FFF or #FFFFFF).
6
+ */
7
+ color: string;
8
+ projectId: string;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export type LabelEdit = {
2
+ name?: string | null;
3
+ /**
4
+ * Valid HEX color code (e.g. #FFF or #FFFFFF).
5
+ */
6
+ color?: string | null;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export type LabelInsert = {
2
+ name: string;
3
+ /**
4
+ * Valid HEX color code (e.g. #FFF or #FFFFFF).
5
+ */
6
+ color?: string | null;
7
+ };
@@ -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 {};
@@ -15,5 +15,6 @@ export type LogOperation = {
15
15
  * If set, operation will be deleted when unlined from an entry or when linked entry is deleted.
16
16
  */
17
17
  deleteWithEntryRemoval?: boolean;
18
+ labelIds: Array<string>;
18
19
  balance?: BalanceReport;
19
20
  };
@@ -15,5 +15,6 @@ export type LogSettlement = {
15
15
  * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
16
16
  */
17
17
  deleteWithEntryRemoval?: boolean;
18
+ labelIds: Array<string>;
18
19
  balance?: BalanceReport;
19
20
  };
@@ -14,4 +14,5 @@ export type Operation = {
14
14
  * If set, operation will be deleted when unlined from an entry or when linked entry is deleted.
15
15
  */
16
16
  deleteWithEntryRemoval?: boolean;
17
+ labelIds: Array<string>;
17
18
  };
@@ -22,4 +22,5 @@ export type OperationEdit = {
22
22
  * If set, operation will be deleted when unlined from an entry or when linked entry is deleted.
23
23
  */
24
24
  deleteWithEntryRemoval?: boolean | null;
25
+ labelIds?: Array<string> | null;
25
26
  };
@@ -16,4 +16,5 @@ export type OperationInsert = {
16
16
  * If set, operation will be deleted when unlined from an entry or when linked entry is deleted.
17
17
  */
18
18
  deleteWithEntryRemoval?: boolean;
19
+ labelIds?: Array<string> | null;
19
20
  };
@@ -14,4 +14,5 @@ export type Settlement = {
14
14
  * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
15
15
  */
16
16
  deleteWithEntryRemoval?: boolean;
17
+ labelIds: Array<string>;
17
18
  };
@@ -13,4 +13,5 @@ export type SettlementEdit = {
13
13
  * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
14
14
  */
15
15
  deleteWithEntryRemoval?: boolean | null;
16
+ labelIds?: Array<string> | null;
16
17
  };
@@ -16,4 +16,5 @@ export type SettlementInsert = {
16
16
  * If set, settlement will be deleted when unlined from an entry or when linked entry is deleted.
17
17
  */
18
18
  deleteWithEntryRemoval?: boolean;
19
+ labelIds?: Array<string> | null;
19
20
  };
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-47",
3
+ "version": "0.4.0-49",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [