@incomy/platform-sdk 0.4.0-45 → 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.
Files changed (27) hide show
  1. package/dist/services/hub/index.d.ts +6 -0
  2. package/dist/services/hub/index.js +1 -0
  3. package/dist/services/hub/models/Label.d.ts +9 -0
  4. package/dist/services/hub/models/Label.js +1 -0
  5. package/dist/services/hub/models/LabelEdit.d.ts +7 -0
  6. package/dist/services/hub/models/LabelEdit.js +1 -0
  7. package/dist/services/hub/models/LabelInsert.d.ts +7 -0
  8. package/dist/services/hub/models/LabelInsert.js +1 -0
  9. package/dist/services/hub/models/LabelPaginatedList.d.ts +16 -0
  10. package/dist/services/hub/models/LabelPaginatedList.js +1 -0
  11. package/dist/services/hub/models/LogItemPaginatedList.d.ts +16 -0
  12. package/dist/services/hub/models/LogItemPaginatedList.js +1 -0
  13. package/dist/services/hub/models/LogOperation.d.ts +1 -0
  14. package/dist/services/hub/models/LogSettlement.d.ts +1 -0
  15. package/dist/services/hub/models/Operation.d.ts +1 -0
  16. package/dist/services/hub/models/OperationEdit.d.ts +1 -0
  17. package/dist/services/hub/models/OperationInsert.d.ts +1 -0
  18. package/dist/services/hub/models/Settlement.d.ts +1 -0
  19. package/dist/services/hub/models/SettlementEdit.d.ts +1 -0
  20. package/dist/services/hub/models/SettlementInsert.d.ts +1 -0
  21. package/dist/services/hub/services/EntriesService.d.ts +2 -1
  22. package/dist/services/hub/services/EntriesService.js +3 -1
  23. package/dist/services/hub/services/LabelsService.d.ts +46 -0
  24. package/dist/services/hub/services/LabelsService.js +96 -0
  25. package/dist/services/hub/services/ProjectsService.d.ts +8 -3
  26. package/dist/services/hub/services/ProjectsService.js +14 -2
  27. package/package.json +1 -1
@@ -18,7 +18,12 @@ 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';
26
+ export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
22
27
  export type { LogOperation } from './models/LogOperation';
23
28
  export type { LogSettlement } from './models/LogSettlement';
24
29
  export type { Member } from './models/Member';
@@ -61,6 +66,7 @@ export type { TemplateSettlementDefinition } from './models/TemplateSettlementDe
61
66
  export type { WalletBalance } from './models/WalletBalance';
62
67
  export { BucketsService } from './services/BucketsService';
63
68
  export { EntriesService } from './services/EntriesService';
69
+ export { LabelsService } from './services/LabelsService';
64
70
  export { MembersService } from './services/MembersService';
65
71
  export { OperationsService } from './services/OperationsService';
66
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 {};
@@ -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 {};
@@ -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
  };
@@ -7,6 +7,7 @@ export declare class EntriesService {
7
7
  /**
8
8
  * @param projectId
9
9
  * @param templateId
10
+ * @param query
10
11
  * @param includeBalance
11
12
  * @param orderByName
12
13
  * @param orderByTime
@@ -15,7 +16,7 @@ export declare class EntriesService {
15
16
  * @returns EntryPaginatedList OK
16
17
  * @throws ApiError
17
18
  */
18
- static getProjectsEntries(projectId: string, templateId?: string, includeBalance?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<EntryPaginatedList>;
19
+ static getProjectsEntries(projectId: string, templateId?: string, query?: string, includeBalance?: boolean, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<EntryPaginatedList>;
19
20
  /**
20
21
  * @param projectId
21
22
  * @param requestBody
@@ -4,6 +4,7 @@ export class EntriesService {
4
4
  /**
5
5
  * @param projectId
6
6
  * @param templateId
7
+ * @param query
7
8
  * @param includeBalance
8
9
  * @param orderByName
9
10
  * @param orderByTime
@@ -12,7 +13,7 @@ export class EntriesService {
12
13
  * @returns EntryPaginatedList OK
13
14
  * @throws ApiError
14
15
  */
15
- static getProjectsEntries(projectId, templateId, includeBalance = false, orderByName, orderByTime, limit = 100, next) {
16
+ static getProjectsEntries(projectId, templateId, query, includeBalance = false, orderByName, orderByTime, limit = 100, next) {
16
17
  return __request(OpenAPI, {
17
18
  method: 'GET',
18
19
  url: '/projects/{projectId}/entries',
@@ -21,6 +22,7 @@ export class EntriesService {
21
22
  },
22
23
  query: {
23
24
  'templateId': templateId,
25
+ 'query': query,
24
26
  'includeBalance': includeBalance,
25
27
  'orderByName': orderByName,
26
28
  'orderByTime': orderByTime,
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  import type { BalanceReport } from '../models/BalanceReport';
2
- import type { LogItem } from '../models/LogItem';
2
+ import type { LogItemPaginatedList } from '../models/LogItemPaginatedList';
3
3
  import type { Project } from '../models/Project';
4
4
  import type { ProjectBatchGet } from '../models/ProjectBatchGet';
5
5
  import type { ProjectBatchGetResult } from '../models/ProjectBatchGetResult';
@@ -50,10 +50,15 @@ export declare class ProjectsService {
50
50
  static getProjectsBalance(projectId: string): CancelablePromise<BalanceReport>;
51
51
  /**
52
52
  * @param projectId
53
- * @returns LogItem OK
53
+ * @param query
54
+ * @param orderByName
55
+ * @param orderByTime
56
+ * @param limit
57
+ * @param next
58
+ * @returns LogItemPaginatedList OK
54
59
  * @throws ApiError
55
60
  */
56
- static getProjectsLog(projectId: string): CancelablePromise<Array<LogItem>>;
61
+ static getProjectsLog(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', orderByTime?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<LogItemPaginatedList>;
57
62
  /**
58
63
  * Get projects in bulk.
59
64
  * @param requestBody
@@ -95,16 +95,28 @@ export class ProjectsService {
95
95
  }
96
96
  /**
97
97
  * @param projectId
98
- * @returns LogItem OK
98
+ * @param query
99
+ * @param orderByName
100
+ * @param orderByTime
101
+ * @param limit
102
+ * @param next
103
+ * @returns LogItemPaginatedList OK
99
104
  * @throws ApiError
100
105
  */
101
- static getProjectsLog(projectId) {
106
+ static getProjectsLog(projectId, query, orderByName, orderByTime, limit = 100, next) {
102
107
  return __request(OpenAPI, {
103
108
  method: 'GET',
104
109
  url: '/projects/{projectId}/log',
105
110
  path: {
106
111
  'projectId': projectId,
107
112
  },
113
+ query: {
114
+ 'query': query,
115
+ 'orderByName': orderByName,
116
+ 'orderByTime': orderByTime,
117
+ 'limit': limit,
118
+ 'next': next,
119
+ },
108
120
  });
109
121
  }
110
122
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.4.0-45",
3
+ "version": "0.4.0-49",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [