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

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 (37) hide show
  1. package/dist/services/hub/index.d.ts +8 -1
  2. package/dist/services/hub/index.js +1 -0
  3. package/dist/services/hub/models/BalanceReport.d.ts +1 -2
  4. package/dist/services/hub/models/Label.d.ts +9 -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/LogOperation.d.ts +1 -0
  12. package/dist/services/hub/models/LogSettlement.d.ts +1 -0
  13. package/dist/services/hub/models/Member.d.ts +2 -0
  14. package/dist/services/hub/models/MemberBalance.d.ts +5 -0
  15. package/dist/services/hub/models/MemberBalance.js +1 -0
  16. package/dist/services/hub/models/MemberBalancePaginatedList.d.ts +16 -0
  17. package/dist/services/hub/models/MemberBalancePaginatedList.js +1 -0
  18. package/dist/services/hub/models/Operation.d.ts +1 -0
  19. package/dist/services/hub/models/OperationEdit.d.ts +1 -0
  20. package/dist/services/hub/models/OperationInsert.d.ts +1 -0
  21. package/dist/services/hub/models/ProjectWallet.d.ts +2 -0
  22. package/dist/services/hub/models/Settlement.d.ts +1 -0
  23. package/dist/services/hub/models/SettlementEdit.d.ts +1 -0
  24. package/dist/services/hub/models/SettlementInsert.d.ts +1 -0
  25. package/dist/services/hub/models/WalletBalancePaginatedList.d.ts +16 -0
  26. package/dist/services/hub/models/WalletBalancePaginatedList.js +1 -0
  27. package/dist/services/hub/services/LabelsService.d.ts +46 -0
  28. package/dist/services/hub/services/LabelsService.js +96 -0
  29. package/dist/services/hub/services/MembersService.d.ts +2 -1
  30. package/dist/services/hub/services/MembersService.js +3 -1
  31. package/dist/services/hub/services/ProjectWalletsService.d.ts +2 -1
  32. package/dist/services/hub/services/ProjectWalletsService.js +5 -1
  33. package/dist/services/hub/services/ProjectsService.d.ts +22 -0
  34. package/dist/services/hub/services/ProjectsService.js +48 -0
  35. package/package.json +1 -1
  36. package/dist/services/hub/models/ActualBalance.d.ts +0 -8
  37. /package/dist/services/hub/models/{ActualBalance.js → Label.js} +0 -0
@@ -2,7 +2,6 @@ export { ApiError } from './core/ApiError';
2
2
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
3
3
  export { OpenAPI } from './core/OpenAPI';
4
4
  export type { OpenAPIConfig } from './core/OpenAPI';
5
- export type { ActualBalance } from './models/ActualBalance';
6
5
  export type { Balance } from './models/Balance';
7
6
  export type { BalanceReport } from './models/BalanceReport';
8
7
  export type { Bucket } from './models/Bucket';
@@ -18,11 +17,17 @@ export type { EntryOperations } from './models/EntryOperations';
18
17
  export type { EntryPaginatedList } from './models/EntryPaginatedList';
19
18
  export type { EntrySettlements } from './models/EntrySettlements';
20
19
  export type { InputFieldDefinition } from './models/InputFieldDefinition';
20
+ export type { Label } from './models/Label';
21
+ export type { LabelEdit } from './models/LabelEdit';
22
+ export type { LabelInsert } from './models/LabelInsert';
23
+ export type { LabelPaginatedList } from './models/LabelPaginatedList';
21
24
  export type { LogItem } from './models/LogItem';
22
25
  export type { LogItemPaginatedList } from './models/LogItemPaginatedList';
23
26
  export type { LogOperation } from './models/LogOperation';
24
27
  export type { LogSettlement } from './models/LogSettlement';
25
28
  export type { Member } from './models/Member';
29
+ export type { MemberBalance } from './models/MemberBalance';
30
+ export type { MemberBalancePaginatedList } from './models/MemberBalancePaginatedList';
26
31
  export type { MemberBalanceReport } from './models/MemberBalanceReport';
27
32
  export type { MemberEdit } from './models/MemberEdit';
28
33
  export type { MemberInsert } from './models/MemberInsert';
@@ -60,8 +65,10 @@ export type { TemplateInsert } from './models/TemplateInsert';
60
65
  export type { TemplateOperationDefinition } from './models/TemplateOperationDefinition';
61
66
  export type { TemplateSettlementDefinition } from './models/TemplateSettlementDefinition';
62
67
  export type { WalletBalance } from './models/WalletBalance';
68
+ export type { WalletBalancePaginatedList } from './models/WalletBalancePaginatedList';
63
69
  export { BucketsService } from './services/BucketsService';
64
70
  export { EntriesService } from './services/EntriesService';
71
+ export { LabelsService } from './services/LabelsService';
65
72
  export { MembersService } from './services/MembersService';
66
73
  export { OperationsService } from './services/OperationsService';
67
74
  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';
@@ -1,6 +1,5 @@
1
- import type { ActualBalance } from './ActualBalance';
2
1
  import type { BucketableBalance } from './BucketableBalance';
3
2
  export type BalanceReport = {
4
- actualBalance: ActualBalance;
3
+ actualBalance: BucketableBalance;
5
4
  effectiveBalance: BucketableBalance;
6
5
  };
@@ -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,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
  };
@@ -1,4 +1,6 @@
1
+ import type { Money } from './Money';
1
2
  export type Member = {
2
3
  id: string;
3
4
  name: string;
5
+ balance?: Array<Money> | null;
4
6
  };
@@ -0,0 +1,5 @@
1
+ import type { Money } from './Money';
2
+ export type MemberBalance = {
3
+ total: Array<Money>;
4
+ memberId: string;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { MemberBalance } from './MemberBalance';
2
+ export type MemberBalancePaginatedList = {
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<MemberBalance>;
15
+ meta?: Record<string, string | null> | null;
16
+ };
@@ -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
  };
@@ -1,5 +1,7 @@
1
+ import type { Money } from './Money';
1
2
  export type ProjectWallet = {
2
3
  id: string;
3
4
  name: string;
4
5
  ownerId?: string | null;
6
+ balance?: Array<Money> | null;
5
7
  };
@@ -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,16 @@
1
+ import type { WalletBalance } from './WalletBalance';
2
+ export type WalletBalancePaginatedList = {
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<WalletBalance>;
15
+ meta?: Record<string, string | null> | null;
16
+ };
@@ -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
+ }
@@ -11,10 +11,11 @@ export declare class MembersService {
11
11
  * @param orderByName
12
12
  * @param limit
13
13
  * @param next
14
+ * @param includeBalance
14
15
  * @returns MemberPaginatedList OK
15
16
  * @throws ApiError
16
17
  */
17
- static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<MemberPaginatedList>;
18
+ static getProjectsMembers(projectId: string, query?: string, orderByName?: 'Desc' | 'Asc', limit?: number, next?: string, includeBalance?: boolean): CancelablePromise<MemberPaginatedList>;
18
19
  /**
19
20
  * @param projectId
20
21
  * @param requestBody
@@ -7,10 +7,11 @@ export class MembersService {
7
7
  * @param orderByName
8
8
  * @param limit
9
9
  * @param next
10
+ * @param includeBalance
10
11
  * @returns MemberPaginatedList OK
11
12
  * @throws ApiError
12
13
  */
13
- static getProjectsMembers(projectId, query, orderByName, limit = 100, next) {
14
+ static getProjectsMembers(projectId, query, orderByName, limit = 100, next, includeBalance = false) {
14
15
  return __request(OpenAPI, {
15
16
  method: 'GET',
16
17
  url: '/projects/{projectId}/members',
@@ -22,6 +23,7 @@ export class MembersService {
22
23
  'orderByName': orderByName,
23
24
  'limit': limit,
24
25
  'next': next,
26
+ 'includeBalance': includeBalance,
25
27
  },
26
28
  });
27
29
  }
@@ -6,10 +6,11 @@ import type { CancelablePromise } from '../core/CancelablePromise';
6
6
  export declare class ProjectWalletsService {
7
7
  /**
8
8
  * @param projectId
9
+ * @param includeBalance
9
10
  * @returns ProjectWallet OK
10
11
  * @throws ApiError
11
12
  */
12
- static getProjectsWallets(projectId: string): CancelablePromise<Array<ProjectWallet>>;
13
+ static getProjectsWallets(projectId: string, includeBalance?: boolean): CancelablePromise<Array<ProjectWallet>>;
13
14
  /**
14
15
  * @param projectId
15
16
  * @param requestBody
@@ -3,16 +3,20 @@ import { request as __request } from '../core/request';
3
3
  export class ProjectWalletsService {
4
4
  /**
5
5
  * @param projectId
6
+ * @param includeBalance
6
7
  * @returns ProjectWallet OK
7
8
  * @throws ApiError
8
9
  */
9
- static getProjectsWallets(projectId) {
10
+ static getProjectsWallets(projectId, includeBalance = false) {
10
11
  return __request(OpenAPI, {
11
12
  method: 'GET',
12
13
  url: '/projects/{projectId}/wallets',
13
14
  path: {
14
15
  'projectId': projectId,
15
16
  },
17
+ query: {
18
+ 'includeBalance': includeBalance,
19
+ },
16
20
  });
17
21
  }
18
22
  /**
@@ -1,11 +1,13 @@
1
1
  import type { BalanceReport } from '../models/BalanceReport';
2
2
  import type { LogItemPaginatedList } from '../models/LogItemPaginatedList';
3
+ import type { MemberBalancePaginatedList } from '../models/MemberBalancePaginatedList';
3
4
  import type { Project } from '../models/Project';
4
5
  import type { ProjectBatchGet } from '../models/ProjectBatchGet';
5
6
  import type { ProjectBatchGetResult } from '../models/ProjectBatchGetResult';
6
7
  import type { ProjectEdit } from '../models/ProjectEdit';
7
8
  import type { ProjectInsert } from '../models/ProjectInsert';
8
9
  import type { ProjectPaginatedList } from '../models/ProjectPaginatedList';
10
+ import type { WalletBalancePaginatedList } from '../models/WalletBalancePaginatedList';
9
11
  import type { CancelablePromise } from '../core/CancelablePromise';
10
12
  export declare class ProjectsService {
11
13
  /**
@@ -48,6 +50,26 @@ export declare class ProjectsService {
48
50
  * @throws ApiError
49
51
  */
50
52
  static getProjectsBalance(projectId: string): CancelablePromise<BalanceReport>;
53
+ /**
54
+ * @param projectId
55
+ * @param orderByName
56
+ * @param orderByAmount
57
+ * @param limit
58
+ * @param next
59
+ * @returns MemberBalancePaginatedList OK
60
+ * @throws ApiError
61
+ */
62
+ static getProjectsBalanceMembers(projectId: string, orderByName?: 'Desc' | 'Asc', orderByAmount?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<MemberBalancePaginatedList>;
63
+ /**
64
+ * @param projectId
65
+ * @param orderByName
66
+ * @param orderByAmount
67
+ * @param limit
68
+ * @param next
69
+ * @returns WalletBalancePaginatedList OK
70
+ * @throws ApiError
71
+ */
72
+ static getProjectsBalanceWallets(projectId: string, orderByName?: 'Desc' | 'Asc', orderByAmount?: 'Desc' | 'Asc', limit?: number, next?: string): CancelablePromise<WalletBalancePaginatedList>;
51
73
  /**
52
74
  * @param projectId
53
75
  * @param query
@@ -93,6 +93,54 @@ export class ProjectsService {
93
93
  },
94
94
  });
95
95
  }
96
+ /**
97
+ * @param projectId
98
+ * @param orderByName
99
+ * @param orderByAmount
100
+ * @param limit
101
+ * @param next
102
+ * @returns MemberBalancePaginatedList OK
103
+ * @throws ApiError
104
+ */
105
+ static getProjectsBalanceMembers(projectId, orderByName, orderByAmount, limit = 100, next) {
106
+ return __request(OpenAPI, {
107
+ method: 'GET',
108
+ url: '/projects/{projectId}/balance/members',
109
+ path: {
110
+ 'projectId': projectId,
111
+ },
112
+ query: {
113
+ 'orderByName': orderByName,
114
+ 'orderByAmount': orderByAmount,
115
+ 'limit': limit,
116
+ 'next': next,
117
+ },
118
+ });
119
+ }
120
+ /**
121
+ * @param projectId
122
+ * @param orderByName
123
+ * @param orderByAmount
124
+ * @param limit
125
+ * @param next
126
+ * @returns WalletBalancePaginatedList OK
127
+ * @throws ApiError
128
+ */
129
+ static getProjectsBalanceWallets(projectId, orderByName, orderByAmount, limit = 100, next) {
130
+ return __request(OpenAPI, {
131
+ method: 'GET',
132
+ url: '/projects/{projectId}/balance/wallets',
133
+ path: {
134
+ 'projectId': projectId,
135
+ },
136
+ query: {
137
+ 'orderByName': orderByName,
138
+ 'orderByAmount': orderByAmount,
139
+ 'limit': limit,
140
+ 'next': next,
141
+ },
142
+ });
143
+ }
96
144
  /**
97
145
  * @param projectId
98
146
  * @param query
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-51",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,8 +0,0 @@
1
- import type { BucketBalance } from './BucketBalance';
2
- import type { Money } from './Money';
3
- import type { WalletBalance } from './WalletBalance';
4
- export type ActualBalance = {
5
- total: Array<Money>;
6
- perBucketBreakdown: Array<BucketBalance>;
7
- perWalletBreakdown: Array<WalletBalance>;
8
- };