@dimrev4/fitness-v3-backend 0.0.32 → 0.0.34

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.
@@ -23,6 +23,7 @@ docs/ExerciseDto.md
23
23
  docs/ExerciseSetsDto.md
24
24
  docs/ExerciseWithSetsDto.md
25
25
  docs/ExercisesV1Api.md
26
+ docs/FilesV1Api.md
26
27
  docs/GetAllExercisesResponseDto.md
27
28
  docs/GetAllIngredientsResponseDto.md
28
29
  docs/GetAllMealsResponseDto.md
@@ -43,6 +44,9 @@ docs/LoginResponseDto.md
43
44
  docs/LogoutResponseDto.md
44
45
  docs/MeasurementDto.md
45
46
  docs/MeasurementsV1Api.md
47
+ docs/PresignedGetDataDto.md
48
+ docs/PresignedPostDataDto.md
49
+ docs/PublicGetPresignedPostUrlRequestDto.md
46
50
  docs/RefreshRequestDto.md
47
51
  docs/RegisterRequestDto.md
48
52
  docs/RegisterResponseDto.md
@@ -0,0 +1,4 @@
1
+
2
+ > @dimrev4/fitness-v3-backend@0.0.32 build /home/dimar/Dev/Prod/fitness-app/fitness-mono-repo/packages/fitness-v3-backend-sdk
3
+ > tsc && tsc -p tsconfig.esm.json
4
+
package/api.ts CHANGED
@@ -1748,6 +1748,99 @@ export interface MeasurementDto {
1748
1748
  */
1749
1749
  'bmr': number;
1750
1750
  }
1751
+ /**
1752
+ *
1753
+ * @export
1754
+ * @interface PresignedGetDataDto
1755
+ */
1756
+ export interface PresignedGetDataDto {
1757
+ /**
1758
+ * Presigned get data
1759
+ * @type {string}
1760
+ * @memberof PresignedGetDataDto
1761
+ */
1762
+ 'getUrl': string;
1763
+ /**
1764
+ * Size of the file in bytes
1765
+ * @type {number}
1766
+ * @memberof PresignedGetDataDto
1767
+ */
1768
+ 'size': number;
1769
+ /**
1770
+ * ETag of the file
1771
+ * @type {string}
1772
+ * @memberof PresignedGetDataDto
1773
+ */
1774
+ 'etag': string;
1775
+ /**
1776
+ * Date when the file was last modified
1777
+ * @type {string}
1778
+ * @memberof PresignedGetDataDto
1779
+ */
1780
+ 'lastModified': string;
1781
+ }
1782
+ /**
1783
+ *
1784
+ * @export
1785
+ * @interface PresignedPostDataDto
1786
+ */
1787
+ export interface PresignedPostDataDto {
1788
+ /**
1789
+ * Presigned post data
1790
+ * @type {string}
1791
+ * @memberof PresignedPostDataDto
1792
+ */
1793
+ 'postUrl': string;
1794
+ /**
1795
+ * Form data fields for presigned POST
1796
+ * @type {object}
1797
+ * @memberof PresignedPostDataDto
1798
+ */
1799
+ 'formData': object;
1800
+ }
1801
+ /**
1802
+ *
1803
+ * @export
1804
+ * @interface PublicGetPresignedPostUrlRequestDto
1805
+ */
1806
+ export interface PublicGetPresignedPostUrlRequestDto {
1807
+ /**
1808
+ * Group ID, for files in the group scope of the bucket
1809
+ * @type {string}
1810
+ * @memberof PublicGetPresignedPostUrlRequestDto
1811
+ */
1812
+ 'groupId'?: string;
1813
+ /**
1814
+ * User ID, for files in the user scope of the bucket
1815
+ * @type {string}
1816
+ * @memberof PublicGetPresignedPostUrlRequestDto
1817
+ */
1818
+ 'userId'?: string;
1819
+ /**
1820
+ * Original filename
1821
+ * @type {string}
1822
+ * @memberof PublicGetPresignedPostUrlRequestDto
1823
+ */
1824
+ 'filename': string;
1825
+ /**
1826
+ * Subject folder
1827
+ * @type {string}
1828
+ * @memberof PublicGetPresignedPostUrlRequestDto
1829
+ */
1830
+ 'subject': string;
1831
+ /**
1832
+ * SHA-256 checksum of the file
1833
+ * @type {string}
1834
+ * @memberof PublicGetPresignedPostUrlRequestDto
1835
+ */
1836
+ 'fileShaCheckSum': string;
1837
+ /**
1838
+ * MIME type of the file
1839
+ * @type {string}
1840
+ * @memberof PublicGetPresignedPostUrlRequestDto
1841
+ */
1842
+ 'mimetype': string;
1843
+ }
1751
1844
  /**
1752
1845
  *
1753
1846
  * @export
@@ -4397,6 +4490,333 @@ export class ExercisesV1Api extends BaseAPI implements ExercisesV1ApiInterface {
4397
4490
 
4398
4491
 
4399
4492
 
4493
+ /**
4494
+ * FilesV1Api - axios parameter creator
4495
+ * @export
4496
+ */
4497
+ export const FilesV1ApiAxiosParamCreator = function (configuration?: Configuration) {
4498
+ return {
4499
+ /**
4500
+ *
4501
+ * @summary Get buckets
4502
+ * @param {*} [options] Override http request option.
4503
+ * @throws {RequiredError}
4504
+ */
4505
+ filesV1ControllerGetBuckets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4506
+ const localVarPath = `/api/files/v1/buckets`;
4507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4508
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4509
+ let baseOptions;
4510
+ if (configuration) {
4511
+ baseOptions = configuration.baseOptions;
4512
+ }
4513
+
4514
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4515
+ const localVarHeaderParameter = {} as any;
4516
+ const localVarQueryParameter = {} as any;
4517
+
4518
+ // authentication apiKey required
4519
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
4520
+
4521
+ // authentication bearer required
4522
+ // http bearer authentication required
4523
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4524
+
4525
+
4526
+
4527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4529
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4530
+
4531
+ return {
4532
+ url: toPathString(localVarUrlObj),
4533
+ options: localVarRequestOptions,
4534
+ };
4535
+ },
4536
+ /**
4537
+ *
4538
+ * @summary Get presigned get url
4539
+ * @param {string} filepath
4540
+ * @param {*} [options] Override http request option.
4541
+ * @throws {RequiredError}
4542
+ */
4543
+ filesV1ControllerGetPresignedGetUrl: async (filepath: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4544
+ // verify required parameter 'filepath' is not null or undefined
4545
+ assertParamExists('filesV1ControllerGetPresignedGetUrl', 'filepath', filepath)
4546
+ const localVarPath = `/api/files/v1/public/presigned-get/{filepath}`
4547
+ .replace(`{${"filepath"}}`, encodeURIComponent(String(filepath)));
4548
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4549
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4550
+ let baseOptions;
4551
+ if (configuration) {
4552
+ baseOptions = configuration.baseOptions;
4553
+ }
4554
+
4555
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4556
+ const localVarHeaderParameter = {} as any;
4557
+ const localVarQueryParameter = {} as any;
4558
+
4559
+ // authentication apiKey required
4560
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
4561
+
4562
+ // authentication bearer required
4563
+ // http bearer authentication required
4564
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4565
+
4566
+
4567
+
4568
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4569
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4570
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4571
+
4572
+ return {
4573
+ url: toPathString(localVarUrlObj),
4574
+ options: localVarRequestOptions,
4575
+ };
4576
+ },
4577
+ /**
4578
+ *
4579
+ * @summary Get presigned post url
4580
+ * @param {PublicGetPresignedPostUrlRequestDto} publicGetPresignedPostUrlRequestDto
4581
+ * @param {*} [options] Override http request option.
4582
+ * @throws {RequiredError}
4583
+ */
4584
+ filesV1ControllerGetPresignedPostUrl: async (publicGetPresignedPostUrlRequestDto: PublicGetPresignedPostUrlRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4585
+ // verify required parameter 'publicGetPresignedPostUrlRequestDto' is not null or undefined
4586
+ assertParamExists('filesV1ControllerGetPresignedPostUrl', 'publicGetPresignedPostUrlRequestDto', publicGetPresignedPostUrlRequestDto)
4587
+ const localVarPath = `/api/files/v1/public/presigned-url`;
4588
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4589
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4590
+ let baseOptions;
4591
+ if (configuration) {
4592
+ baseOptions = configuration.baseOptions;
4593
+ }
4594
+
4595
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4596
+ const localVarHeaderParameter = {} as any;
4597
+ const localVarQueryParameter = {} as any;
4598
+
4599
+ // authentication apiKey required
4600
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
4601
+
4602
+ // authentication bearer required
4603
+ // http bearer authentication required
4604
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4605
+
4606
+
4607
+
4608
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4609
+
4610
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4612
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4613
+ localVarRequestOptions.data = serializeDataIfNeeded(publicGetPresignedPostUrlRequestDto, localVarRequestOptions, configuration)
4614
+
4615
+ return {
4616
+ url: toPathString(localVarUrlObj),
4617
+ options: localVarRequestOptions,
4618
+ };
4619
+ },
4620
+ }
4621
+ };
4622
+
4623
+ /**
4624
+ * FilesV1Api - functional programming interface
4625
+ * @export
4626
+ */
4627
+ export const FilesV1ApiFp = function(configuration?: Configuration) {
4628
+ const localVarAxiosParamCreator = FilesV1ApiAxiosParamCreator(configuration)
4629
+ return {
4630
+ /**
4631
+ *
4632
+ * @summary Get buckets
4633
+ * @param {*} [options] Override http request option.
4634
+ * @throws {RequiredError}
4635
+ */
4636
+ async filesV1ControllerGetBuckets(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.filesV1ControllerGetBuckets(options);
4638
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4639
+ const localVarOperationServerBasePath = operationServerMap['FilesV1Api.filesV1ControllerGetBuckets']?.[localVarOperationServerIndex]?.url;
4640
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4641
+ },
4642
+ /**
4643
+ *
4644
+ * @summary Get presigned get url
4645
+ * @param {string} filepath
4646
+ * @param {*} [options] Override http request option.
4647
+ * @throws {RequiredError}
4648
+ */
4649
+ async filesV1ControllerGetPresignedGetUrl(filepath: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresignedGetDataDto>> {
4650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.filesV1ControllerGetPresignedGetUrl(filepath, options);
4651
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4652
+ const localVarOperationServerBasePath = operationServerMap['FilesV1Api.filesV1ControllerGetPresignedGetUrl']?.[localVarOperationServerIndex]?.url;
4653
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4654
+ },
4655
+ /**
4656
+ *
4657
+ * @summary Get presigned post url
4658
+ * @param {PublicGetPresignedPostUrlRequestDto} publicGetPresignedPostUrlRequestDto
4659
+ * @param {*} [options] Override http request option.
4660
+ * @throws {RequiredError}
4661
+ */
4662
+ async filesV1ControllerGetPresignedPostUrl(publicGetPresignedPostUrlRequestDto: PublicGetPresignedPostUrlRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresignedPostDataDto>> {
4663
+ const localVarAxiosArgs = await localVarAxiosParamCreator.filesV1ControllerGetPresignedPostUrl(publicGetPresignedPostUrlRequestDto, options);
4664
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4665
+ const localVarOperationServerBasePath = operationServerMap['FilesV1Api.filesV1ControllerGetPresignedPostUrl']?.[localVarOperationServerIndex]?.url;
4666
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4667
+ },
4668
+ }
4669
+ };
4670
+
4671
+ /**
4672
+ * FilesV1Api - factory interface
4673
+ * @export
4674
+ */
4675
+ export const FilesV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4676
+ const localVarFp = FilesV1ApiFp(configuration)
4677
+ return {
4678
+ /**
4679
+ *
4680
+ * @summary Get buckets
4681
+ * @param {*} [options] Override http request option.
4682
+ * @throws {RequiredError}
4683
+ */
4684
+ filesV1ControllerGetBuckets(options?: RawAxiosRequestConfig): AxiosPromise<void> {
4685
+ return localVarFp.filesV1ControllerGetBuckets(options).then((request) => request(axios, basePath));
4686
+ },
4687
+ /**
4688
+ *
4689
+ * @summary Get presigned get url
4690
+ * @param {FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest} requestParameters Request parameters.
4691
+ * @param {*} [options] Override http request option.
4692
+ * @throws {RequiredError}
4693
+ */
4694
+ filesV1ControllerGetPresignedGetUrl(requestParameters: FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<PresignedGetDataDto> {
4695
+ return localVarFp.filesV1ControllerGetPresignedGetUrl(requestParameters.filepath, options).then((request) => request(axios, basePath));
4696
+ },
4697
+ /**
4698
+ *
4699
+ * @summary Get presigned post url
4700
+ * @param {FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest} requestParameters Request parameters.
4701
+ * @param {*} [options] Override http request option.
4702
+ * @throws {RequiredError}
4703
+ */
4704
+ filesV1ControllerGetPresignedPostUrl(requestParameters: FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<PresignedPostDataDto> {
4705
+ return localVarFp.filesV1ControllerGetPresignedPostUrl(requestParameters.publicGetPresignedPostUrlRequestDto, options).then((request) => request(axios, basePath));
4706
+ },
4707
+ };
4708
+ };
4709
+
4710
+ /**
4711
+ * FilesV1Api - interface
4712
+ * @export
4713
+ * @interface FilesV1Api
4714
+ */
4715
+ export interface FilesV1ApiInterface {
4716
+ /**
4717
+ *
4718
+ * @summary Get buckets
4719
+ * @param {*} [options] Override http request option.
4720
+ * @throws {RequiredError}
4721
+ * @memberof FilesV1ApiInterface
4722
+ */
4723
+ filesV1ControllerGetBuckets(options?: RawAxiosRequestConfig): AxiosPromise<void>;
4724
+
4725
+ /**
4726
+ *
4727
+ * @summary Get presigned get url
4728
+ * @param {FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest} requestParameters Request parameters.
4729
+ * @param {*} [options] Override http request option.
4730
+ * @throws {RequiredError}
4731
+ * @memberof FilesV1ApiInterface
4732
+ */
4733
+ filesV1ControllerGetPresignedGetUrl(requestParameters: FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<PresignedGetDataDto>;
4734
+
4735
+ /**
4736
+ *
4737
+ * @summary Get presigned post url
4738
+ * @param {FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest} requestParameters Request parameters.
4739
+ * @param {*} [options] Override http request option.
4740
+ * @throws {RequiredError}
4741
+ * @memberof FilesV1ApiInterface
4742
+ */
4743
+ filesV1ControllerGetPresignedPostUrl(requestParameters: FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest, options?: RawAxiosRequestConfig): AxiosPromise<PresignedPostDataDto>;
4744
+
4745
+ }
4746
+
4747
+ /**
4748
+ * Request parameters for filesV1ControllerGetPresignedGetUrl operation in FilesV1Api.
4749
+ * @export
4750
+ * @interface FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest
4751
+ */
4752
+ export interface FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest {
4753
+ /**
4754
+ *
4755
+ * @type {string}
4756
+ * @memberof FilesV1ApiFilesV1ControllerGetPresignedGetUrl
4757
+ */
4758
+ readonly filepath: string
4759
+ }
4760
+
4761
+ /**
4762
+ * Request parameters for filesV1ControllerGetPresignedPostUrl operation in FilesV1Api.
4763
+ * @export
4764
+ * @interface FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest
4765
+ */
4766
+ export interface FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest {
4767
+ /**
4768
+ *
4769
+ * @type {PublicGetPresignedPostUrlRequestDto}
4770
+ * @memberof FilesV1ApiFilesV1ControllerGetPresignedPostUrl
4771
+ */
4772
+ readonly publicGetPresignedPostUrlRequestDto: PublicGetPresignedPostUrlRequestDto
4773
+ }
4774
+
4775
+ /**
4776
+ * FilesV1Api - object-oriented interface
4777
+ * @export
4778
+ * @class FilesV1Api
4779
+ * @extends {BaseAPI}
4780
+ */
4781
+ export class FilesV1Api extends BaseAPI implements FilesV1ApiInterface {
4782
+ /**
4783
+ *
4784
+ * @summary Get buckets
4785
+ * @param {*} [options] Override http request option.
4786
+ * @throws {RequiredError}
4787
+ * @memberof FilesV1Api
4788
+ */
4789
+ public filesV1ControllerGetBuckets(options?: RawAxiosRequestConfig) {
4790
+ return FilesV1ApiFp(this.configuration).filesV1ControllerGetBuckets(options).then((request) => request(this.axios, this.basePath));
4791
+ }
4792
+
4793
+ /**
4794
+ *
4795
+ * @summary Get presigned get url
4796
+ * @param {FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest} requestParameters Request parameters.
4797
+ * @param {*} [options] Override http request option.
4798
+ * @throws {RequiredError}
4799
+ * @memberof FilesV1Api
4800
+ */
4801
+ public filesV1ControllerGetPresignedGetUrl(requestParameters: FilesV1ApiFilesV1ControllerGetPresignedGetUrlRequest, options?: RawAxiosRequestConfig) {
4802
+ return FilesV1ApiFp(this.configuration).filesV1ControllerGetPresignedGetUrl(requestParameters.filepath, options).then((request) => request(this.axios, this.basePath));
4803
+ }
4804
+
4805
+ /**
4806
+ *
4807
+ * @summary Get presigned post url
4808
+ * @param {FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest} requestParameters Request parameters.
4809
+ * @param {*} [options] Override http request option.
4810
+ * @throws {RequiredError}
4811
+ * @memberof FilesV1Api
4812
+ */
4813
+ public filesV1ControllerGetPresignedPostUrl(requestParameters: FilesV1ApiFilesV1ControllerGetPresignedPostUrlRequest, options?: RawAxiosRequestConfig) {
4814
+ return FilesV1ApiFp(this.configuration).filesV1ControllerGetPresignedPostUrl(requestParameters.publicGetPresignedPostUrlRequestDto, options).then((request) => request(this.axios, this.basePath));
4815
+ }
4816
+ }
4817
+
4818
+
4819
+
4400
4820
  /**
4401
4821
  * IngredientsV1Api - axios parameter creator
4402
4822
  * @export