@corsa-labs/sdk 4.44.0 → 4.45.0
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.
- package/dist/CorsaClient.d.ts +4 -0
- package/dist/CorsaClient.js +6 -0
- package/dist/CorsaClient.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/models/BulkAppliedTransactionChanges.d.ts +5 -0
- package/dist/models/BulkAppliedTransactionChanges.js.map +1 -1
- package/dist/models/BulkTransactionUpdateFields.d.ts +5 -0
- package/dist/models/BulkTransactionUpdateFields.js.map +1 -1
- package/dist/models/CreateAlertDto.d.ts +4 -0
- package/dist/models/CreateAlertDto.js.map +1 -1
- package/dist/models/CreateExternalRuleDto.d.ts +18 -0
- package/dist/models/CreateExternalRuleDto.js +3 -0
- package/dist/models/CreateExternalRuleDto.js.map +1 -0
- package/dist/models/CreateTradeOperationResponseDto.d.ts +1 -1
- package/dist/models/CreateTransactionDto.d.ts +5 -0
- package/dist/models/CreateTransactionDto.js.map +1 -1
- package/dist/models/CreateTransferOperationDto.d.ts +24 -0
- package/dist/models/CreateTransferOperationDto.js +3 -0
- package/dist/models/CreateTransferOperationDto.js.map +1 -0
- package/dist/models/CreateTransferOperationResponseDto.d.ts +32 -0
- package/dist/models/CreateTransferOperationResponseDto.js +3 -0
- package/dist/models/CreateTransferOperationResponseDto.js.map +1 -0
- package/dist/models/RuleResponseDto.d.ts +5 -2
- package/dist/models/RuleResponseDto.js.map +1 -1
- package/dist/models/TradeOperationDto.d.ts +1 -1
- package/dist/models/TransactionDto.d.ts +11 -1
- package/dist/models/TransactionDto.js +1 -0
- package/dist/models/TransactionDto.js.map +1 -1
- package/dist/models/TransferOperationDto.d.ts +32 -0
- package/dist/models/TransferOperationDto.js +3 -0
- package/dist/models/TransferOperationDto.js.map +1 -0
- package/dist/models/UpdateExternalRuleDto.d.ts +12 -0
- package/dist/models/UpdateExternalRuleDto.js +3 -0
- package/dist/models/UpdateExternalRuleDto.js.map +1 -0
- package/dist/models/UpdateTransactionDto.d.ts +5 -0
- package/dist/models/UpdateTransactionDto.js.map +1 -1
- package/dist/services/ExternalRulesService.d.ts +235 -0
- package/dist/services/ExternalRulesService.js +304 -0
- package/dist/services/ExternalRulesService.js.map +1 -0
- package/dist/services/RulesService.d.ts +37 -1
- package/dist/services/RulesService.js +39 -1
- package/dist/services/RulesService.js.map +1 -1
- package/dist/services/TransfersService.d.ts +24 -0
- package/dist/services/TransfersService.js +44 -0
- package/dist/services/TransfersService.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import type { CreateExternalRuleDto } from '../models/CreateExternalRuleDto';
|
|
2
|
+
import type { RuleResponseDto } from '../models/RuleResponseDto';
|
|
3
|
+
import type { UpdateExternalRuleDto } from '../models/UpdateExternalRuleDto';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
|
+
export declare class ExternalRulesService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Create an external vendor rule
|
|
11
|
+
* Create an external vendor rule
|
|
12
|
+
* @param requestBody
|
|
13
|
+
* @returns RuleResponseDto
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
createExternalRule(requestBody: CreateExternalRuleDto): CancelablePromise<RuleResponseDto>;
|
|
17
|
+
/**
|
|
18
|
+
* List external rules with pagination
|
|
19
|
+
* List external rules with pagination
|
|
20
|
+
* @param page Page number to retrieve. If you provide invalid value the default page number will applied
|
|
21
|
+
*
|
|
22
|
+
* **Example:** 1
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* **Default Value:** 1
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* @param limit Number of records per page.
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* **Example:** 20
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
* **Default Value:** 20
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
* **Max Value:** 100
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* If provided value is greater than max value, max value will be applied.
|
|
43
|
+
*
|
|
44
|
+
* @param filterId Filter by id query param.
|
|
45
|
+
*
|
|
46
|
+
* **Format:** filter.id={$not}:OPERATION:VALUE
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* **Example:** filter.id=$eq:John Doe&filter.id=$in:John Doe
|
|
51
|
+
*
|
|
52
|
+
* **Available Operations**
|
|
53
|
+
* - $eq
|
|
54
|
+
*
|
|
55
|
+
* - $in
|
|
56
|
+
*
|
|
57
|
+
* - $and
|
|
58
|
+
*
|
|
59
|
+
* - $or
|
|
60
|
+
* @param filterName Filter by name query param.
|
|
61
|
+
*
|
|
62
|
+
* **Format:** filter.name={$not}:OPERATION:VALUE
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
* **Example:** filter.name=$eq:John Doe&filter.name=$ilike:John Doe
|
|
67
|
+
*
|
|
68
|
+
* **Available Operations**
|
|
69
|
+
* - $eq
|
|
70
|
+
*
|
|
71
|
+
* - $ilike
|
|
72
|
+
*
|
|
73
|
+
* - $in
|
|
74
|
+
*
|
|
75
|
+
* - $and
|
|
76
|
+
*
|
|
77
|
+
* - $or
|
|
78
|
+
* @param filterStatus Filter by status query param.
|
|
79
|
+
*
|
|
80
|
+
* **Format:** filter.status={$not}:OPERATION:VALUE
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* **Example:** filter.status=$eq:John Doe&filter.status=$in:John Doe
|
|
85
|
+
*
|
|
86
|
+
* **Available Operations**
|
|
87
|
+
* - $eq
|
|
88
|
+
*
|
|
89
|
+
* - $in
|
|
90
|
+
*
|
|
91
|
+
* - $and
|
|
92
|
+
*
|
|
93
|
+
* - $or
|
|
94
|
+
* @param filterVendorName Filter by vendorName query param.
|
|
95
|
+
*
|
|
96
|
+
* **Format:** filter.vendorName={$not}:OPERATION:VALUE
|
|
97
|
+
*
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* **Example:** filter.vendorName=$eq:John Doe&filter.vendorName=$ilike:John Doe
|
|
101
|
+
*
|
|
102
|
+
* **Available Operations**
|
|
103
|
+
* - $eq
|
|
104
|
+
*
|
|
105
|
+
* - $ilike
|
|
106
|
+
*
|
|
107
|
+
* - $in
|
|
108
|
+
*
|
|
109
|
+
* - $and
|
|
110
|
+
*
|
|
111
|
+
* - $or
|
|
112
|
+
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
113
|
+
*
|
|
114
|
+
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* **Example:** filter.updatedAt=$btw:John Doe&filter.updatedAt=$gte:John Doe
|
|
119
|
+
*
|
|
120
|
+
* **Available Operations**
|
|
121
|
+
* - $gte
|
|
122
|
+
*
|
|
123
|
+
* - $lte
|
|
124
|
+
*
|
|
125
|
+
* - $btw
|
|
126
|
+
*
|
|
127
|
+
* - $and
|
|
128
|
+
*
|
|
129
|
+
* - $or
|
|
130
|
+
* @param filterCreatedAt Filter by createdAt query param.
|
|
131
|
+
*
|
|
132
|
+
* **Format:** filter.createdAt={$not}:OPERATION:VALUE
|
|
133
|
+
*
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
* **Example:** filter.createdAt=$btw:John Doe&filter.createdAt=$gte:John Doe
|
|
137
|
+
*
|
|
138
|
+
* **Available Operations**
|
|
139
|
+
* - $gte
|
|
140
|
+
*
|
|
141
|
+
* - $lte
|
|
142
|
+
*
|
|
143
|
+
* - $btw
|
|
144
|
+
*
|
|
145
|
+
* - $and
|
|
146
|
+
*
|
|
147
|
+
* - $or
|
|
148
|
+
* @param sortBy Parameter to sort by.
|
|
149
|
+
* To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting
|
|
150
|
+
*
|
|
151
|
+
* **Format:** {fieldName}:{DIRECTION}
|
|
152
|
+
*
|
|
153
|
+
*
|
|
154
|
+
* **Example:** sortBy=id:DESC&sortBy=name:DESC
|
|
155
|
+
*
|
|
156
|
+
*
|
|
157
|
+
* **Default Value:** updatedAt:DESC
|
|
158
|
+
*
|
|
159
|
+
* **Available Fields**
|
|
160
|
+
* - id
|
|
161
|
+
*
|
|
162
|
+
* - name
|
|
163
|
+
*
|
|
164
|
+
* - updatedAt
|
|
165
|
+
*
|
|
166
|
+
* - createdAt
|
|
167
|
+
*
|
|
168
|
+
* - vendorName
|
|
169
|
+
*
|
|
170
|
+
* @param search Search term to filter result values
|
|
171
|
+
*
|
|
172
|
+
* **Example:** John
|
|
173
|
+
*
|
|
174
|
+
*
|
|
175
|
+
* **Default Value:** No default value
|
|
176
|
+
*
|
|
177
|
+
*
|
|
178
|
+
* @param searchBy List of fields to search by term to filter result values
|
|
179
|
+
*
|
|
180
|
+
* **Example:** name,description
|
|
181
|
+
*
|
|
182
|
+
*
|
|
183
|
+
* **Default Value:** By default all fields mentioned below will be used to search by term
|
|
184
|
+
*
|
|
185
|
+
* **Available Fields**
|
|
186
|
+
* - name
|
|
187
|
+
*
|
|
188
|
+
* - description
|
|
189
|
+
*
|
|
190
|
+
* @returns any
|
|
191
|
+
* @throws ApiError
|
|
192
|
+
*/
|
|
193
|
+
listExternalRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>, filterVendorName?: Array<string>, filterUpdatedAt?: Array<string>, filterCreatedAt?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC' | 'vendorName:ASC' | 'vendorName:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
|
|
194
|
+
/**
|
|
195
|
+
* Update an external vendor rule
|
|
196
|
+
* Update an external vendor rule
|
|
197
|
+
* @param id
|
|
198
|
+
* @param requestBody
|
|
199
|
+
* @returns RuleResponseDto
|
|
200
|
+
* @throws ApiError
|
|
201
|
+
*/
|
|
202
|
+
updateExternalRule(id: string, requestBody: UpdateExternalRuleDto): CancelablePromise<RuleResponseDto>;
|
|
203
|
+
/**
|
|
204
|
+
* Delete an external vendor rule (soft delete)
|
|
205
|
+
* Delete an external vendor rule (soft delete)
|
|
206
|
+
* @param id
|
|
207
|
+
* @param reason
|
|
208
|
+
* @returns void
|
|
209
|
+
* @throws ApiError
|
|
210
|
+
*/
|
|
211
|
+
deleteExternalRule(id: string, reason?: string): CancelablePromise<void>;
|
|
212
|
+
/**
|
|
213
|
+
* Get an external rule by ID
|
|
214
|
+
* Get an external rule by ID
|
|
215
|
+
* @param id
|
|
216
|
+
* @returns RuleResponseDto
|
|
217
|
+
* @throws ApiError
|
|
218
|
+
*/
|
|
219
|
+
getExternalRule(id: string): CancelablePromise<RuleResponseDto>;
|
|
220
|
+
/**
|
|
221
|
+
* Get distinct vendor names from external rules
|
|
222
|
+
* Get distinct vendor names from external rules
|
|
223
|
+
* @returns string
|
|
224
|
+
* @throws ApiError
|
|
225
|
+
*/
|
|
226
|
+
listExternalRuleVendors(): CancelablePromise<Array<string>>;
|
|
227
|
+
/**
|
|
228
|
+
* Check if a rule name already exists
|
|
229
|
+
* Check if a rule name already exists
|
|
230
|
+
* @param name
|
|
231
|
+
* @returns any
|
|
232
|
+
* @throws ApiError
|
|
233
|
+
*/
|
|
234
|
+
checkExternalRuleNameExists(name: string): CancelablePromise<any>;
|
|
235
|
+
}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalRulesService = void 0;
|
|
4
|
+
class ExternalRulesService {
|
|
5
|
+
httpRequest;
|
|
6
|
+
constructor(httpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create an external vendor rule
|
|
11
|
+
* Create an external vendor rule
|
|
12
|
+
* @param requestBody
|
|
13
|
+
* @returns RuleResponseDto
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
createExternalRule(requestBody) {
|
|
17
|
+
return this.httpRequest.request({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
url: '/v1/external-rules',
|
|
20
|
+
body: requestBody,
|
|
21
|
+
mediaType: 'application/json',
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* List external rules with pagination
|
|
26
|
+
* List external rules with pagination
|
|
27
|
+
* @param page Page number to retrieve. If you provide invalid value the default page number will applied
|
|
28
|
+
*
|
|
29
|
+
* **Example:** 1
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* **Default Value:** 1
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
* @param limit Number of records per page.
|
|
36
|
+
*
|
|
37
|
+
*
|
|
38
|
+
* **Example:** 20
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* **Default Value:** 20
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
* **Max Value:** 100
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* If provided value is greater than max value, max value will be applied.
|
|
50
|
+
*
|
|
51
|
+
* @param filterId Filter by id query param.
|
|
52
|
+
*
|
|
53
|
+
* **Format:** filter.id={$not}:OPERATION:VALUE
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
*
|
|
57
|
+
* **Example:** filter.id=$eq:John Doe&filter.id=$in:John Doe
|
|
58
|
+
*
|
|
59
|
+
* **Available Operations**
|
|
60
|
+
* - $eq
|
|
61
|
+
*
|
|
62
|
+
* - $in
|
|
63
|
+
*
|
|
64
|
+
* - $and
|
|
65
|
+
*
|
|
66
|
+
* - $or
|
|
67
|
+
* @param filterName Filter by name query param.
|
|
68
|
+
*
|
|
69
|
+
* **Format:** filter.name={$not}:OPERATION:VALUE
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* **Example:** filter.name=$eq:John Doe&filter.name=$ilike:John Doe
|
|
74
|
+
*
|
|
75
|
+
* **Available Operations**
|
|
76
|
+
* - $eq
|
|
77
|
+
*
|
|
78
|
+
* - $ilike
|
|
79
|
+
*
|
|
80
|
+
* - $in
|
|
81
|
+
*
|
|
82
|
+
* - $and
|
|
83
|
+
*
|
|
84
|
+
* - $or
|
|
85
|
+
* @param filterStatus Filter by status query param.
|
|
86
|
+
*
|
|
87
|
+
* **Format:** filter.status={$not}:OPERATION:VALUE
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* **Example:** filter.status=$eq:John Doe&filter.status=$in:John Doe
|
|
92
|
+
*
|
|
93
|
+
* **Available Operations**
|
|
94
|
+
* - $eq
|
|
95
|
+
*
|
|
96
|
+
* - $in
|
|
97
|
+
*
|
|
98
|
+
* - $and
|
|
99
|
+
*
|
|
100
|
+
* - $or
|
|
101
|
+
* @param filterVendorName Filter by vendorName query param.
|
|
102
|
+
*
|
|
103
|
+
* **Format:** filter.vendorName={$not}:OPERATION:VALUE
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* **Example:** filter.vendorName=$eq:John Doe&filter.vendorName=$ilike:John Doe
|
|
108
|
+
*
|
|
109
|
+
* **Available Operations**
|
|
110
|
+
* - $eq
|
|
111
|
+
*
|
|
112
|
+
* - $ilike
|
|
113
|
+
*
|
|
114
|
+
* - $in
|
|
115
|
+
*
|
|
116
|
+
* - $and
|
|
117
|
+
*
|
|
118
|
+
* - $or
|
|
119
|
+
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
120
|
+
*
|
|
121
|
+
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
122
|
+
*
|
|
123
|
+
*
|
|
124
|
+
*
|
|
125
|
+
* **Example:** filter.updatedAt=$btw:John Doe&filter.updatedAt=$gte:John Doe
|
|
126
|
+
*
|
|
127
|
+
* **Available Operations**
|
|
128
|
+
* - $gte
|
|
129
|
+
*
|
|
130
|
+
* - $lte
|
|
131
|
+
*
|
|
132
|
+
* - $btw
|
|
133
|
+
*
|
|
134
|
+
* - $and
|
|
135
|
+
*
|
|
136
|
+
* - $or
|
|
137
|
+
* @param filterCreatedAt Filter by createdAt query param.
|
|
138
|
+
*
|
|
139
|
+
* **Format:** filter.createdAt={$not}:OPERATION:VALUE
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
*
|
|
143
|
+
* **Example:** filter.createdAt=$btw:John Doe&filter.createdAt=$gte:John Doe
|
|
144
|
+
*
|
|
145
|
+
* **Available Operations**
|
|
146
|
+
* - $gte
|
|
147
|
+
*
|
|
148
|
+
* - $lte
|
|
149
|
+
*
|
|
150
|
+
* - $btw
|
|
151
|
+
*
|
|
152
|
+
* - $and
|
|
153
|
+
*
|
|
154
|
+
* - $or
|
|
155
|
+
* @param sortBy Parameter to sort by.
|
|
156
|
+
* To sort by multiple fields, just provide query param multiple types. The order in url defines an order of sorting
|
|
157
|
+
*
|
|
158
|
+
* **Format:** {fieldName}:{DIRECTION}
|
|
159
|
+
*
|
|
160
|
+
*
|
|
161
|
+
* **Example:** sortBy=id:DESC&sortBy=name:DESC
|
|
162
|
+
*
|
|
163
|
+
*
|
|
164
|
+
* **Default Value:** updatedAt:DESC
|
|
165
|
+
*
|
|
166
|
+
* **Available Fields**
|
|
167
|
+
* - id
|
|
168
|
+
*
|
|
169
|
+
* - name
|
|
170
|
+
*
|
|
171
|
+
* - updatedAt
|
|
172
|
+
*
|
|
173
|
+
* - createdAt
|
|
174
|
+
*
|
|
175
|
+
* - vendorName
|
|
176
|
+
*
|
|
177
|
+
* @param search Search term to filter result values
|
|
178
|
+
*
|
|
179
|
+
* **Example:** John
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* **Default Value:** No default value
|
|
183
|
+
*
|
|
184
|
+
*
|
|
185
|
+
* @param searchBy List of fields to search by term to filter result values
|
|
186
|
+
*
|
|
187
|
+
* **Example:** name,description
|
|
188
|
+
*
|
|
189
|
+
*
|
|
190
|
+
* **Default Value:** By default all fields mentioned below will be used to search by term
|
|
191
|
+
*
|
|
192
|
+
* **Available Fields**
|
|
193
|
+
* - name
|
|
194
|
+
*
|
|
195
|
+
* - description
|
|
196
|
+
*
|
|
197
|
+
* @returns any
|
|
198
|
+
* @throws ApiError
|
|
199
|
+
*/
|
|
200
|
+
listExternalRules(page, limit, filterId, filterName, filterStatus, filterVendorName, filterUpdatedAt, filterCreatedAt, sortBy, search, searchBy) {
|
|
201
|
+
return this.httpRequest.request({
|
|
202
|
+
method: 'GET',
|
|
203
|
+
url: '/v1/external-rules',
|
|
204
|
+
query: {
|
|
205
|
+
'page': page,
|
|
206
|
+
'limit': limit,
|
|
207
|
+
'filter.id': filterId,
|
|
208
|
+
'filter.name': filterName,
|
|
209
|
+
'filter.status': filterStatus,
|
|
210
|
+
'filter.vendorName': filterVendorName,
|
|
211
|
+
'filter.updatedAt': filterUpdatedAt,
|
|
212
|
+
'filter.createdAt': filterCreatedAt,
|
|
213
|
+
'sortBy': sortBy,
|
|
214
|
+
'search': search,
|
|
215
|
+
'searchBy': searchBy,
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Update an external vendor rule
|
|
221
|
+
* Update an external vendor rule
|
|
222
|
+
* @param id
|
|
223
|
+
* @param requestBody
|
|
224
|
+
* @returns RuleResponseDto
|
|
225
|
+
* @throws ApiError
|
|
226
|
+
*/
|
|
227
|
+
updateExternalRule(id, requestBody) {
|
|
228
|
+
return this.httpRequest.request({
|
|
229
|
+
method: 'PUT',
|
|
230
|
+
url: '/v1/external-rules/{id}',
|
|
231
|
+
path: {
|
|
232
|
+
'id': id,
|
|
233
|
+
},
|
|
234
|
+
body: requestBody,
|
|
235
|
+
mediaType: 'application/json',
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Delete an external vendor rule (soft delete)
|
|
240
|
+
* Delete an external vendor rule (soft delete)
|
|
241
|
+
* @param id
|
|
242
|
+
* @param reason
|
|
243
|
+
* @returns void
|
|
244
|
+
* @throws ApiError
|
|
245
|
+
*/
|
|
246
|
+
deleteExternalRule(id, reason) {
|
|
247
|
+
return this.httpRequest.request({
|
|
248
|
+
method: 'DELETE',
|
|
249
|
+
url: '/v1/external-rules/{id}',
|
|
250
|
+
path: {
|
|
251
|
+
'id': id,
|
|
252
|
+
},
|
|
253
|
+
query: {
|
|
254
|
+
'reason': reason,
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Get an external rule by ID
|
|
260
|
+
* Get an external rule by ID
|
|
261
|
+
* @param id
|
|
262
|
+
* @returns RuleResponseDto
|
|
263
|
+
* @throws ApiError
|
|
264
|
+
*/
|
|
265
|
+
getExternalRule(id) {
|
|
266
|
+
return this.httpRequest.request({
|
|
267
|
+
method: 'GET',
|
|
268
|
+
url: '/v1/external-rules/{id}',
|
|
269
|
+
path: {
|
|
270
|
+
'id': id,
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Get distinct vendor names from external rules
|
|
276
|
+
* Get distinct vendor names from external rules
|
|
277
|
+
* @returns string
|
|
278
|
+
* @throws ApiError
|
|
279
|
+
*/
|
|
280
|
+
listExternalRuleVendors() {
|
|
281
|
+
return this.httpRequest.request({
|
|
282
|
+
method: 'GET',
|
|
283
|
+
url: '/v1/external-rules/vendors',
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Check if a rule name already exists
|
|
288
|
+
* Check if a rule name already exists
|
|
289
|
+
* @param name
|
|
290
|
+
* @returns any
|
|
291
|
+
* @throws ApiError
|
|
292
|
+
*/
|
|
293
|
+
checkExternalRuleNameExists(name) {
|
|
294
|
+
return this.httpRequest.request({
|
|
295
|
+
method: 'GET',
|
|
296
|
+
url: '/v1/external-rules/name-exists',
|
|
297
|
+
query: {
|
|
298
|
+
'name': name,
|
|
299
|
+
},
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
exports.ExternalRulesService = ExternalRulesService;
|
|
304
|
+
//# sourceMappingURL=ExternalRulesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalRulesService.js","sourceRoot":"","sources":["../../services/ExternalRulesService.ts"],"names":[],"mappings":";;;AASA,MAAa,oBAAoB;IACD;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,kBAAkB,CACrB,WAAkC;QAElC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,oBAAoB;YACzB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+KG;IACI,iBAAiB,CACpB,IAAa,EACb,KAAc,EACd,QAAwB,EACxB,UAA0B,EAC1B,YAA4B,EAC5B,gBAAgC,EAChC,eAA+B,EAC/B,eAA+B,EAC/B,MAAgL,EAChL,MAAe,EACf,QAAwB;QAExB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;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AAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,4BAA4B;SACpC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,2BAA2B,CAC9B,IAAY;QAEZ,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gCAAgC;YACrC,KAAK,EAAE;gBACH,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA/TD,oDA+TC"}
|
|
@@ -93,6 +93,38 @@ export declare class RulesService {
|
|
|
93
93
|
* - $and
|
|
94
94
|
*
|
|
95
95
|
* - $or
|
|
96
|
+
* @param filterIsExternalRule Filter by isExternalRule query param.
|
|
97
|
+
*
|
|
98
|
+
* **Format:** filter.isExternalRule={$not}:OPERATION:VALUE
|
|
99
|
+
*
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* **Example:** filter.isExternalRule=$eq:John Doe
|
|
103
|
+
*
|
|
104
|
+
* **Available Operations**
|
|
105
|
+
* - $eq
|
|
106
|
+
*
|
|
107
|
+
* - $and
|
|
108
|
+
*
|
|
109
|
+
* - $or
|
|
110
|
+
* @param filterVendorName Filter by vendorName query param.
|
|
111
|
+
*
|
|
112
|
+
* **Format:** filter.vendorName={$not}:OPERATION:VALUE
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* **Example:** filter.vendorName=$eq:John Doe&filter.vendorName=$in:John Doe
|
|
117
|
+
*
|
|
118
|
+
* **Available Operations**
|
|
119
|
+
* - $eq
|
|
120
|
+
*
|
|
121
|
+
* - $in
|
|
122
|
+
*
|
|
123
|
+
* - $null
|
|
124
|
+
*
|
|
125
|
+
* - $and
|
|
126
|
+
*
|
|
127
|
+
* - $or
|
|
96
128
|
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
97
129
|
*
|
|
98
130
|
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
@@ -151,6 +183,10 @@ export declare class RulesService {
|
|
|
151
183
|
*
|
|
152
184
|
* - status
|
|
153
185
|
*
|
|
186
|
+
* - isExternalRule
|
|
187
|
+
*
|
|
188
|
+
* - vendorName
|
|
189
|
+
*
|
|
154
190
|
* @param search Search term to filter result values
|
|
155
191
|
*
|
|
156
192
|
* **Example:** John
|
|
@@ -174,7 +210,7 @@ export declare class RulesService {
|
|
|
174
210
|
* @returns any
|
|
175
211
|
* @throws ApiError
|
|
176
212
|
*/
|
|
177
|
-
listRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>, filterUpdatedAt?: Array<string>, filterCreatedAt?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC' | 'status:ASC' | 'status:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
|
|
213
|
+
listRules(page?: number, limit?: number, filterId?: Array<string>, filterName?: Array<string>, filterStatus?: Array<string>, filterIsExternalRule?: Array<string>, filterVendorName?: Array<string>, filterUpdatedAt?: Array<string>, filterCreatedAt?: Array<string>, sortBy?: Array<'id:ASC' | 'id:DESC' | 'name:ASC' | 'name:DESC' | 'updatedAt:ASC' | 'updatedAt:DESC' | 'createdAt:ASC' | 'createdAt:DESC' | 'status:ASC' | 'status:DESC' | 'isExternalRule:ASC' | 'isExternalRule:DESC' | 'vendorName:ASC' | 'vendorName:DESC'>, search?: string, searchBy?: Array<string>): CancelablePromise<any>;
|
|
178
214
|
/**
|
|
179
215
|
* Update a rule
|
|
180
216
|
* Update a rule
|
|
@@ -98,6 +98,38 @@ class RulesService {
|
|
|
98
98
|
* - $and
|
|
99
99
|
*
|
|
100
100
|
* - $or
|
|
101
|
+
* @param filterIsExternalRule Filter by isExternalRule query param.
|
|
102
|
+
*
|
|
103
|
+
* **Format:** filter.isExternalRule={$not}:OPERATION:VALUE
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* **Example:** filter.isExternalRule=$eq:John Doe
|
|
108
|
+
*
|
|
109
|
+
* **Available Operations**
|
|
110
|
+
* - $eq
|
|
111
|
+
*
|
|
112
|
+
* - $and
|
|
113
|
+
*
|
|
114
|
+
* - $or
|
|
115
|
+
* @param filterVendorName Filter by vendorName query param.
|
|
116
|
+
*
|
|
117
|
+
* **Format:** filter.vendorName={$not}:OPERATION:VALUE
|
|
118
|
+
*
|
|
119
|
+
*
|
|
120
|
+
*
|
|
121
|
+
* **Example:** filter.vendorName=$eq:John Doe&filter.vendorName=$in:John Doe
|
|
122
|
+
*
|
|
123
|
+
* **Available Operations**
|
|
124
|
+
* - $eq
|
|
125
|
+
*
|
|
126
|
+
* - $in
|
|
127
|
+
*
|
|
128
|
+
* - $null
|
|
129
|
+
*
|
|
130
|
+
* - $and
|
|
131
|
+
*
|
|
132
|
+
* - $or
|
|
101
133
|
* @param filterUpdatedAt Filter by updatedAt query param.
|
|
102
134
|
*
|
|
103
135
|
* **Format:** filter.updatedAt={$not}:OPERATION:VALUE
|
|
@@ -156,6 +188,10 @@ class RulesService {
|
|
|
156
188
|
*
|
|
157
189
|
* - status
|
|
158
190
|
*
|
|
191
|
+
* - isExternalRule
|
|
192
|
+
*
|
|
193
|
+
* - vendorName
|
|
194
|
+
*
|
|
159
195
|
* @param search Search term to filter result values
|
|
160
196
|
*
|
|
161
197
|
* **Example:** John
|
|
@@ -179,7 +215,7 @@ class RulesService {
|
|
|
179
215
|
* @returns any
|
|
180
216
|
* @throws ApiError
|
|
181
217
|
*/
|
|
182
|
-
listRules(page, limit, filterId, filterName, filterStatus, filterUpdatedAt, filterCreatedAt, sortBy, search, searchBy) {
|
|
218
|
+
listRules(page, limit, filterId, filterName, filterStatus, filterIsExternalRule, filterVendorName, filterUpdatedAt, filterCreatedAt, sortBy, search, searchBy) {
|
|
183
219
|
return this.httpRequest.request({
|
|
184
220
|
method: 'GET',
|
|
185
221
|
url: '/v1/rules',
|
|
@@ -189,6 +225,8 @@ class RulesService {
|
|
|
189
225
|
'filter.id': filterId,
|
|
190
226
|
'filter.name': filterName,
|
|
191
227
|
'filter.status': filterStatus,
|
|
228
|
+
'filter.isExternalRule': filterIsExternalRule,
|
|
229
|
+
'filter.vendorName': filterVendorName,
|
|
192
230
|
'filter.updatedAt': filterUpdatedAt,
|
|
193
231
|
'filter.createdAt': filterCreatedAt,
|
|
194
232
|
'sortBy': sortBy,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RulesService.js","sourceRoot":"","sources":["../../services/RulesService.ts"],"names":[],"mappings":";;;AAWA,MAAa,YAAY;IACO;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,UAAU,CACb,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD
|
|
1
|
+
{"version":3,"file":"RulesService.js","sourceRoot":"","sources":["../../services/RulesService.ts"],"names":[],"mappings":";;;AAWA,MAAa,YAAY;IACO;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,UAAU,CACb,WAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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E,EAAE;aACX;YACD,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,OAAO,CACV,EAAU,EACV,OAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gBAAgB;YACrB,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,KAAK,EAAE;gBACH,SAAS,EAAE,OAAO;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,YAAY,CACf,EAAU,EACV,WAA6B;QAE7B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;;OAOG;IACI,WAAW,CACd,EAAU,EACV,WAA4B;QAE5B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI,EAAE;gBACF,IAAI,EAAE,EAAE;aACX;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AAtWD,oCAsWC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CreateTransferOperationDto } from '../models/CreateTransferOperationDto';
|
|
2
|
+
import type { CreateTransferOperationResponseDto } from '../models/CreateTransferOperationResponseDto';
|
|
3
|
+
import type { TransferOperationDto } from '../models/TransferOperationDto';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
6
|
+
export declare class TransfersService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* Create a new transfer. If upsert is true, update existing transfer's transaction if found by referenceId and return updated
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @param upsert If true, update existing transfer's transaction if found by referenceId and return updated transfer
|
|
13
|
+
* @returns CreateTransferOperationResponseDto Created transfer operation.
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
createTransfer(requestBody: CreateTransferOperationDto, upsert?: boolean): CancelablePromise<CreateTransferOperationResponseDto>;
|
|
17
|
+
/**
|
|
18
|
+
* Get a transfer by ID or referenceId
|
|
19
|
+
* @param id
|
|
20
|
+
* @returns TransferOperationDto
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
getTransfer(id: string): CancelablePromise<TransferOperationDto>;
|
|
24
|
+
}
|