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/ItemsApi.md
ADDED
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
# ItemsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**itemsControllerCreate**](ItemsApi.md#itemscontrollercreate) | **POST** /item | |
|
|
8
|
+
| [**itemsControllerDeleteOne**](ItemsApi.md#itemscontrollerdeleteone) | **DELETE** /item/{id} | |
|
|
9
|
+
| [**itemsControllerFindAllFolders**](ItemsApi.md#itemscontrollerfindallfolders) | **GET** /item/folder | |
|
|
10
|
+
| [**itemsControllerFindByProject**](ItemsApi.md#itemscontrollerfindbyproject) | **GET** /item/folder/{folderId} | |
|
|
11
|
+
| [**itemsControllerFindOne**](ItemsApi.md#itemscontrollerfindone) | **GET** /item/{id} | |
|
|
12
|
+
| [**itemsControllerFindOneByRole**](ItemsApi.md#itemscontrollerfindonebyrole) | **GET** /item/roled/{id} | |
|
|
13
|
+
| [**itemsControllerUpdate**](ItemsApi.md#itemscontrollerupdate) | **PUT** /item | |
|
|
14
|
+
| [**itemsControllerUpdateOneByRole**](ItemsApi.md#itemscontrollerupdateonebyrole) | **PUT** /item/roled/{id} | |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## itemsControllerCreate
|
|
19
|
+
|
|
20
|
+
> Item itemsControllerCreate(createItemDto)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Example
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import {
|
|
28
|
+
Configuration,
|
|
29
|
+
ItemsApi,
|
|
30
|
+
} from 'ffmpeglab-sdk';
|
|
31
|
+
import type { ItemsControllerCreateRequest } from 'ffmpeglab-sdk';
|
|
32
|
+
|
|
33
|
+
async function example() {
|
|
34
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
35
|
+
const config = new Configuration({
|
|
36
|
+
// Configure HTTP bearer authorization: bearer
|
|
37
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
38
|
+
});
|
|
39
|
+
const api = new ItemsApi(config);
|
|
40
|
+
|
|
41
|
+
const body = {
|
|
42
|
+
// CreateItemDto
|
|
43
|
+
createItemDto: ...,
|
|
44
|
+
} satisfies ItemsControllerCreateRequest;
|
|
45
|
+
|
|
46
|
+
try {
|
|
47
|
+
const data = await api.itemsControllerCreate(body);
|
|
48
|
+
console.log(data);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
console.error(error);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Run the test
|
|
55
|
+
example().catch(console.error);
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Parameters
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
| Name | Type | Description | Notes |
|
|
62
|
+
|------------- | ------------- | ------------- | -------------|
|
|
63
|
+
| **createItemDto** | [CreateItemDto](CreateItemDto.md) | | |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**Item**](Item.md)
|
|
68
|
+
|
|
69
|
+
### Authorization
|
|
70
|
+
|
|
71
|
+
[bearer](../README.md#bearer)
|
|
72
|
+
|
|
73
|
+
### HTTP request headers
|
|
74
|
+
|
|
75
|
+
- **Content-Type**: `application/json`
|
|
76
|
+
- **Accept**: `application/json`
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### HTTP response details
|
|
80
|
+
| Status code | Description | Response headers |
|
|
81
|
+
|-------------|-------------|------------------|
|
|
82
|
+
| **0** | | - |
|
|
83
|
+
|
|
84
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## itemsControllerDeleteOne
|
|
88
|
+
|
|
89
|
+
> itemsControllerDeleteOne(id)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import {
|
|
97
|
+
Configuration,
|
|
98
|
+
ItemsApi,
|
|
99
|
+
} from 'ffmpeglab-sdk';
|
|
100
|
+
import type { ItemsControllerDeleteOneRequest } from 'ffmpeglab-sdk';
|
|
101
|
+
|
|
102
|
+
async function example() {
|
|
103
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
104
|
+
const config = new Configuration({
|
|
105
|
+
// Configure HTTP bearer authorization: bearer
|
|
106
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
107
|
+
});
|
|
108
|
+
const api = new ItemsApi(config);
|
|
109
|
+
|
|
110
|
+
const body = {
|
|
111
|
+
// string | The ID of the item
|
|
112
|
+
id: id_example,
|
|
113
|
+
} satisfies ItemsControllerDeleteOneRequest;
|
|
114
|
+
|
|
115
|
+
try {
|
|
116
|
+
const data = await api.itemsControllerDeleteOne(body);
|
|
117
|
+
console.log(data);
|
|
118
|
+
} catch (error) {
|
|
119
|
+
console.error(error);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Run the test
|
|
124
|
+
example().catch(console.error);
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Parameters
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
| Name | Type | Description | Notes |
|
|
131
|
+
|------------- | ------------- | ------------- | -------------|
|
|
132
|
+
| **id** | `string` | The ID of the item | [Defaults to `undefined`] |
|
|
133
|
+
|
|
134
|
+
### Return type
|
|
135
|
+
|
|
136
|
+
`void` (Empty response body)
|
|
137
|
+
|
|
138
|
+
### Authorization
|
|
139
|
+
|
|
140
|
+
[bearer](../README.md#bearer)
|
|
141
|
+
|
|
142
|
+
### HTTP request headers
|
|
143
|
+
|
|
144
|
+
- **Content-Type**: Not defined
|
|
145
|
+
- **Accept**: Not defined
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### HTTP response details
|
|
149
|
+
| Status code | Description | Response headers |
|
|
150
|
+
|-------------|-------------|------------------|
|
|
151
|
+
| **200** | | - |
|
|
152
|
+
|
|
153
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
## itemsControllerFindAllFolders
|
|
157
|
+
|
|
158
|
+
> Array<Item> itemsControllerFindAllFolders()
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Example
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
import {
|
|
166
|
+
Configuration,
|
|
167
|
+
ItemsApi,
|
|
168
|
+
} from 'ffmpeglab-sdk';
|
|
169
|
+
import type { ItemsControllerFindAllFoldersRequest } from 'ffmpeglab-sdk';
|
|
170
|
+
|
|
171
|
+
async function example() {
|
|
172
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
173
|
+
const config = new Configuration({
|
|
174
|
+
// Configure HTTP bearer authorization: bearer
|
|
175
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
176
|
+
});
|
|
177
|
+
const api = new ItemsApi(config);
|
|
178
|
+
|
|
179
|
+
try {
|
|
180
|
+
const data = await api.itemsControllerFindAllFolders();
|
|
181
|
+
console.log(data);
|
|
182
|
+
} catch (error) {
|
|
183
|
+
console.error(error);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Run the test
|
|
188
|
+
example().catch(console.error);
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Parameters
|
|
192
|
+
|
|
193
|
+
This endpoint does not need any parameter.
|
|
194
|
+
|
|
195
|
+
### Return type
|
|
196
|
+
|
|
197
|
+
[**Array<Item>**](Item.md)
|
|
198
|
+
|
|
199
|
+
### Authorization
|
|
200
|
+
|
|
201
|
+
[bearer](../README.md#bearer)
|
|
202
|
+
|
|
203
|
+
### HTTP request headers
|
|
204
|
+
|
|
205
|
+
- **Content-Type**: Not defined
|
|
206
|
+
- **Accept**: `application/json`
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
### HTTP response details
|
|
210
|
+
| Status code | Description | Response headers |
|
|
211
|
+
|-------------|-------------|------------------|
|
|
212
|
+
| **0** | | - |
|
|
213
|
+
|
|
214
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
## itemsControllerFindByProject
|
|
218
|
+
|
|
219
|
+
> Array<Item> itemsControllerFindByProject(folderId)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Example
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
import {
|
|
227
|
+
Configuration,
|
|
228
|
+
ItemsApi,
|
|
229
|
+
} from 'ffmpeglab-sdk';
|
|
230
|
+
import type { ItemsControllerFindByProjectRequest } from 'ffmpeglab-sdk';
|
|
231
|
+
|
|
232
|
+
async function example() {
|
|
233
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
234
|
+
const config = new Configuration({
|
|
235
|
+
// Configure HTTP bearer authorization: bearer
|
|
236
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
237
|
+
});
|
|
238
|
+
const api = new ItemsApi(config);
|
|
239
|
+
|
|
240
|
+
const body = {
|
|
241
|
+
// string | The folderId for the folder content to be selected
|
|
242
|
+
folderId: folderId_example,
|
|
243
|
+
} satisfies ItemsControllerFindByProjectRequest;
|
|
244
|
+
|
|
245
|
+
try {
|
|
246
|
+
const data = await api.itemsControllerFindByProject(body);
|
|
247
|
+
console.log(data);
|
|
248
|
+
} catch (error) {
|
|
249
|
+
console.error(error);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Run the test
|
|
254
|
+
example().catch(console.error);
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Parameters
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
| Name | Type | Description | Notes |
|
|
261
|
+
|------------- | ------------- | ------------- | -------------|
|
|
262
|
+
| **folderId** | `string` | The folderId for the folder content to be selected | [Defaults to `undefined`] |
|
|
263
|
+
|
|
264
|
+
### Return type
|
|
265
|
+
|
|
266
|
+
[**Array<Item>**](Item.md)
|
|
267
|
+
|
|
268
|
+
### Authorization
|
|
269
|
+
|
|
270
|
+
[bearer](../README.md#bearer)
|
|
271
|
+
|
|
272
|
+
### HTTP request headers
|
|
273
|
+
|
|
274
|
+
- **Content-Type**: Not defined
|
|
275
|
+
- **Accept**: `application/json`
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### HTTP response details
|
|
279
|
+
| Status code | Description | Response headers |
|
|
280
|
+
|-------------|-------------|------------------|
|
|
281
|
+
| **0** | | - |
|
|
282
|
+
|
|
283
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## itemsControllerFindOne
|
|
287
|
+
|
|
288
|
+
> Item itemsControllerFindOne(id)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### Example
|
|
293
|
+
|
|
294
|
+
```ts
|
|
295
|
+
import {
|
|
296
|
+
Configuration,
|
|
297
|
+
ItemsApi,
|
|
298
|
+
} from 'ffmpeglab-sdk';
|
|
299
|
+
import type { ItemsControllerFindOneRequest } from 'ffmpeglab-sdk';
|
|
300
|
+
|
|
301
|
+
async function example() {
|
|
302
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
303
|
+
const config = new Configuration({
|
|
304
|
+
// Configure HTTP bearer authorization: bearer
|
|
305
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
306
|
+
});
|
|
307
|
+
const api = new ItemsApi(config);
|
|
308
|
+
|
|
309
|
+
const body = {
|
|
310
|
+
// string | The ID of the item
|
|
311
|
+
id: id_example,
|
|
312
|
+
} satisfies ItemsControllerFindOneRequest;
|
|
313
|
+
|
|
314
|
+
try {
|
|
315
|
+
const data = await api.itemsControllerFindOne(body);
|
|
316
|
+
console.log(data);
|
|
317
|
+
} catch (error) {
|
|
318
|
+
console.error(error);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// Run the test
|
|
323
|
+
example().catch(console.error);
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Parameters
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
| Name | Type | Description | Notes |
|
|
330
|
+
|------------- | ------------- | ------------- | -------------|
|
|
331
|
+
| **id** | `string` | The ID of the item | [Defaults to `undefined`] |
|
|
332
|
+
|
|
333
|
+
### Return type
|
|
334
|
+
|
|
335
|
+
[**Item**](Item.md)
|
|
336
|
+
|
|
337
|
+
### Authorization
|
|
338
|
+
|
|
339
|
+
[bearer](../README.md#bearer)
|
|
340
|
+
|
|
341
|
+
### HTTP request headers
|
|
342
|
+
|
|
343
|
+
- **Content-Type**: Not defined
|
|
344
|
+
- **Accept**: `application/json`
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
### HTTP response details
|
|
348
|
+
| Status code | Description | Response headers |
|
|
349
|
+
|-------------|-------------|------------------|
|
|
350
|
+
| **0** | | - |
|
|
351
|
+
|
|
352
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
## itemsControllerFindOneByRole
|
|
356
|
+
|
|
357
|
+
> Item itemsControllerFindOneByRole(id)
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
### Example
|
|
362
|
+
|
|
363
|
+
```ts
|
|
364
|
+
import {
|
|
365
|
+
Configuration,
|
|
366
|
+
ItemsApi,
|
|
367
|
+
} from 'ffmpeglab-sdk';
|
|
368
|
+
import type { ItemsControllerFindOneByRoleRequest } from 'ffmpeglab-sdk';
|
|
369
|
+
|
|
370
|
+
async function example() {
|
|
371
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
372
|
+
const config = new Configuration({
|
|
373
|
+
// Configure HTTP bearer authorization: bearer
|
|
374
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
375
|
+
});
|
|
376
|
+
const api = new ItemsApi(config);
|
|
377
|
+
|
|
378
|
+
const body = {
|
|
379
|
+
// string | The ID of the item
|
|
380
|
+
id: id_example,
|
|
381
|
+
} satisfies ItemsControllerFindOneByRoleRequest;
|
|
382
|
+
|
|
383
|
+
try {
|
|
384
|
+
const data = await api.itemsControllerFindOneByRole(body);
|
|
385
|
+
console.log(data);
|
|
386
|
+
} catch (error) {
|
|
387
|
+
console.error(error);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// Run the test
|
|
392
|
+
example().catch(console.error);
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### Parameters
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
| Name | Type | Description | Notes |
|
|
399
|
+
|------------- | ------------- | ------------- | -------------|
|
|
400
|
+
| **id** | `string` | The ID of the item | [Defaults to `undefined`] |
|
|
401
|
+
|
|
402
|
+
### Return type
|
|
403
|
+
|
|
404
|
+
[**Item**](Item.md)
|
|
405
|
+
|
|
406
|
+
### Authorization
|
|
407
|
+
|
|
408
|
+
[bearer](../README.md#bearer)
|
|
409
|
+
|
|
410
|
+
### HTTP request headers
|
|
411
|
+
|
|
412
|
+
- **Content-Type**: Not defined
|
|
413
|
+
- **Accept**: `application/json`
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
### HTTP response details
|
|
417
|
+
| Status code | Description | Response headers |
|
|
418
|
+
|-------------|-------------|------------------|
|
|
419
|
+
| **0** | | - |
|
|
420
|
+
|
|
421
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
## itemsControllerUpdate
|
|
425
|
+
|
|
426
|
+
> Item itemsControllerUpdate(updateItemDto)
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
### Example
|
|
431
|
+
|
|
432
|
+
```ts
|
|
433
|
+
import {
|
|
434
|
+
Configuration,
|
|
435
|
+
ItemsApi,
|
|
436
|
+
} from 'ffmpeglab-sdk';
|
|
437
|
+
import type { ItemsControllerUpdateRequest } from 'ffmpeglab-sdk';
|
|
438
|
+
|
|
439
|
+
async function example() {
|
|
440
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
441
|
+
const config = new Configuration({
|
|
442
|
+
// Configure HTTP bearer authorization: bearer
|
|
443
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
444
|
+
});
|
|
445
|
+
const api = new ItemsApi(config);
|
|
446
|
+
|
|
447
|
+
const body = {
|
|
448
|
+
// UpdateItemDto
|
|
449
|
+
updateItemDto: ...,
|
|
450
|
+
} satisfies ItemsControllerUpdateRequest;
|
|
451
|
+
|
|
452
|
+
try {
|
|
453
|
+
const data = await api.itemsControllerUpdate(body);
|
|
454
|
+
console.log(data);
|
|
455
|
+
} catch (error) {
|
|
456
|
+
console.error(error);
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// Run the test
|
|
461
|
+
example().catch(console.error);
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### Parameters
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
| Name | Type | Description | Notes |
|
|
468
|
+
|------------- | ------------- | ------------- | -------------|
|
|
469
|
+
| **updateItemDto** | [UpdateItemDto](UpdateItemDto.md) | | |
|
|
470
|
+
|
|
471
|
+
### Return type
|
|
472
|
+
|
|
473
|
+
[**Item**](Item.md)
|
|
474
|
+
|
|
475
|
+
### Authorization
|
|
476
|
+
|
|
477
|
+
[bearer](../README.md#bearer)
|
|
478
|
+
|
|
479
|
+
### HTTP request headers
|
|
480
|
+
|
|
481
|
+
- **Content-Type**: `application/json`
|
|
482
|
+
- **Accept**: `application/json`
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
### HTTP response details
|
|
486
|
+
| Status code | Description | Response headers |
|
|
487
|
+
|-------------|-------------|------------------|
|
|
488
|
+
| **0** | | - |
|
|
489
|
+
|
|
490
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
## itemsControllerUpdateOneByRole
|
|
494
|
+
|
|
495
|
+
> Item itemsControllerUpdateOneByRole(id, updateItemDto)
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
### Example
|
|
500
|
+
|
|
501
|
+
```ts
|
|
502
|
+
import {
|
|
503
|
+
Configuration,
|
|
504
|
+
ItemsApi,
|
|
505
|
+
} from 'ffmpeglab-sdk';
|
|
506
|
+
import type { ItemsControllerUpdateOneByRoleRequest } from 'ffmpeglab-sdk';
|
|
507
|
+
|
|
508
|
+
async function example() {
|
|
509
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
510
|
+
const config = new Configuration({
|
|
511
|
+
// Configure HTTP bearer authorization: bearer
|
|
512
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
513
|
+
});
|
|
514
|
+
const api = new ItemsApi(config);
|
|
515
|
+
|
|
516
|
+
const body = {
|
|
517
|
+
// string | The ID of the item
|
|
518
|
+
id: id_example,
|
|
519
|
+
// UpdateItemDto
|
|
520
|
+
updateItemDto: ...,
|
|
521
|
+
} satisfies ItemsControllerUpdateOneByRoleRequest;
|
|
522
|
+
|
|
523
|
+
try {
|
|
524
|
+
const data = await api.itemsControllerUpdateOneByRole(body);
|
|
525
|
+
console.log(data);
|
|
526
|
+
} catch (error) {
|
|
527
|
+
console.error(error);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// Run the test
|
|
532
|
+
example().catch(console.error);
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
### Parameters
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
| Name | Type | Description | Notes |
|
|
539
|
+
|------------- | ------------- | ------------- | -------------|
|
|
540
|
+
| **id** | `string` | The ID of the item | [Defaults to `undefined`] |
|
|
541
|
+
| **updateItemDto** | [UpdateItemDto](UpdateItemDto.md) | | |
|
|
542
|
+
|
|
543
|
+
### Return type
|
|
544
|
+
|
|
545
|
+
[**Item**](Item.md)
|
|
546
|
+
|
|
547
|
+
### Authorization
|
|
548
|
+
|
|
549
|
+
[bearer](../README.md#bearer)
|
|
550
|
+
|
|
551
|
+
### HTTP request headers
|
|
552
|
+
|
|
553
|
+
- **Content-Type**: `application/json`
|
|
554
|
+
- **Accept**: `application/json`
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
### HTTP response details
|
|
558
|
+
| Status code | Description | Response headers |
|
|
559
|
+
|-------------|-------------|------------------|
|
|
560
|
+
| **0** | | - |
|
|
561
|
+
|
|
562
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
563
|
+
|
package/docs/PublicApi.md
CHANGED
|
@@ -4,10 +4,142 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**publicControllerGetPublicFolder**](PublicApi.md#publiccontrollergetpublicfolder) | **GET** /public/folder/{id} | |
|
|
8
|
+
| [**publicControllerGetPublicItem**](PublicApi.md#publiccontrollergetpublicitem) | **GET** /public/item/{id} | |
|
|
7
9
|
| [**publicControllerGetPublicRender**](PublicApi.md#publiccontrollergetpublicrender) | **GET** /public/renders/{id} | |
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
13
|
+
## publicControllerGetPublicFolder
|
|
14
|
+
|
|
15
|
+
> RenderResponse publicControllerGetPublicFolder(id)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
PublicApi,
|
|
25
|
+
} from 'ffmpeglab-sdk';
|
|
26
|
+
import type { PublicControllerGetPublicFolderRequest } from 'ffmpeglab-sdk';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
30
|
+
const api = new PublicApi();
|
|
31
|
+
|
|
32
|
+
const body = {
|
|
33
|
+
// string | The ID of the public render
|
|
34
|
+
id: id_example,
|
|
35
|
+
} satisfies PublicControllerGetPublicFolderRequest;
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
const data = await api.publicControllerGetPublicFolder(body);
|
|
39
|
+
console.log(data);
|
|
40
|
+
} catch (error) {
|
|
41
|
+
console.error(error);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Run the test
|
|
46
|
+
example().catch(console.error);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
| Name | Type | Description | Notes |
|
|
53
|
+
|------------- | ------------- | ------------- | -------------|
|
|
54
|
+
| **id** | `string` | The ID of the public render | [Defaults to `undefined`] |
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
[**RenderResponse**](RenderResponse.md)
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
No authorization required
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: Not defined
|
|
67
|
+
- **Accept**: `application/json`
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
| **0** | | - |
|
|
74
|
+
|
|
75
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## publicControllerGetPublicItem
|
|
79
|
+
|
|
80
|
+
> RenderResponse publicControllerGetPublicItem(id)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Example
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import {
|
|
88
|
+
Configuration,
|
|
89
|
+
PublicApi,
|
|
90
|
+
} from 'ffmpeglab-sdk';
|
|
91
|
+
import type { PublicControllerGetPublicItemRequest } from 'ffmpeglab-sdk';
|
|
92
|
+
|
|
93
|
+
async function example() {
|
|
94
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
95
|
+
const api = new PublicApi();
|
|
96
|
+
|
|
97
|
+
const body = {
|
|
98
|
+
// string | The ID of the public render
|
|
99
|
+
id: id_example,
|
|
100
|
+
} satisfies PublicControllerGetPublicItemRequest;
|
|
101
|
+
|
|
102
|
+
try {
|
|
103
|
+
const data = await api.publicControllerGetPublicItem(body);
|
|
104
|
+
console.log(data);
|
|
105
|
+
} catch (error) {
|
|
106
|
+
console.error(error);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Run the test
|
|
111
|
+
example().catch(console.error);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
| Name | Type | Description | Notes |
|
|
118
|
+
|------------- | ------------- | ------------- | -------------|
|
|
119
|
+
| **id** | `string` | The ID of the public render | [Defaults to `undefined`] |
|
|
120
|
+
|
|
121
|
+
### Return type
|
|
122
|
+
|
|
123
|
+
[**RenderResponse**](RenderResponse.md)
|
|
124
|
+
|
|
125
|
+
### Authorization
|
|
126
|
+
|
|
127
|
+
No authorization required
|
|
128
|
+
|
|
129
|
+
### HTTP request headers
|
|
130
|
+
|
|
131
|
+
- **Content-Type**: Not defined
|
|
132
|
+
- **Accept**: `application/json`
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### HTTP response details
|
|
136
|
+
| Status code | Description | Response headers |
|
|
137
|
+
|-------------|-------------|------------------|
|
|
138
|
+
| **0** | | - |
|
|
139
|
+
|
|
140
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
141
|
+
|
|
142
|
+
|
|
11
143
|
## publicControllerGetPublicRender
|
|
12
144
|
|
|
13
145
|
> RenderResponse publicControllerGetPublicRender(id)
|