@dimrev4/fitness-v3-backend 0.0.36 → 0.0.37
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/api.ts +24 -0
- package/dist/api.d.ts +24 -0
- package/dist/esm/api.d.ts +24 -0
- package/docs/GroupGetPresignedPostUrlRequestDto.md +2 -0
- package/docs/PresignedPostDataDto.md +2 -0
- package/docs/PublicGetPresignedPostUrlRequestDto.md +2 -0
- package/docs/UserGetPresignedPostUrlRequestDto.md +2 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1328,6 +1328,12 @@ export interface GroupGetPresignedPostUrlRequestDto {
|
|
|
1328
1328
|
* @memberof GroupGetPresignedPostUrlRequestDto
|
|
1329
1329
|
*/
|
|
1330
1330
|
'mimetype': string;
|
|
1331
|
+
/**
|
|
1332
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
1333
|
+
* @type {boolean}
|
|
1334
|
+
* @memberof GroupGetPresignedPostUrlRequestDto
|
|
1335
|
+
*/
|
|
1336
|
+
'allowOverwrite'?: boolean;
|
|
1331
1337
|
}
|
|
1332
1338
|
/**
|
|
1333
1339
|
*
|
|
@@ -1834,6 +1840,12 @@ export interface PresignedPostDataDto {
|
|
|
1834
1840
|
* @memberof PresignedPostDataDto
|
|
1835
1841
|
*/
|
|
1836
1842
|
'formData': object;
|
|
1843
|
+
/**
|
|
1844
|
+
* Presigned PUT URL for direct uploads (only available when allowOverwrite is true). Use HTTP PUT with file as body.
|
|
1845
|
+
* @type {string}
|
|
1846
|
+
* @memberof PresignedPostDataDto
|
|
1847
|
+
*/
|
|
1848
|
+
'putUrl'?: string;
|
|
1837
1849
|
}
|
|
1838
1850
|
/**
|
|
1839
1851
|
*
|
|
@@ -1877,6 +1889,12 @@ export interface PublicGetPresignedPostUrlRequestDto {
|
|
|
1877
1889
|
* @memberof PublicGetPresignedPostUrlRequestDto
|
|
1878
1890
|
*/
|
|
1879
1891
|
'mimetype': string;
|
|
1892
|
+
/**
|
|
1893
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
1894
|
+
* @type {boolean}
|
|
1895
|
+
* @memberof PublicGetPresignedPostUrlRequestDto
|
|
1896
|
+
*/
|
|
1897
|
+
'allowOverwrite'?: boolean;
|
|
1880
1898
|
}
|
|
1881
1899
|
/**
|
|
1882
1900
|
*
|
|
@@ -2925,6 +2943,12 @@ export interface UserGetPresignedPostUrlRequestDto {
|
|
|
2925
2943
|
* @memberof UserGetPresignedPostUrlRequestDto
|
|
2926
2944
|
*/
|
|
2927
2945
|
'mimetype': string;
|
|
2946
|
+
/**
|
|
2947
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
2948
|
+
* @type {boolean}
|
|
2949
|
+
* @memberof UserGetPresignedPostUrlRequestDto
|
|
2950
|
+
*/
|
|
2951
|
+
'allowOverwrite'?: boolean;
|
|
2928
2952
|
}
|
|
2929
2953
|
/**
|
|
2930
2954
|
*
|
package/dist/api.d.ts
CHANGED
|
@@ -1288,6 +1288,12 @@ export interface GroupGetPresignedPostUrlRequestDto {
|
|
|
1288
1288
|
* @memberof GroupGetPresignedPostUrlRequestDto
|
|
1289
1289
|
*/
|
|
1290
1290
|
'mimetype': string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
1293
|
+
* @type {boolean}
|
|
1294
|
+
* @memberof GroupGetPresignedPostUrlRequestDto
|
|
1295
|
+
*/
|
|
1296
|
+
'allowOverwrite'?: boolean;
|
|
1291
1297
|
}
|
|
1292
1298
|
/**
|
|
1293
1299
|
*
|
|
@@ -1788,6 +1794,12 @@ export interface PresignedPostDataDto {
|
|
|
1788
1794
|
* @memberof PresignedPostDataDto
|
|
1789
1795
|
*/
|
|
1790
1796
|
'formData': object;
|
|
1797
|
+
/**
|
|
1798
|
+
* Presigned PUT URL for direct uploads (only available when allowOverwrite is true). Use HTTP PUT with file as body.
|
|
1799
|
+
* @type {string}
|
|
1800
|
+
* @memberof PresignedPostDataDto
|
|
1801
|
+
*/
|
|
1802
|
+
'putUrl'?: string;
|
|
1791
1803
|
}
|
|
1792
1804
|
/**
|
|
1793
1805
|
*
|
|
@@ -1831,6 +1843,12 @@ export interface PublicGetPresignedPostUrlRequestDto {
|
|
|
1831
1843
|
* @memberof PublicGetPresignedPostUrlRequestDto
|
|
1832
1844
|
*/
|
|
1833
1845
|
'mimetype': string;
|
|
1846
|
+
/**
|
|
1847
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
1848
|
+
* @type {boolean}
|
|
1849
|
+
* @memberof PublicGetPresignedPostUrlRequestDto
|
|
1850
|
+
*/
|
|
1851
|
+
'allowOverwrite'?: boolean;
|
|
1834
1852
|
}
|
|
1835
1853
|
/**
|
|
1836
1854
|
*
|
|
@@ -2863,6 +2881,12 @@ export interface UserGetPresignedPostUrlRequestDto {
|
|
|
2863
2881
|
* @memberof UserGetPresignedPostUrlRequestDto
|
|
2864
2882
|
*/
|
|
2865
2883
|
'mimetype': string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
2886
|
+
* @type {boolean}
|
|
2887
|
+
* @memberof UserGetPresignedPostUrlRequestDto
|
|
2888
|
+
*/
|
|
2889
|
+
'allowOverwrite'?: boolean;
|
|
2866
2890
|
}
|
|
2867
2891
|
/**
|
|
2868
2892
|
*
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1288,6 +1288,12 @@ export interface GroupGetPresignedPostUrlRequestDto {
|
|
|
1288
1288
|
* @memberof GroupGetPresignedPostUrlRequestDto
|
|
1289
1289
|
*/
|
|
1290
1290
|
'mimetype': string;
|
|
1291
|
+
/**
|
|
1292
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
1293
|
+
* @type {boolean}
|
|
1294
|
+
* @memberof GroupGetPresignedPostUrlRequestDto
|
|
1295
|
+
*/
|
|
1296
|
+
'allowOverwrite'?: boolean;
|
|
1291
1297
|
}
|
|
1292
1298
|
/**
|
|
1293
1299
|
*
|
|
@@ -1788,6 +1794,12 @@ export interface PresignedPostDataDto {
|
|
|
1788
1794
|
* @memberof PresignedPostDataDto
|
|
1789
1795
|
*/
|
|
1790
1796
|
'formData': object;
|
|
1797
|
+
/**
|
|
1798
|
+
* Presigned PUT URL for direct uploads (only available when allowOverwrite is true). Use HTTP PUT with file as body.
|
|
1799
|
+
* @type {string}
|
|
1800
|
+
* @memberof PresignedPostDataDto
|
|
1801
|
+
*/
|
|
1802
|
+
'putUrl'?: string;
|
|
1791
1803
|
}
|
|
1792
1804
|
/**
|
|
1793
1805
|
*
|
|
@@ -1831,6 +1843,12 @@ export interface PublicGetPresignedPostUrlRequestDto {
|
|
|
1831
1843
|
* @memberof PublicGetPresignedPostUrlRequestDto
|
|
1832
1844
|
*/
|
|
1833
1845
|
'mimetype': string;
|
|
1846
|
+
/**
|
|
1847
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
1848
|
+
* @type {boolean}
|
|
1849
|
+
* @memberof PublicGetPresignedPostUrlRequestDto
|
|
1850
|
+
*/
|
|
1851
|
+
'allowOverwrite'?: boolean;
|
|
1834
1852
|
}
|
|
1835
1853
|
/**
|
|
1836
1854
|
*
|
|
@@ -2863,6 +2881,12 @@ export interface UserGetPresignedPostUrlRequestDto {
|
|
|
2863
2881
|
* @memberof UserGetPresignedPostUrlRequestDto
|
|
2864
2882
|
*/
|
|
2865
2883
|
'mimetype': string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists
|
|
2886
|
+
* @type {boolean}
|
|
2887
|
+
* @memberof UserGetPresignedPostUrlRequestDto
|
|
2888
|
+
*/
|
|
2889
|
+
'allowOverwrite'?: boolean;
|
|
2866
2890
|
}
|
|
2867
2891
|
/**
|
|
2868
2892
|
*
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**subject** | **string** | Subject folder | [default to undefined]
|
|
11
11
|
**fileShaCheckSum** | **string** | SHA-256 checksum of the file | [default to undefined]
|
|
12
12
|
**mimetype** | **string** | MIME type of the file | [default to undefined]
|
|
13
|
+
**allowOverwrite** | **boolean** | Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists | [optional] [default to false]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
15
16
|
|
|
@@ -22,6 +23,7 @@ const instance: GroupGetPresignedPostUrlRequestDto = {
|
|
|
22
23
|
subject,
|
|
23
24
|
fileShaCheckSum,
|
|
24
25
|
mimetype,
|
|
26
|
+
allowOverwrite,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
27
29
|
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**postUrl** | **string** | Presigned post data | [default to undefined]
|
|
9
9
|
**formData** | **object** | Form data fields for presigned POST | [default to undefined]
|
|
10
|
+
**putUrl** | **string** | Presigned PUT URL for direct uploads (only available when allowOverwrite is true). Use HTTP PUT with file as body. | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { PresignedPostDataDto } from '@dimrev4/fitness-v3-backend-sdk';
|
|
|
16
17
|
const instance: PresignedPostDataDto = {
|
|
17
18
|
postUrl,
|
|
18
19
|
formData,
|
|
20
|
+
putUrl,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**subject** | **string** | Subject folder | [default to undefined]
|
|
12
12
|
**fileShaCheckSum** | **string** | SHA-256 checksum of the file | [default to undefined]
|
|
13
13
|
**mimetype** | **string** | MIME type of the file | [default to undefined]
|
|
14
|
+
**allowOverwrite** | **boolean** | Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists | [optional] [default to false]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: PublicGetPresignedPostUrlRequestDto = {
|
|
|
24
25
|
subject,
|
|
25
26
|
fileShaCheckSum,
|
|
26
27
|
mimetype,
|
|
28
|
+
allowOverwrite,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**subject** | **string** | Subject folder | [default to undefined]
|
|
10
10
|
**fileShaCheckSum** | **string** | SHA-256 checksum of the file | [default to undefined]
|
|
11
11
|
**mimetype** | **string** | MIME type of the file | [default to undefined]
|
|
12
|
+
**allowOverwrite** | **boolean** | Allow overwriting existing file. If true, acts like PUT; if false (default), acts like POST and fails if file exists | [optional] [default to false]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: UserGetPresignedPostUrlRequestDto = {
|
|
|
20
21
|
subject,
|
|
21
22
|
fileShaCheckSum,
|
|
22
23
|
mimetype,
|
|
24
|
+
allowOverwrite,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|