sailpoint-api-client 1.7.30 → 1.8.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/beta/README.md +2 -2
- package/beta/common.ts +8 -3
- package/beta/package.json +1 -1
- package/configuration.ts +40 -4
- package/dist/beta/common.js +6 -1
- package/dist/beta/common.js.map +1 -1
- package/dist/configuration.d.ts +25 -0
- package/dist/configuration.js +11 -3
- package/dist/configuration.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/nerm/api.d.ts +19169 -0
- package/dist/nerm/api.js +22633 -0
- package/dist/nerm/api.js.map +1 -0
- package/dist/nerm/base.d.ts +66 -0
- package/dist/nerm/base.js +89 -0
- package/dist/nerm/base.js.map +1 -0
- package/dist/nerm/common.d.ts +65 -0
- package/dist/nerm/common.js +271 -0
- package/dist/nerm/common.js.map +1 -0
- package/dist/nerm/configuration.d.ts +91 -0
- package/dist/nerm/configuration.js +46 -0
- package/dist/nerm/configuration.js.map +1 -0
- package/dist/nerm/index.d.ts +13 -0
- package/dist/nerm/index.js +32 -0
- package/dist/nerm/index.js.map +1 -0
- package/dist/nermv2025/api.d.ts +653 -0
- package/dist/nermv2025/api.js +556 -0
- package/dist/nermv2025/api.js.map +1 -0
- package/dist/nermv2025/base.d.ts +66 -0
- package/dist/nermv2025/base.js +89 -0
- package/dist/nermv2025/base.js.map +1 -0
- package/dist/nermv2025/common.d.ts +65 -0
- package/dist/nermv2025/common.js +271 -0
- package/dist/nermv2025/common.js.map +1 -0
- package/dist/nermv2025/configuration.d.ts +91 -0
- package/dist/nermv2025/configuration.js +46 -0
- package/dist/nermv2025/configuration.js.map +1 -0
- package/dist/nermv2025/index.d.ts +13 -0
- package/dist/nermv2025/index.js +32 -0
- package/dist/nermv2025/index.js.map +1 -0
- package/dist/v2024/common.js +6 -1
- package/dist/v2024/common.js.map +1 -1
- package/dist/v2025/common.js +6 -1
- package/dist/v2025/common.js.map +1 -1
- package/dist/v2026/common.js +6 -1
- package/dist/v2026/common.js.map +1 -1
- package/dist/v3/api.d.ts +4 -4
- package/dist/v3/api.js +4 -4
- package/dist/v3/common.js +6 -1
- package/dist/v3/common.js.map +1 -1
- package/index.ts +8 -1
- package/nerm/.openapi-generator/FILES +12 -0
- package/nerm/.openapi-generator/VERSION +1 -0
- package/nerm/.openapi-generator-ignore +23 -0
- package/nerm/README.md +46 -0
- package/nerm/api.ts +29579 -0
- package/nerm/base.ts +86 -0
- package/nerm/common.ts +171 -0
- package/nerm/configuration.ts +110 -0
- package/nerm/git_push.sh +57 -0
- package/nerm/index.ts +18 -0
- package/nerm/package.json +34 -0
- package/nerm/tsconfig.json +21 -0
- package/nermv2025/.openapi-generator/FILES +12 -0
- package/nermv2025/.openapi-generator/VERSION +1 -0
- package/nermv2025/.openapi-generator-ignore +23 -0
- package/nermv2025/README.md +46 -0
- package/nermv2025/api.ts +896 -0
- package/nermv2025/base.ts +86 -0
- package/nermv2025/common.ts +171 -0
- package/nermv2025/configuration.ts +110 -0
- package/nermv2025/git_push.sh +57 -0
- package/nermv2025/index.ts +18 -0
- package/nermv2025/package.json +34 -0
- package/nermv2025/tsconfig.json +21 -0
- package/package.json +1 -1
- package/v2024/README.md +2 -2
- package/v2024/common.ts +8 -3
- package/v2024/package.json +1 -1
- package/v2025/README.md +2 -2
- package/v2025/common.ts +8 -3
- package/v2025/package.json +1 -1
- package/v2026/README.md +2 -2
- package/v2026/common.ts +8 -3
- package/v2026/package.json +1 -1
- package/v3/README.md +2 -2
- package/v3/api.ts +4 -4
- package/v3/common.ts +8 -3
- package/v3/package.json +1 -1
package/nermv2025/api.ts
ADDED
|
@@ -0,0 +1,896 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* NERM API v2025
|
|
5
|
+
* The NERM API v2025 accesss and modifies resources in your environment.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface DelegateUserNERMV2025
|
|
30
|
+
*/
|
|
31
|
+
export interface DelegateUserNERMV2025 {
|
|
32
|
+
/**
|
|
33
|
+
* The id of the delegate user
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof DelegateUserNERMV2025
|
|
36
|
+
*/
|
|
37
|
+
'id'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The uid of the delegate user
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof DelegateUserNERMV2025
|
|
42
|
+
*/
|
|
43
|
+
'uid'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The type of the delegate user
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof DelegateUserNERMV2025
|
|
48
|
+
*/
|
|
49
|
+
'type'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The name of the delegate user
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof DelegateUserNERMV2025
|
|
54
|
+
*/
|
|
55
|
+
'name'?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The email of the delegate user
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof DelegateUserNERMV2025
|
|
60
|
+
*/
|
|
61
|
+
'email'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The status of the delegate user
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof DelegateUserNERMV2025
|
|
66
|
+
*/
|
|
67
|
+
'status'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The login of the delegate user
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof DelegateUserNERMV2025
|
|
72
|
+
*/
|
|
73
|
+
'login'?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The last login timestamp of the delegate user
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof DelegateUserNERMV2025
|
|
78
|
+
*/
|
|
79
|
+
'last_login'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The date-time the record created.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof DelegateUserNERMV2025
|
|
84
|
+
*/
|
|
85
|
+
'created_at'?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The date-time the record was last updated.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof DelegateUserNERMV2025
|
|
90
|
+
*/
|
|
91
|
+
'updated_at'?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @export
|
|
96
|
+
* @interface Delegation1NERMV2025
|
|
97
|
+
*/
|
|
98
|
+
export interface Delegation1NERMV2025 {
|
|
99
|
+
/**
|
|
100
|
+
* The id of the delegation
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof Delegation1NERMV2025
|
|
103
|
+
*/
|
|
104
|
+
'id'?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The id of the delegator user
|
|
107
|
+
* @type {object}
|
|
108
|
+
* @memberof Delegation1NERMV2025
|
|
109
|
+
*/
|
|
110
|
+
'delegator_id'?: object;
|
|
111
|
+
/**
|
|
112
|
+
* The id of the delegate user
|
|
113
|
+
* @type {object}
|
|
114
|
+
* @memberof Delegation1NERMV2025
|
|
115
|
+
*/
|
|
116
|
+
'delegate_id'?: object;
|
|
117
|
+
/**
|
|
118
|
+
* The expiration date of the delegation
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof Delegation1NERMV2025
|
|
121
|
+
*/
|
|
122
|
+
'expiration'?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Indicates if the delegation is expired
|
|
125
|
+
* @type {boolean}
|
|
126
|
+
* @memberof Delegation1NERMV2025
|
|
127
|
+
*/
|
|
128
|
+
'expired'?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The date-time the record created.
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof Delegation1NERMV2025
|
|
133
|
+
*/
|
|
134
|
+
'created_at'?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The date-time the record was last updated.
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof Delegation1NERMV2025
|
|
139
|
+
*/
|
|
140
|
+
'updated_at'?: string;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @export
|
|
145
|
+
* @interface Delegation2NERMV2025
|
|
146
|
+
*/
|
|
147
|
+
export interface Delegation2NERMV2025 {
|
|
148
|
+
/**
|
|
149
|
+
* The id of the delegator
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof Delegation2NERMV2025
|
|
152
|
+
*/
|
|
153
|
+
'delegator_id'?: string;
|
|
154
|
+
/**
|
|
155
|
+
* The id of the delegate
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof Delegation2NERMV2025
|
|
158
|
+
*/
|
|
159
|
+
'delegate_id'?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The expiration date of the delegation
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof Delegation2NERMV2025
|
|
164
|
+
*/
|
|
165
|
+
'expiration'?: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @export
|
|
170
|
+
* @interface DelegationNERMV2025
|
|
171
|
+
*/
|
|
172
|
+
export interface DelegationNERMV2025 {
|
|
173
|
+
/**
|
|
174
|
+
* The id of the delegation
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof DelegationNERMV2025
|
|
177
|
+
*/
|
|
178
|
+
'id'?: string;
|
|
179
|
+
/**
|
|
180
|
+
* The id of the delegator user
|
|
181
|
+
* @type {object}
|
|
182
|
+
* @memberof DelegationNERMV2025
|
|
183
|
+
*/
|
|
184
|
+
'delegator_id'?: object;
|
|
185
|
+
/**
|
|
186
|
+
* The id of the delegate user
|
|
187
|
+
* @type {object}
|
|
188
|
+
* @memberof DelegationNERMV2025
|
|
189
|
+
*/
|
|
190
|
+
'delegate_id'?: object;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {DelegatorUserNERMV2025}
|
|
194
|
+
* @memberof DelegationNERMV2025
|
|
195
|
+
*/
|
|
196
|
+
'delegator'?: DelegatorUserNERMV2025;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @type {DelegateUserNERMV2025}
|
|
200
|
+
* @memberof DelegationNERMV2025
|
|
201
|
+
*/
|
|
202
|
+
'delegate'?: DelegateUserNERMV2025;
|
|
203
|
+
/**
|
|
204
|
+
* The expiration date of the delegation
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof DelegationNERMV2025
|
|
207
|
+
*/
|
|
208
|
+
'expiration'?: string;
|
|
209
|
+
/**
|
|
210
|
+
* Indicates if the delegation is expired
|
|
211
|
+
* @type {boolean}
|
|
212
|
+
* @memberof DelegationNERMV2025
|
|
213
|
+
*/
|
|
214
|
+
'expired'?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* The date-time the record created.
|
|
217
|
+
* @type {string}
|
|
218
|
+
* @memberof DelegationNERMV2025
|
|
219
|
+
*/
|
|
220
|
+
'created_at'?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The date-time the record was last updated.
|
|
223
|
+
* @type {string}
|
|
224
|
+
* @memberof DelegationNERMV2025
|
|
225
|
+
*/
|
|
226
|
+
'updated_at'?: string;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @export
|
|
231
|
+
* @interface DelegationsGet200ResponseNERMV2025
|
|
232
|
+
*/
|
|
233
|
+
export interface DelegationsGet200ResponseNERMV2025 {
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {Array<DelegationNERMV2025>}
|
|
237
|
+
* @memberof DelegationsGet200ResponseNERMV2025
|
|
238
|
+
*/
|
|
239
|
+
'delegations'?: Array<DelegationNERMV2025>;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @export
|
|
244
|
+
* @interface DelegationsGet500ResponseNERMV2025
|
|
245
|
+
*/
|
|
246
|
+
export interface DelegationsGet500ResponseNERMV2025 {
|
|
247
|
+
/**
|
|
248
|
+
* A message describing the error
|
|
249
|
+
* @type {object}
|
|
250
|
+
* @memberof DelegationsGet500ResponseNERMV2025
|
|
251
|
+
*/
|
|
252
|
+
'error'?: object;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @export
|
|
257
|
+
* @interface DelegationsPost201ResponseNERMV2025
|
|
258
|
+
*/
|
|
259
|
+
export interface DelegationsPost201ResponseNERMV2025 {
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @type {Delegation1NERMV2025}
|
|
263
|
+
* @memberof DelegationsPost201ResponseNERMV2025
|
|
264
|
+
*/
|
|
265
|
+
'delegation'?: Delegation1NERMV2025;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @export
|
|
270
|
+
* @interface DelegationsPost404ResponseNERMV2025
|
|
271
|
+
*/
|
|
272
|
+
export interface DelegationsPost404ResponseNERMV2025 {
|
|
273
|
+
/**
|
|
274
|
+
* The requested record, either ID or UID, was not found
|
|
275
|
+
* @type {object}
|
|
276
|
+
* @memberof DelegationsPost404ResponseNERMV2025
|
|
277
|
+
*/
|
|
278
|
+
'error'?: object;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
* @export
|
|
283
|
+
* @interface DelegationsPostRequestNERMV2025
|
|
284
|
+
*/
|
|
285
|
+
export interface DelegationsPostRequestNERMV2025 {
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @type {Delegation2NERMV2025}
|
|
289
|
+
* @memberof DelegationsPostRequestNERMV2025
|
|
290
|
+
*/
|
|
291
|
+
'delegation'?: Delegation2NERMV2025;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @export
|
|
296
|
+
* @interface DelegatorUserNERMV2025
|
|
297
|
+
*/
|
|
298
|
+
export interface DelegatorUserNERMV2025 {
|
|
299
|
+
/**
|
|
300
|
+
* The id of the delegator user
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof DelegatorUserNERMV2025
|
|
303
|
+
*/
|
|
304
|
+
'id'?: string;
|
|
305
|
+
/**
|
|
306
|
+
* The uid of the delegator user
|
|
307
|
+
* @type {string}
|
|
308
|
+
* @memberof DelegatorUserNERMV2025
|
|
309
|
+
*/
|
|
310
|
+
'uid'?: string;
|
|
311
|
+
/**
|
|
312
|
+
* The type of the delegator user
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof DelegatorUserNERMV2025
|
|
315
|
+
*/
|
|
316
|
+
'type'?: string;
|
|
317
|
+
/**
|
|
318
|
+
* The name of the delegator user
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof DelegatorUserNERMV2025
|
|
321
|
+
*/
|
|
322
|
+
'name'?: string;
|
|
323
|
+
/**
|
|
324
|
+
* The email of the delegator user
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof DelegatorUserNERMV2025
|
|
327
|
+
*/
|
|
328
|
+
'email'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The status of the delegator user
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof DelegatorUserNERMV2025
|
|
333
|
+
*/
|
|
334
|
+
'status'?: string;
|
|
335
|
+
/**
|
|
336
|
+
* The login of the delegator user
|
|
337
|
+
* @type {string}
|
|
338
|
+
* @memberof DelegatorUserNERMV2025
|
|
339
|
+
*/
|
|
340
|
+
'login'?: string;
|
|
341
|
+
/**
|
|
342
|
+
* The last login timestamp of the delegator user
|
|
343
|
+
* @type {string}
|
|
344
|
+
* @memberof DelegatorUserNERMV2025
|
|
345
|
+
*/
|
|
346
|
+
'last_login'?: string;
|
|
347
|
+
/**
|
|
348
|
+
* The date-time the record created.
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @memberof DelegatorUserNERMV2025
|
|
351
|
+
*/
|
|
352
|
+
'created_at'?: string;
|
|
353
|
+
/**
|
|
354
|
+
* The date-time the record was last updated.
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @memberof DelegatorUserNERMV2025
|
|
357
|
+
*/
|
|
358
|
+
'updated_at'?: string;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* DelegationsNERMV2025Api - axios parameter creator
|
|
363
|
+
* @export
|
|
364
|
+
*/
|
|
365
|
+
export const DelegationsNERMV2025ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
366
|
+
return {
|
|
367
|
+
/**
|
|
368
|
+
* Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status.
|
|
369
|
+
* @summary List delegations
|
|
370
|
+
* @param {string} [delegateId] Filter by delegate ID
|
|
371
|
+
* @param {string} [delegatorId] Filter by delegator ID
|
|
372
|
+
* @param {boolean} [expired] Filter by expiration status (true for expired, false for not expired)
|
|
373
|
+
* @param {number} [limit] The maximum number of items to return.
|
|
374
|
+
* @param {number} [offset] The number of items to skip before starting to collect the result set.
|
|
375
|
+
* @param {string} [include] Include related resources body. For example, \'include=delegator,delegate\'.
|
|
376
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
delegationsGet: async (delegateId?: string, delegatorId?: string, expired?: boolean, limit?: number, offset?: number, include?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
380
|
+
const localVarPath = `/delegations`;
|
|
381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
382
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
383
|
+
let baseOptions;
|
|
384
|
+
if (configuration) {
|
|
385
|
+
baseOptions = configuration.baseOptions;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};
|
|
389
|
+
const localVarHeaderParameter = {} as any;
|
|
390
|
+
const localVarQueryParameter = {} as any;
|
|
391
|
+
|
|
392
|
+
if (delegateId !== undefined) {
|
|
393
|
+
localVarQueryParameter['delegate_id'] = delegateId;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
if (delegatorId !== undefined) {
|
|
397
|
+
localVarQueryParameter['delegator_id'] = delegatorId;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
if (expired !== undefined) {
|
|
401
|
+
localVarQueryParameter['expired'] = expired;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (limit !== undefined) {
|
|
405
|
+
localVarQueryParameter['limit'] = limit;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
if (offset !== undefined) {
|
|
409
|
+
localVarQueryParameter['offset'] = offset;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
if (include !== undefined) {
|
|
413
|
+
localVarQueryParameter['include'] = include;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
420
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
421
|
+
|
|
422
|
+
return {
|
|
423
|
+
url: toPathString(localVarUrlObj),
|
|
424
|
+
axiosOptions: localVarRequestOptions,
|
|
425
|
+
};
|
|
426
|
+
},
|
|
427
|
+
/**
|
|
428
|
+
* Delete an existing delegation record.
|
|
429
|
+
* @summary Delete a delegation
|
|
430
|
+
* @param {string} id ID of the object to retrieve, update, or delete
|
|
431
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
delegationsIdDelete: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
435
|
+
// verify required parameter 'id' is not null or undefined
|
|
436
|
+
assertParamExists('delegationsIdDelete', 'id', id)
|
|
437
|
+
const localVarPath = `/delegations/{id}`
|
|
438
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
439
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
440
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
441
|
+
let baseOptions;
|
|
442
|
+
if (configuration) {
|
|
443
|
+
baseOptions = configuration.baseOptions;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions};
|
|
447
|
+
const localVarHeaderParameter = {} as any;
|
|
448
|
+
const localVarQueryParameter = {} as any;
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
454
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
455
|
+
|
|
456
|
+
return {
|
|
457
|
+
url: toPathString(localVarUrlObj),
|
|
458
|
+
axiosOptions: localVarRequestOptions,
|
|
459
|
+
};
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Returns a single delegation record by its ID.
|
|
463
|
+
* @summary Get a single delegation
|
|
464
|
+
* @param {string} id ID of the object to retrieve, update, or delete
|
|
465
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
delegationsIdGet: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
469
|
+
// verify required parameter 'id' is not null or undefined
|
|
470
|
+
assertParamExists('delegationsIdGet', 'id', id)
|
|
471
|
+
const localVarPath = `/delegations/{id}`
|
|
472
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
473
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
474
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
475
|
+
let baseOptions;
|
|
476
|
+
if (configuration) {
|
|
477
|
+
baseOptions = configuration.baseOptions;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};
|
|
481
|
+
const localVarHeaderParameter = {} as any;
|
|
482
|
+
const localVarQueryParameter = {} as any;
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
488
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
489
|
+
|
|
490
|
+
return {
|
|
491
|
+
url: toPathString(localVarUrlObj),
|
|
492
|
+
axiosOptions: localVarRequestOptions,
|
|
493
|
+
};
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
* Update an existing delegation record.
|
|
497
|
+
* @summary Update a delegation
|
|
498
|
+
* @param {string} id ID of the object to retrieve, update, or delete
|
|
499
|
+
* @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025
|
|
500
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
delegationsIdPatch: async (id: string, delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
504
|
+
// verify required parameter 'id' is not null or undefined
|
|
505
|
+
assertParamExists('delegationsIdPatch', 'id', id)
|
|
506
|
+
// verify required parameter 'delegationsPostRequestNERMV2025' is not null or undefined
|
|
507
|
+
assertParamExists('delegationsIdPatch', 'delegationsPostRequestNERMV2025', delegationsPostRequestNERMV2025)
|
|
508
|
+
const localVarPath = `/delegations/{id}`
|
|
509
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
510
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
511
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
512
|
+
let baseOptions;
|
|
513
|
+
if (configuration) {
|
|
514
|
+
baseOptions = configuration.baseOptions;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...axiosOptions};
|
|
518
|
+
const localVarHeaderParameter = {} as any;
|
|
519
|
+
const localVarQueryParameter = {} as any;
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
524
|
+
|
|
525
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
526
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
527
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
528
|
+
localVarRequestOptions.data = serializeDataIfNeeded(delegationsPostRequestNERMV2025, localVarRequestOptions, configuration)
|
|
529
|
+
|
|
530
|
+
return {
|
|
531
|
+
url: toPathString(localVarUrlObj),
|
|
532
|
+
axiosOptions: localVarRequestOptions,
|
|
533
|
+
};
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
* Create a new delegation record.
|
|
537
|
+
* @summary Create a delegation
|
|
538
|
+
* @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025
|
|
539
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
delegationsPost: async (delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
543
|
+
// verify required parameter 'delegationsPostRequestNERMV2025' is not null or undefined
|
|
544
|
+
assertParamExists('delegationsPost', 'delegationsPostRequestNERMV2025', delegationsPostRequestNERMV2025)
|
|
545
|
+
const localVarPath = `/delegations`;
|
|
546
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
547
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
548
|
+
let baseOptions;
|
|
549
|
+
if (configuration) {
|
|
550
|
+
baseOptions = configuration.baseOptions;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions};
|
|
554
|
+
const localVarHeaderParameter = {} as any;
|
|
555
|
+
const localVarQueryParameter = {} as any;
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
560
|
+
|
|
561
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
562
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
563
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
564
|
+
localVarRequestOptions.data = serializeDataIfNeeded(delegationsPostRequestNERMV2025, localVarRequestOptions, configuration)
|
|
565
|
+
|
|
566
|
+
return {
|
|
567
|
+
url: toPathString(localVarUrlObj),
|
|
568
|
+
axiosOptions: localVarRequestOptions,
|
|
569
|
+
};
|
|
570
|
+
},
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* DelegationsNERMV2025Api - functional programming interface
|
|
576
|
+
* @export
|
|
577
|
+
*/
|
|
578
|
+
export const DelegationsNERMV2025ApiFp = function(configuration?: Configuration) {
|
|
579
|
+
const localVarAxiosParamCreator = DelegationsNERMV2025ApiAxiosParamCreator(configuration)
|
|
580
|
+
return {
|
|
581
|
+
/**
|
|
582
|
+
* Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status.
|
|
583
|
+
* @summary List delegations
|
|
584
|
+
* @param {string} [delegateId] Filter by delegate ID
|
|
585
|
+
* @param {string} [delegatorId] Filter by delegator ID
|
|
586
|
+
* @param {boolean} [expired] Filter by expiration status (true for expired, false for not expired)
|
|
587
|
+
* @param {number} [limit] The maximum number of items to return.
|
|
588
|
+
* @param {number} [offset] The number of items to skip before starting to collect the result set.
|
|
589
|
+
* @param {string} [include] Include related resources body. For example, \'include=delegator,delegate\'.
|
|
590
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
async delegationsGet(delegateId?: string, delegatorId?: string, expired?: boolean, limit?: number, offset?: number, include?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegationsGet200ResponseNERMV2025>> {
|
|
594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsGet(delegateId, delegatorId, expired, limit, offset, include, axiosOptions);
|
|
595
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
596
|
+
const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsGet']?.[localVarOperationServerIndex]?.url;
|
|
597
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
598
|
+
},
|
|
599
|
+
/**
|
|
600
|
+
* Delete an existing delegation record.
|
|
601
|
+
* @summary Delete a delegation
|
|
602
|
+
* @param {string} id ID of the object to retrieve, update, or delete
|
|
603
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
async delegationsIdDelete(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdDelete(id, axiosOptions);
|
|
608
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
609
|
+
const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
610
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* Returns a single delegation record by its ID.
|
|
614
|
+
* @summary Get a single delegation
|
|
615
|
+
* @param {string} id ID of the object to retrieve, update, or delete
|
|
616
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
async delegationsIdGet(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegationsPost201ResponseNERMV2025>> {
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdGet(id, axiosOptions);
|
|
621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
622
|
+
const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* Update an existing delegation record.
|
|
627
|
+
* @summary Update a delegation
|
|
628
|
+
* @param {string} id ID of the object to retrieve, update, or delete
|
|
629
|
+
* @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025
|
|
630
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
631
|
+
* @throws {RequiredError}
|
|
632
|
+
*/
|
|
633
|
+
async delegationsIdPatch(id: string, delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegationsPost201ResponseNERMV2025>> {
|
|
634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsIdPatch(id, delegationsPostRequestNERMV2025, axiosOptions);
|
|
635
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
636
|
+
const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsIdPatch']?.[localVarOperationServerIndex]?.url;
|
|
637
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* Create a new delegation record.
|
|
641
|
+
* @summary Create a delegation
|
|
642
|
+
* @param {DelegationsPostRequestNERMV2025} delegationsPostRequestNERMV2025
|
|
643
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
async delegationsPost(delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DelegationsPost201ResponseNERMV2025>> {
|
|
647
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.delegationsPost(delegationsPostRequestNERMV2025, axiosOptions);
|
|
648
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
649
|
+
const localVarOperationServerBasePath = operationServerMap['DelegationsNERMV2025Api.delegationsPost']?.[localVarOperationServerIndex]?.url;
|
|
650
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
651
|
+
},
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* DelegationsNERMV2025Api - factory interface
|
|
657
|
+
* @export
|
|
658
|
+
*/
|
|
659
|
+
export const DelegationsNERMV2025ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
660
|
+
const localVarFp = DelegationsNERMV2025ApiFp(configuration)
|
|
661
|
+
return {
|
|
662
|
+
/**
|
|
663
|
+
* Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status.
|
|
664
|
+
* @summary List delegations
|
|
665
|
+
* @param {DelegationsNERMV2025ApiDelegationsGetRequest} requestParameters Request parameters.
|
|
666
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
*/
|
|
669
|
+
delegationsGet(requestParameters: DelegationsNERMV2025ApiDelegationsGetRequest = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<DelegationsGet200ResponseNERMV2025> {
|
|
670
|
+
return localVarFp.delegationsGet(requestParameters.delegateId, requestParameters.delegatorId, requestParameters.expired, requestParameters.limit, requestParameters.offset, requestParameters.include, axiosOptions).then((request) => request(axios, basePath));
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
* Delete an existing delegation record.
|
|
674
|
+
* @summary Delete a delegation
|
|
675
|
+
* @param {DelegationsNERMV2025ApiDelegationsIdDeleteRequest} requestParameters Request parameters.
|
|
676
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
delegationsIdDelete(requestParameters: DelegationsNERMV2025ApiDelegationsIdDeleteRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
680
|
+
return localVarFp.delegationsIdDelete(requestParameters.id, axiosOptions).then((request) => request(axios, basePath));
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
* Returns a single delegation record by its ID.
|
|
684
|
+
* @summary Get a single delegation
|
|
685
|
+
* @param {DelegationsNERMV2025ApiDelegationsIdGetRequest} requestParameters Request parameters.
|
|
686
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
delegationsIdGet(requestParameters: DelegationsNERMV2025ApiDelegationsIdGetRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<DelegationsPost201ResponseNERMV2025> {
|
|
690
|
+
return localVarFp.delegationsIdGet(requestParameters.id, axiosOptions).then((request) => request(axios, basePath));
|
|
691
|
+
},
|
|
692
|
+
/**
|
|
693
|
+
* Update an existing delegation record.
|
|
694
|
+
* @summary Update a delegation
|
|
695
|
+
* @param {DelegationsNERMV2025ApiDelegationsIdPatchRequest} requestParameters Request parameters.
|
|
696
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
delegationsIdPatch(requestParameters: DelegationsNERMV2025ApiDelegationsIdPatchRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<DelegationsPost201ResponseNERMV2025> {
|
|
700
|
+
return localVarFp.delegationsIdPatch(requestParameters.id, requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(axios, basePath));
|
|
701
|
+
},
|
|
702
|
+
/**
|
|
703
|
+
* Create a new delegation record.
|
|
704
|
+
* @summary Create a delegation
|
|
705
|
+
* @param {DelegationsNERMV2025ApiDelegationsPostRequest} requestParameters Request parameters.
|
|
706
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
707
|
+
* @throws {RequiredError}
|
|
708
|
+
*/
|
|
709
|
+
delegationsPost(requestParameters: DelegationsNERMV2025ApiDelegationsPostRequest, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<DelegationsPost201ResponseNERMV2025> {
|
|
710
|
+
return localVarFp.delegationsPost(requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(axios, basePath));
|
|
711
|
+
},
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Request parameters for delegationsGet operation in DelegationsNERMV2025Api.
|
|
717
|
+
* @export
|
|
718
|
+
* @interface DelegationsNERMV2025ApiDelegationsGetRequest
|
|
719
|
+
*/
|
|
720
|
+
export interface DelegationsNERMV2025ApiDelegationsGetRequest {
|
|
721
|
+
/**
|
|
722
|
+
* Filter by delegate ID
|
|
723
|
+
* @type {string}
|
|
724
|
+
* @memberof DelegationsNERMV2025ApiDelegationsGet
|
|
725
|
+
*/
|
|
726
|
+
readonly delegateId?: string
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Filter by delegator ID
|
|
730
|
+
* @type {string}
|
|
731
|
+
* @memberof DelegationsNERMV2025ApiDelegationsGet
|
|
732
|
+
*/
|
|
733
|
+
readonly delegatorId?: string
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Filter by expiration status (true for expired, false for not expired)
|
|
737
|
+
* @type {boolean}
|
|
738
|
+
* @memberof DelegationsNERMV2025ApiDelegationsGet
|
|
739
|
+
*/
|
|
740
|
+
readonly expired?: boolean
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* The maximum number of items to return.
|
|
744
|
+
* @type {number}
|
|
745
|
+
* @memberof DelegationsNERMV2025ApiDelegationsGet
|
|
746
|
+
*/
|
|
747
|
+
readonly limit?: number
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* The number of items to skip before starting to collect the result set.
|
|
751
|
+
* @type {number}
|
|
752
|
+
* @memberof DelegationsNERMV2025ApiDelegationsGet
|
|
753
|
+
*/
|
|
754
|
+
readonly offset?: number
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Include related resources body. For example, \'include=delegator,delegate\'.
|
|
758
|
+
* @type {string}
|
|
759
|
+
* @memberof DelegationsNERMV2025ApiDelegationsGet
|
|
760
|
+
*/
|
|
761
|
+
readonly include?: string
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Request parameters for delegationsIdDelete operation in DelegationsNERMV2025Api.
|
|
766
|
+
* @export
|
|
767
|
+
* @interface DelegationsNERMV2025ApiDelegationsIdDeleteRequest
|
|
768
|
+
*/
|
|
769
|
+
export interface DelegationsNERMV2025ApiDelegationsIdDeleteRequest {
|
|
770
|
+
/**
|
|
771
|
+
* ID of the object to retrieve, update, or delete
|
|
772
|
+
* @type {string}
|
|
773
|
+
* @memberof DelegationsNERMV2025ApiDelegationsIdDelete
|
|
774
|
+
*/
|
|
775
|
+
readonly id: string
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Request parameters for delegationsIdGet operation in DelegationsNERMV2025Api.
|
|
780
|
+
* @export
|
|
781
|
+
* @interface DelegationsNERMV2025ApiDelegationsIdGetRequest
|
|
782
|
+
*/
|
|
783
|
+
export interface DelegationsNERMV2025ApiDelegationsIdGetRequest {
|
|
784
|
+
/**
|
|
785
|
+
* ID of the object to retrieve, update, or delete
|
|
786
|
+
* @type {string}
|
|
787
|
+
* @memberof DelegationsNERMV2025ApiDelegationsIdGet
|
|
788
|
+
*/
|
|
789
|
+
readonly id: string
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Request parameters for delegationsIdPatch operation in DelegationsNERMV2025Api.
|
|
794
|
+
* @export
|
|
795
|
+
* @interface DelegationsNERMV2025ApiDelegationsIdPatchRequest
|
|
796
|
+
*/
|
|
797
|
+
export interface DelegationsNERMV2025ApiDelegationsIdPatchRequest {
|
|
798
|
+
/**
|
|
799
|
+
* ID of the object to retrieve, update, or delete
|
|
800
|
+
* @type {string}
|
|
801
|
+
* @memberof DelegationsNERMV2025ApiDelegationsIdPatch
|
|
802
|
+
*/
|
|
803
|
+
readonly id: string
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
*
|
|
807
|
+
* @type {DelegationsPostRequestNERMV2025}
|
|
808
|
+
* @memberof DelegationsNERMV2025ApiDelegationsIdPatch
|
|
809
|
+
*/
|
|
810
|
+
readonly delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Request parameters for delegationsPost operation in DelegationsNERMV2025Api.
|
|
815
|
+
* @export
|
|
816
|
+
* @interface DelegationsNERMV2025ApiDelegationsPostRequest
|
|
817
|
+
*/
|
|
818
|
+
export interface DelegationsNERMV2025ApiDelegationsPostRequest {
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @type {DelegationsPostRequestNERMV2025}
|
|
822
|
+
* @memberof DelegationsNERMV2025ApiDelegationsPost
|
|
823
|
+
*/
|
|
824
|
+
readonly delegationsPostRequestNERMV2025: DelegationsPostRequestNERMV2025
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* DelegationsNERMV2025Api - object-oriented interface
|
|
829
|
+
* @export
|
|
830
|
+
* @class DelegationsNERMV2025Api
|
|
831
|
+
* @extends {BaseAPI}
|
|
832
|
+
*/
|
|
833
|
+
export class DelegationsNERMV2025Api extends BaseAPI {
|
|
834
|
+
/**
|
|
835
|
+
* Returns a list of delegation records, optionally filtered by delegate, delegator, or expiration status.
|
|
836
|
+
* @summary List delegations
|
|
837
|
+
* @param {DelegationsNERMV2025ApiDelegationsGetRequest} requestParameters Request parameters.
|
|
838
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
839
|
+
* @throws {RequiredError}
|
|
840
|
+
* @memberof DelegationsNERMV2025Api
|
|
841
|
+
*/
|
|
842
|
+
public delegationsGet(requestParameters: DelegationsNERMV2025ApiDelegationsGetRequest = {}, axiosOptions?: RawAxiosRequestConfig) {
|
|
843
|
+
return DelegationsNERMV2025ApiFp(this.configuration).delegationsGet(requestParameters.delegateId, requestParameters.delegatorId, requestParameters.expired, requestParameters.limit, requestParameters.offset, requestParameters.include, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Delete an existing delegation record.
|
|
848
|
+
* @summary Delete a delegation
|
|
849
|
+
* @param {DelegationsNERMV2025ApiDelegationsIdDeleteRequest} requestParameters Request parameters.
|
|
850
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
* @memberof DelegationsNERMV2025Api
|
|
853
|
+
*/
|
|
854
|
+
public delegationsIdDelete(requestParameters: DelegationsNERMV2025ApiDelegationsIdDeleteRequest, axiosOptions?: RawAxiosRequestConfig) {
|
|
855
|
+
return DelegationsNERMV2025ApiFp(this.configuration).delegationsIdDelete(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Returns a single delegation record by its ID.
|
|
860
|
+
* @summary Get a single delegation
|
|
861
|
+
* @param {DelegationsNERMV2025ApiDelegationsIdGetRequest} requestParameters Request parameters.
|
|
862
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
* @memberof DelegationsNERMV2025Api
|
|
865
|
+
*/
|
|
866
|
+
public delegationsIdGet(requestParameters: DelegationsNERMV2025ApiDelegationsIdGetRequest, axiosOptions?: RawAxiosRequestConfig) {
|
|
867
|
+
return DelegationsNERMV2025ApiFp(this.configuration).delegationsIdGet(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
* Update an existing delegation record.
|
|
872
|
+
* @summary Update a delegation
|
|
873
|
+
* @param {DelegationsNERMV2025ApiDelegationsIdPatchRequest} requestParameters Request parameters.
|
|
874
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
875
|
+
* @throws {RequiredError}
|
|
876
|
+
* @memberof DelegationsNERMV2025Api
|
|
877
|
+
*/
|
|
878
|
+
public delegationsIdPatch(requestParameters: DelegationsNERMV2025ApiDelegationsIdPatchRequest, axiosOptions?: RawAxiosRequestConfig) {
|
|
879
|
+
return DelegationsNERMV2025ApiFp(this.configuration).delegationsIdPatch(requestParameters.id, requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Create a new delegation record.
|
|
884
|
+
* @summary Create a delegation
|
|
885
|
+
* @param {DelegationsNERMV2025ApiDelegationsPostRequest} requestParameters Request parameters.
|
|
886
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
887
|
+
* @throws {RequiredError}
|
|
888
|
+
* @memberof DelegationsNERMV2025Api
|
|
889
|
+
*/
|
|
890
|
+
public delegationsPost(requestParameters: DelegationsNERMV2025ApiDelegationsPostRequest, axiosOptions?: RawAxiosRequestConfig) {
|
|
891
|
+
return DelegationsNERMV2025ApiFp(this.configuration).delegationsPost(requestParameters.delegationsPostRequestNERMV2025, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
|