ffmpeglab-sdk 0.5.16 → 0.6.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/.openapi-generator/FILES +16 -0
- package/dist/apis/ItemsApi.d.ts +274 -0
- package/dist/apis/ItemsApi.js +389 -0
- package/dist/apis/PublicApi.d.ts +62 -0
- package/dist/apis/PublicApi.js +74 -0
- package/dist/apis/RolesApi.d.ts +209 -0
- package/dist/apis/RolesApi.js +296 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ItemsApi.d.ts +274 -0
- package/dist/esm/apis/ItemsApi.js +385 -0
- package/dist/esm/apis/PublicApi.d.ts +62 -0
- package/dist/esm/apis/PublicApi.js +74 -0
- package/dist/esm/apis/RolesApi.d.ts +209 -0
- package/dist/esm/apis/RolesApi.js +292 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/CreateItemDto.d.ts +62 -0
- package/dist/esm/models/CreateItemDto.js +63 -0
- package/dist/esm/models/CreateRoleDto.d.ts +56 -0
- package/dist/esm/models/CreateRoleDto.js +59 -0
- package/dist/esm/models/EncoderProjectEncoding.d.ts +6 -0
- package/dist/esm/models/EncoderProjectEncoding.js +4 -0
- package/dist/esm/models/Item.d.ts +86 -0
- package/dist/esm/models/Item.js +79 -0
- package/dist/esm/models/Role.d.ts +80 -0
- package/dist/esm/models/Role.js +75 -0
- package/dist/esm/models/UpdateItemDto.d.ts +68 -0
- package/dist/esm/models/UpdateItemDto.js +67 -0
- package/dist/esm/models/UpdateRoleDto.d.ts +44 -0
- package/dist/esm/models/UpdateRoleDto.js +51 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/CreateItemDto.d.ts +62 -0
- package/dist/models/CreateItemDto.js +70 -0
- package/dist/models/CreateRoleDto.d.ts +56 -0
- package/dist/models/CreateRoleDto.js +66 -0
- package/dist/models/EncoderProjectEncoding.d.ts +6 -0
- package/dist/models/EncoderProjectEncoding.js +4 -0
- package/dist/models/Item.d.ts +86 -0
- package/dist/models/Item.js +86 -0
- package/dist/models/Role.d.ts +80 -0
- package/dist/models/Role.js +82 -0
- package/dist/models/UpdateItemDto.d.ts +68 -0
- package/dist/models/UpdateItemDto.js +74 -0
- package/dist/models/UpdateRoleDto.d.ts +44 -0
- package/dist/models/UpdateRoleDto.js +58 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/CreateItemDto.md +44 -0
- package/docs/CreateRoleDto.md +42 -0
- package/docs/EncoderProjectEncoding.md +2 -0
- package/docs/Item.md +52 -0
- package/docs/ItemsApi.md +563 -0
- package/docs/PublicApi.md +132 -0
- package/docs/Role.md +50 -0
- package/docs/RolesApi.md +420 -0
- package/docs/UpdateItemDto.md +46 -0
- package/docs/UpdateRoleDto.md +38 -0
- package/package.json +1 -1
- package/src/apis/ItemsApi.ts +656 -0
- package/src/apis/PublicApi.ts +136 -0
- package/src/apis/RolesApi.ts +491 -0
- package/src/apis/index.ts +2 -0
- package/src/models/CreateItemDto.ts +111 -0
- package/src/models/CreateRoleDto.ts +102 -0
- package/src/models/EncoderProjectEncoding.ts +9 -0
- package/src/models/Item.ts +147 -0
- package/src/models/Role.ts +138 -0
- package/src/models/UpdateItemDto.ts +120 -0
- package/src/models/UpdateRoleDto.ts +84 -0
- package/src/models/index.ts +6 -0
package/docs/Role.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# Role
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`title` | string
|
|
11
|
+
`item` | string
|
|
12
|
+
`render` | string
|
|
13
|
+
`owner` | string
|
|
14
|
+
`userId` | string
|
|
15
|
+
`permission` | string
|
|
16
|
+
`created` | Date
|
|
17
|
+
`updated` | Date
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { Role } from 'ffmpeglab-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"title": null,
|
|
28
|
+
"item": null,
|
|
29
|
+
"render": null,
|
|
30
|
+
"owner": null,
|
|
31
|
+
"userId": null,
|
|
32
|
+
"permission": null,
|
|
33
|
+
"created": null,
|
|
34
|
+
"updated": null,
|
|
35
|
+
} satisfies Role
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as Role
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
package/docs/RolesApi.md
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
# RolesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**rolesControllerCreate**](RolesApi.md#rolescontrollercreate) | **POST** /role | |
|
|
8
|
+
| [**rolesControllerDeleteOne**](RolesApi.md#rolescontrollerdeleteone) | **DELETE** /role/{id} | |
|
|
9
|
+
| [**rolesControllerFindAllAssignedRoles**](RolesApi.md#rolescontrollerfindallassignedroles) | **GET** /role | |
|
|
10
|
+
| [**rolesControllerFindByProject**](RolesApi.md#rolescontrollerfindbyproject) | **GET** /role/folder/{folderId} | |
|
|
11
|
+
| [**rolesControllerFindOne**](RolesApi.md#rolescontrollerfindone) | **GET** /role/{id} | |
|
|
12
|
+
| [**rolesControllerUpdate**](RolesApi.md#rolescontrollerupdate) | **PUT** /role | |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## rolesControllerCreate
|
|
17
|
+
|
|
18
|
+
> Role rolesControllerCreate(createRoleDto)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
RolesApi,
|
|
28
|
+
} from 'ffmpeglab-sdk';
|
|
29
|
+
import type { RolesControllerCreateRequest } from 'ffmpeglab-sdk';
|
|
30
|
+
|
|
31
|
+
async function example() {
|
|
32
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
33
|
+
const config = new Configuration({
|
|
34
|
+
// Configure HTTP bearer authorization: bearer
|
|
35
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
36
|
+
});
|
|
37
|
+
const api = new RolesApi(config);
|
|
38
|
+
|
|
39
|
+
const body = {
|
|
40
|
+
// CreateRoleDto
|
|
41
|
+
createRoleDto: ...,
|
|
42
|
+
} satisfies RolesControllerCreateRequest;
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
const data = await api.rolesControllerCreate(body);
|
|
46
|
+
console.log(data);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(error);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Run the test
|
|
53
|
+
example().catch(console.error);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
|------------- | ------------- | ------------- | -------------|
|
|
61
|
+
| **createRoleDto** | [CreateRoleDto](CreateRoleDto.md) | | |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**Role**](Role.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[bearer](../README.md#bearer)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: `application/json`
|
|
74
|
+
- **Accept**: `application/json`
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### HTTP response details
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
| **0** | | - |
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## rolesControllerDeleteOne
|
|
86
|
+
|
|
87
|
+
> rolesControllerDeleteOne(id)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import {
|
|
95
|
+
Configuration,
|
|
96
|
+
RolesApi,
|
|
97
|
+
} from 'ffmpeglab-sdk';
|
|
98
|
+
import type { RolesControllerDeleteOneRequest } from 'ffmpeglab-sdk';
|
|
99
|
+
|
|
100
|
+
async function example() {
|
|
101
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
102
|
+
const config = new Configuration({
|
|
103
|
+
// Configure HTTP bearer authorization: bearer
|
|
104
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
105
|
+
});
|
|
106
|
+
const api = new RolesApi(config);
|
|
107
|
+
|
|
108
|
+
const body = {
|
|
109
|
+
// string | The ID of the pipeline
|
|
110
|
+
id: id_example,
|
|
111
|
+
} satisfies RolesControllerDeleteOneRequest;
|
|
112
|
+
|
|
113
|
+
try {
|
|
114
|
+
const data = await api.rolesControllerDeleteOne(body);
|
|
115
|
+
console.log(data);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Run the test
|
|
122
|
+
example().catch(console.error);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
| Name | Type | Description | Notes |
|
|
129
|
+
|------------- | ------------- | ------------- | -------------|
|
|
130
|
+
| **id** | `string` | The ID of the pipeline | [Defaults to `undefined`] |
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
`void` (Empty response body)
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
[bearer](../README.md#bearer)
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: Not defined
|
|
143
|
+
- **Accept**: Not defined
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### HTTP response details
|
|
147
|
+
| Status code | Description | Response headers |
|
|
148
|
+
|-------------|-------------|------------------|
|
|
149
|
+
| **200** | | - |
|
|
150
|
+
|
|
151
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## rolesControllerFindAllAssignedRoles
|
|
155
|
+
|
|
156
|
+
> Array<Role> rolesControllerFindAllAssignedRoles()
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Example
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
import {
|
|
164
|
+
Configuration,
|
|
165
|
+
RolesApi,
|
|
166
|
+
} from 'ffmpeglab-sdk';
|
|
167
|
+
import type { RolesControllerFindAllAssignedRolesRequest } from 'ffmpeglab-sdk';
|
|
168
|
+
|
|
169
|
+
async function example() {
|
|
170
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
171
|
+
const config = new Configuration({
|
|
172
|
+
// Configure HTTP bearer authorization: bearer
|
|
173
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
174
|
+
});
|
|
175
|
+
const api = new RolesApi(config);
|
|
176
|
+
|
|
177
|
+
try {
|
|
178
|
+
const data = await api.rolesControllerFindAllAssignedRoles();
|
|
179
|
+
console.log(data);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
console.error(error);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Run the test
|
|
186
|
+
example().catch(console.error);
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Parameters
|
|
190
|
+
|
|
191
|
+
This endpoint does not need any parameter.
|
|
192
|
+
|
|
193
|
+
### Return type
|
|
194
|
+
|
|
195
|
+
[**Array<Role>**](Role.md)
|
|
196
|
+
|
|
197
|
+
### Authorization
|
|
198
|
+
|
|
199
|
+
[bearer](../README.md#bearer)
|
|
200
|
+
|
|
201
|
+
### HTTP request headers
|
|
202
|
+
|
|
203
|
+
- **Content-Type**: Not defined
|
|
204
|
+
- **Accept**: `application/json`
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
### HTTP response details
|
|
208
|
+
| Status code | Description | Response headers |
|
|
209
|
+
|-------------|-------------|------------------|
|
|
210
|
+
| **0** | | - |
|
|
211
|
+
|
|
212
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## rolesControllerFindByProject
|
|
216
|
+
|
|
217
|
+
> Array<Role> rolesControllerFindByProject(folderId)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Example
|
|
222
|
+
|
|
223
|
+
```ts
|
|
224
|
+
import {
|
|
225
|
+
Configuration,
|
|
226
|
+
RolesApi,
|
|
227
|
+
} from 'ffmpeglab-sdk';
|
|
228
|
+
import type { RolesControllerFindByProjectRequest } from 'ffmpeglab-sdk';
|
|
229
|
+
|
|
230
|
+
async function example() {
|
|
231
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
232
|
+
const config = new Configuration({
|
|
233
|
+
// Configure HTTP bearer authorization: bearer
|
|
234
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
235
|
+
});
|
|
236
|
+
const api = new RolesApi(config);
|
|
237
|
+
|
|
238
|
+
const body = {
|
|
239
|
+
// string | The folderId for the folder content to be selected
|
|
240
|
+
folderId: folderId_example,
|
|
241
|
+
} satisfies RolesControllerFindByProjectRequest;
|
|
242
|
+
|
|
243
|
+
try {
|
|
244
|
+
const data = await api.rolesControllerFindByProject(body);
|
|
245
|
+
console.log(data);
|
|
246
|
+
} catch (error) {
|
|
247
|
+
console.error(error);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Run the test
|
|
252
|
+
example().catch(console.error);
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Parameters
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
| Name | Type | Description | Notes |
|
|
259
|
+
|------------- | ------------- | ------------- | -------------|
|
|
260
|
+
| **folderId** | `string` | The folderId for the folder content to be selected | [Defaults to `undefined`] |
|
|
261
|
+
|
|
262
|
+
### Return type
|
|
263
|
+
|
|
264
|
+
[**Array<Role>**](Role.md)
|
|
265
|
+
|
|
266
|
+
### Authorization
|
|
267
|
+
|
|
268
|
+
[bearer](../README.md#bearer)
|
|
269
|
+
|
|
270
|
+
### HTTP request headers
|
|
271
|
+
|
|
272
|
+
- **Content-Type**: Not defined
|
|
273
|
+
- **Accept**: `application/json`
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
### HTTP response details
|
|
277
|
+
| Status code | Description | Response headers |
|
|
278
|
+
|-------------|-------------|------------------|
|
|
279
|
+
| **0** | | - |
|
|
280
|
+
|
|
281
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
## rolesControllerFindOne
|
|
285
|
+
|
|
286
|
+
> Role rolesControllerFindOne(id)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
### Example
|
|
291
|
+
|
|
292
|
+
```ts
|
|
293
|
+
import {
|
|
294
|
+
Configuration,
|
|
295
|
+
RolesApi,
|
|
296
|
+
} from 'ffmpeglab-sdk';
|
|
297
|
+
import type { RolesControllerFindOneRequest } from 'ffmpeglab-sdk';
|
|
298
|
+
|
|
299
|
+
async function example() {
|
|
300
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
301
|
+
const config = new Configuration({
|
|
302
|
+
// Configure HTTP bearer authorization: bearer
|
|
303
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
304
|
+
});
|
|
305
|
+
const api = new RolesApi(config);
|
|
306
|
+
|
|
307
|
+
const body = {
|
|
308
|
+
// string | The ID of the pipeline
|
|
309
|
+
id: id_example,
|
|
310
|
+
} satisfies RolesControllerFindOneRequest;
|
|
311
|
+
|
|
312
|
+
try {
|
|
313
|
+
const data = await api.rolesControllerFindOne(body);
|
|
314
|
+
console.log(data);
|
|
315
|
+
} catch (error) {
|
|
316
|
+
console.error(error);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// Run the test
|
|
321
|
+
example().catch(console.error);
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### Parameters
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
| Name | Type | Description | Notes |
|
|
328
|
+
|------------- | ------------- | ------------- | -------------|
|
|
329
|
+
| **id** | `string` | The ID of the pipeline | [Defaults to `undefined`] |
|
|
330
|
+
|
|
331
|
+
### Return type
|
|
332
|
+
|
|
333
|
+
[**Role**](Role.md)
|
|
334
|
+
|
|
335
|
+
### Authorization
|
|
336
|
+
|
|
337
|
+
[bearer](../README.md#bearer)
|
|
338
|
+
|
|
339
|
+
### HTTP request headers
|
|
340
|
+
|
|
341
|
+
- **Content-Type**: Not defined
|
|
342
|
+
- **Accept**: `application/json`
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
### HTTP response details
|
|
346
|
+
| Status code | Description | Response headers |
|
|
347
|
+
|-------------|-------------|------------------|
|
|
348
|
+
| **0** | | - |
|
|
349
|
+
|
|
350
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
## rolesControllerUpdate
|
|
354
|
+
|
|
355
|
+
> Role rolesControllerUpdate(updateRoleDto)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### Example
|
|
360
|
+
|
|
361
|
+
```ts
|
|
362
|
+
import {
|
|
363
|
+
Configuration,
|
|
364
|
+
RolesApi,
|
|
365
|
+
} from 'ffmpeglab-sdk';
|
|
366
|
+
import type { RolesControllerUpdateRequest } from 'ffmpeglab-sdk';
|
|
367
|
+
|
|
368
|
+
async function example() {
|
|
369
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
370
|
+
const config = new Configuration({
|
|
371
|
+
// Configure HTTP bearer authorization: bearer
|
|
372
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
373
|
+
});
|
|
374
|
+
const api = new RolesApi(config);
|
|
375
|
+
|
|
376
|
+
const body = {
|
|
377
|
+
// UpdateRoleDto
|
|
378
|
+
updateRoleDto: ...,
|
|
379
|
+
} satisfies RolesControllerUpdateRequest;
|
|
380
|
+
|
|
381
|
+
try {
|
|
382
|
+
const data = await api.rolesControllerUpdate(body);
|
|
383
|
+
console.log(data);
|
|
384
|
+
} catch (error) {
|
|
385
|
+
console.error(error);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
// Run the test
|
|
390
|
+
example().catch(console.error);
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
### Parameters
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
| Name | Type | Description | Notes |
|
|
397
|
+
|------------- | ------------- | ------------- | -------------|
|
|
398
|
+
| **updateRoleDto** | [UpdateRoleDto](UpdateRoleDto.md) | | |
|
|
399
|
+
|
|
400
|
+
### Return type
|
|
401
|
+
|
|
402
|
+
[**Role**](Role.md)
|
|
403
|
+
|
|
404
|
+
### Authorization
|
|
405
|
+
|
|
406
|
+
[bearer](../README.md#bearer)
|
|
407
|
+
|
|
408
|
+
### HTTP request headers
|
|
409
|
+
|
|
410
|
+
- **Content-Type**: `application/json`
|
|
411
|
+
- **Accept**: `application/json`
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
### HTTP response details
|
|
415
|
+
| Status code | Description | Response headers |
|
|
416
|
+
|-------------|-------------|------------------|
|
|
417
|
+
| **0** | | - |
|
|
418
|
+
|
|
419
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
420
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateItemDto
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`title` | string
|
|
11
|
+
`folder` | string
|
|
12
|
+
`isFolder` | boolean
|
|
13
|
+
`_public` | boolean
|
|
14
|
+
`order` | number
|
|
15
|
+
`item` | object
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { UpdateItemDto } from 'ffmpeglab-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": null,
|
|
25
|
+
"title": null,
|
|
26
|
+
"folder": null,
|
|
27
|
+
"isFolder": null,
|
|
28
|
+
"_public": null,
|
|
29
|
+
"order": null,
|
|
30
|
+
"item": null,
|
|
31
|
+
} satisfies UpdateItemDto
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateItemDto
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateRoleDto
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`title` | string
|
|
11
|
+
`permission` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { UpdateRoleDto } from 'ffmpeglab-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"title": null,
|
|
22
|
+
"permission": null,
|
|
23
|
+
} satisfies UpdateRoleDto
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateRoleDto
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/package.json
CHANGED