@incomy/platform-sdk 0.3.0-alpha.11 → 0.3.0-alpha.13

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.
@@ -53,6 +53,7 @@ export type { TemplateSettlementDefinition } from './models/TemplateSettlementDe
53
53
  export type { WalletBalance } from './models/WalletBalance';
54
54
  export { BucketsService } from './services/BucketsService';
55
55
  export { EntriesService } from './services/EntriesService';
56
+ export { OperationsService } from './services/OperationsService';
56
57
  export { ProjectsService } from './services/ProjectsService';
57
58
  export { ProjectWalletsService } from './services/ProjectWalletsService';
58
59
  export { TemplatesService } from './services/TemplatesService';
@@ -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 { OperationsService } from './services/OperationsService';
10
11
  export { ProjectsService } from './services/ProjectsService';
11
12
  export { ProjectWalletsService } from './services/ProjectWalletsService';
12
13
  export { TemplatesService } from './services/TemplatesService';
@@ -0,0 +1,43 @@
1
+ import type { Operation } from '../models/Operation';
2
+ import type { OperationEdit } from '../models/OperationEdit';
3
+ import type { OperationInsert } from '../models/OperationInsert';
4
+ import type { CancelablePromise } from '../core/CancelablePromise';
5
+ export declare class OperationsService {
6
+ /**
7
+ * @param projectId
8
+ * @param walletId
9
+ * @param standaloneOnly
10
+ * @returns Operation OK
11
+ * @throws ApiError
12
+ */
13
+ static getProjectsOperations(projectId: string, walletId?: string, standaloneOnly?: boolean): CancelablePromise<Array<Operation>>;
14
+ /**
15
+ * @param projectId
16
+ * @param requestBody
17
+ * @returns Operation OK
18
+ * @throws ApiError
19
+ */
20
+ static postProjectsOperations(projectId: string, requestBody?: OperationInsert): CancelablePromise<Operation>;
21
+ /**
22
+ * @param projectId
23
+ * @param operationId
24
+ * @returns Operation OK
25
+ * @throws ApiError
26
+ */
27
+ static getProjectsOperations1(projectId: string, operationId: string): CancelablePromise<Operation>;
28
+ /**
29
+ * @param projectId
30
+ * @param operationId
31
+ * @param requestBody
32
+ * @returns Operation OK
33
+ * @throws ApiError
34
+ */
35
+ static patchProjectsOperations(projectId: string, operationId: string, requestBody?: OperationEdit): CancelablePromise<Operation>;
36
+ /**
37
+ * @param projectId
38
+ * @param operationId
39
+ * @returns any OK
40
+ * @throws ApiError
41
+ */
42
+ static deleteProjectsOperations(projectId: string, operationId: string): CancelablePromise<any>;
43
+ }
@@ -0,0 +1,92 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class OperationsService {
4
+ /**
5
+ * @param projectId
6
+ * @param walletId
7
+ * @param standaloneOnly
8
+ * @returns Operation OK
9
+ * @throws ApiError
10
+ */
11
+ static getProjectsOperations(projectId, walletId, standaloneOnly = false) {
12
+ return __request(OpenAPI, {
13
+ method: 'GET',
14
+ url: '/projects/{projectId}/operations',
15
+ path: {
16
+ 'projectId': projectId,
17
+ },
18
+ query: {
19
+ 'walletId': walletId,
20
+ 'standaloneOnly': standaloneOnly,
21
+ },
22
+ });
23
+ }
24
+ /**
25
+ * @param projectId
26
+ * @param requestBody
27
+ * @returns Operation OK
28
+ * @throws ApiError
29
+ */
30
+ static postProjectsOperations(projectId, requestBody) {
31
+ return __request(OpenAPI, {
32
+ method: 'POST',
33
+ url: '/projects/{projectId}/operations',
34
+ path: {
35
+ 'projectId': projectId,
36
+ },
37
+ body: requestBody,
38
+ mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
39
+ });
40
+ }
41
+ /**
42
+ * @param projectId
43
+ * @param operationId
44
+ * @returns Operation OK
45
+ * @throws ApiError
46
+ */
47
+ static getProjectsOperations1(projectId, operationId) {
48
+ return __request(OpenAPI, {
49
+ method: 'GET',
50
+ url: '/projects/{projectId}/operations/{operationId}',
51
+ path: {
52
+ 'projectId': projectId,
53
+ 'operationId': operationId,
54
+ },
55
+ });
56
+ }
57
+ /**
58
+ * @param projectId
59
+ * @param operationId
60
+ * @param requestBody
61
+ * @returns Operation OK
62
+ * @throws ApiError
63
+ */
64
+ static patchProjectsOperations(projectId, operationId, requestBody) {
65
+ return __request(OpenAPI, {
66
+ method: 'PATCH',
67
+ url: '/projects/{projectId}/operations/{operationId}',
68
+ path: {
69
+ 'projectId': projectId,
70
+ 'operationId': operationId,
71
+ },
72
+ body: requestBody,
73
+ mediaType: 'application/json;odata.metadata=minimal;odata.streaming=true',
74
+ });
75
+ }
76
+ /**
77
+ * @param projectId
78
+ * @param operationId
79
+ * @returns any OK
80
+ * @throws ApiError
81
+ */
82
+ static deleteProjectsOperations(projectId, operationId) {
83
+ return __request(OpenAPI, {
84
+ method: 'DELETE',
85
+ url: '/projects/{projectId}/operations/{operationId}',
86
+ path: {
87
+ 'projectId': projectId,
88
+ 'operationId': operationId,
89
+ },
90
+ });
91
+ }
92
+ }
@@ -1,5 +1,4 @@
1
1
  import type { Balance } from '../models/Balance';
2
- import type { Operation } from '../models/Operation';
3
2
  import type { ProjectWallet } from '../models/ProjectWallet';
4
3
  import type { ProjectWalletEdit } from '../models/ProjectWalletEdit';
5
4
  import type { ProjectWalletInsert } from '../models/ProjectWalletInsert';
@@ -47,11 +46,4 @@ export declare class ProjectWalletsService {
47
46
  * @throws ApiError
48
47
  */
49
48
  static getProjectsWalletsBalance(projectId: string, walletId: string): CancelablePromise<Balance>;
50
- /**
51
- * @param projectId
52
- * @param walletId
53
- * @returns Operation OK
54
- * @throws ApiError
55
- */
56
- static getProjectsWalletsOperations(projectId: string, walletId: string): CancelablePromise<Array<Operation>>;
57
49
  }
@@ -99,20 +99,4 @@ export class ProjectWalletsService {
99
99
  },
100
100
  });
101
101
  }
102
- /**
103
- * @param projectId
104
- * @param walletId
105
- * @returns Operation OK
106
- * @throws ApiError
107
- */
108
- static getProjectsWalletsOperations(projectId, walletId) {
109
- return __request(OpenAPI, {
110
- method: 'GET',
111
- url: '/projects/{projectId}/wallets/{walletId}/operations',
112
- path: {
113
- 'projectId': projectId,
114
- 'walletId': walletId,
115
- },
116
- });
117
- }
118
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incomy/platform-sdk",
3
- "version": "0.3.0-alpha.11",
3
+ "version": "0.3.0-alpha.13",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [