@incomy/platform-sdk 0.4.0-45 → 0.4.0-47

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.
@@ -19,6 +19,7 @@ export type { EntryPaginatedList } from './models/EntryPaginatedList';
19
19
  export type { EntrySettlements } from './models/EntrySettlements';
20
20
  export type { InputFieldDefinition } from './models/InputFieldDefinition';
21
21
  export type { LogItem } from './models/LogItem';
22
+ export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
22
23
  export type { LogOperation } from './models/LogOperation';
23
24
  export type { LogSettlement } from './models/LogSettlement';
24
25
  export type { Member } from './models/Member';
@@ -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 {};
@@ -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,
@@ -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-47",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [