@hautechai/sdk 0.0.26 → 0.0.27

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.
@@ -3784,13 +3784,13 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
3784
3784
  accountsControllerGetSelfV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3785
3785
  /**
3786
3786
  *
3787
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
3787
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
3788
3788
  * @param {number} [limit]
3789
3789
  * @param {string} [cursor]
3790
3790
  * @param {*} [options] Override http request option.
3791
3791
  * @throws {RequiredError}
3792
3792
  */
3793
- accountsControllerListAccointsV1: (orderBy?: AccountsControllerListAccointsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3793
+ accountsControllerListAccountsV1: (orderBy?: AccountsControllerListAccountsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3794
3794
  };
3795
3795
  /**
3796
3796
  * AccountsApi - functional programming interface
@@ -3826,13 +3826,13 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
3826
3826
  accountsControllerGetSelfV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountEntity>>;
3827
3827
  /**
3828
3828
  *
3829
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
3829
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
3830
3830
  * @param {number} [limit]
3831
3831
  * @param {string} [cursor]
3832
3832
  * @param {*} [options] Override http request option.
3833
3833
  * @throws {RequiredError}
3834
3834
  */
3835
- accountsControllerListAccointsV1(orderBy?: AccountsControllerListAccointsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsDto>>;
3835
+ accountsControllerListAccountsV1(orderBy?: AccountsControllerListAccountsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountsDto>>;
3836
3836
  };
3837
3837
  /**
3838
3838
  * AccountsApi - factory interface
@@ -3868,13 +3868,13 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
3868
3868
  accountsControllerGetSelfV1(options?: RawAxiosRequestConfig): AxiosPromise<AccountEntity>;
3869
3869
  /**
3870
3870
  *
3871
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
3871
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
3872
3872
  * @param {number} [limit]
3873
3873
  * @param {string} [cursor]
3874
3874
  * @param {*} [options] Override http request option.
3875
3875
  * @throws {RequiredError}
3876
3876
  */
3877
- accountsControllerListAccointsV1(orderBy?: AccountsControllerListAccointsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListAccountsDto>;
3877
+ accountsControllerListAccountsV1(orderBy?: AccountsControllerListAccountsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<ListAccountsDto>;
3878
3878
  };
3879
3879
  /**
3880
3880
  * AccountsApi - object-oriented interface
@@ -3916,23 +3916,23 @@ export declare class AccountsApi extends BaseAPI {
3916
3916
  accountsControllerGetSelfV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountEntity, any>>;
3917
3917
  /**
3918
3918
  *
3919
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
3919
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
3920
3920
  * @param {number} [limit]
3921
3921
  * @param {string} [cursor]
3922
3922
  * @param {*} [options] Override http request option.
3923
3923
  * @throws {RequiredError}
3924
3924
  * @memberof AccountsApi
3925
3925
  */
3926
- accountsControllerListAccointsV1(orderBy?: AccountsControllerListAccointsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsDto, any>>;
3926
+ accountsControllerListAccountsV1(orderBy?: AccountsControllerListAccountsV1OrderByEnum, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAccountsDto, any>>;
3927
3927
  }
3928
3928
  /**
3929
3929
  * @export
3930
3930
  */
3931
- export declare const AccountsControllerListAccointsV1OrderByEnum: {
3931
+ export declare const AccountsControllerListAccountsV1OrderByEnum: {
3932
3932
  readonly Asc: "createdAt_ASC";
3933
3933
  readonly Desc: "createdAt_DESC";
3934
3934
  };
3935
- export type AccountsControllerListAccointsV1OrderByEnum = typeof AccountsControllerListAccointsV1OrderByEnum[keyof typeof AccountsControllerListAccointsV1OrderByEnum];
3935
+ export type AccountsControllerListAccountsV1OrderByEnum = typeof AccountsControllerListAccountsV1OrderByEnum[keyof typeof AccountsControllerListAccountsV1OrderByEnum];
3936
3936
  /**
3937
3937
  * BalancesApi - axios parameter creator
3938
3938
  * @export
@@ -597,13 +597,13 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
597
597
  },
598
598
  /**
599
599
  *
600
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
600
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
601
601
  * @param {number} [limit]
602
602
  * @param {string} [cursor]
603
603
  * @param {*} [options] Override http request option.
604
604
  * @throws {RequiredError}
605
605
  */
606
- accountsControllerListAccointsV1: async (orderBy, limit, cursor, options = {}) => {
606
+ accountsControllerListAccountsV1: async (orderBy, limit, cursor, options = {}) => {
607
607
  const localVarPath = `/v1/accounts`;
608
608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
609
609
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -692,16 +692,16 @@ export const AccountsApiFp = function (configuration) {
692
692
  },
693
693
  /**
694
694
  *
695
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
695
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
696
696
  * @param {number} [limit]
697
697
  * @param {string} [cursor]
698
698
  * @param {*} [options] Override http request option.
699
699
  * @throws {RequiredError}
700
700
  */
701
- async accountsControllerListAccointsV1(orderBy, limit, cursor, options) {
702
- const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerListAccointsV1(orderBy, limit, cursor, options);
701
+ async accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.accountsControllerListAccountsV1(orderBy, limit, cursor, options);
703
703
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
704
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerListAccointsV1']?.[localVarOperationServerIndex]?.url;
704
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.accountsControllerListAccountsV1']?.[localVarOperationServerIndex]?.url;
705
705
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
706
706
  },
707
707
  };
@@ -750,14 +750,14 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
750
750
  },
751
751
  /**
752
752
  *
753
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
753
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
754
754
  * @param {number} [limit]
755
755
  * @param {string} [cursor]
756
756
  * @param {*} [options] Override http request option.
757
757
  * @throws {RequiredError}
758
758
  */
759
- accountsControllerListAccointsV1(orderBy, limit, cursor, options) {
760
- return localVarFp.accountsControllerListAccointsV1(orderBy, limit, cursor, options).then((request) => request(axios, basePath));
759
+ accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
760
+ return localVarFp.accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(axios, basePath));
761
761
  },
762
762
  };
763
763
  };
@@ -809,21 +809,21 @@ export class AccountsApi extends BaseAPI {
809
809
  }
810
810
  /**
811
811
  *
812
- * @param {AccountsControllerListAccointsV1OrderByEnum} [orderBy]
812
+ * @param {AccountsControllerListAccountsV1OrderByEnum} [orderBy]
813
813
  * @param {number} [limit]
814
814
  * @param {string} [cursor]
815
815
  * @param {*} [options] Override http request option.
816
816
  * @throws {RequiredError}
817
817
  * @memberof AccountsApi
818
818
  */
819
- accountsControllerListAccointsV1(orderBy, limit, cursor, options) {
820
- return AccountsApiFp(this.configuration).accountsControllerListAccointsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
819
+ accountsControllerListAccountsV1(orderBy, limit, cursor, options) {
820
+ return AccountsApiFp(this.configuration).accountsControllerListAccountsV1(orderBy, limit, cursor, options).then((request) => request(this.axios, this.basePath));
821
821
  }
822
822
  }
823
823
  /**
824
824
  * @export
825
825
  */
826
- export const AccountsControllerListAccointsV1OrderByEnum = {
826
+ export const AccountsControllerListAccountsV1OrderByEnum = {
827
827
  Asc: 'createdAt_ASC',
828
828
  Desc: 'createdAt_DESC'
829
829
  };
@@ -10,5 +10,6 @@ declare const accounts: (options: SDKOptions) => {
10
10
  getByAlias: (props: {
11
11
  alias: string;
12
12
  }) => Promise<AccountEntity | undefined>;
13
+ list: () => Promise<AccountEntity[]>;
13
14
  };
14
15
  export default accounts;
@@ -12,6 +12,9 @@ const accounts = (options) => {
12
12
  getByAlias: async (props) => api.callWithReturningUndefinedOn404({
13
13
  run: (methods) => methods.accountsControllerGetAccountByAliasV1(props.alias),
14
14
  }),
15
+ list: async () => api.call({
16
+ run: (methods) => methods.accountsControllerListAccountsV1(),
17
+ })
15
18
  };
16
19
  };
17
20
  export default accounts;
@@ -2,7 +2,7 @@ import { SDKOptions } from '../../types';
2
2
  import { ImageEntity } from '../../autogenerated';
3
3
  declare const images: (options: SDKOptions) => {
4
4
  createFromFile: (props: {
5
- file: any;
5
+ file: Blob;
6
6
  }) => Promise<ImageEntity>;
7
7
  createFromUrl: (props: {
8
8
  url: string;
@@ -5,7 +5,7 @@ const images = (options) => {
5
5
  const api = useAutogeneratedAPI({ API: ImagesApi, options });
6
6
  const createFromFile = async (props) => {
7
7
  const uploadUrl = await api.call({
8
- run: (methods) => methods.imagesControllerStartUploadV1(props.file),
8
+ run: (methods) => methods.imagesControllerStartUploadV1(),
9
9
  transform: (data) => data.uploadUrl,
10
10
  });
11
11
  const formData = new FormData();
@@ -14,8 +14,7 @@ const images = (options) => {
14
14
  headers: { 'Content-Type': 'multipart/form-data' },
15
15
  });
16
16
  const fileToken = response.data.fileToken;
17
- const image = await api.call({ run: (methods) => methods.imagesControllerFinalizeUploadV1({ fileToken }) });
18
- return image;
17
+ return await api.call({ run: (methods) => methods.imagesControllerFinalizeUploadV1({ fileToken }) });
19
18
  };
20
19
  return {
21
20
  createFromFile,
@@ -18,6 +18,7 @@ export declare const createSDK: (options: SDKOptions) => {
18
18
  getByAlias: (props: {
19
19
  alias: string;
20
20
  }) => Promise<import("../types").AccountEntity | undefined>;
21
+ list: () => Promise<import("../types").AccountEntity[]>;
21
22
  };
22
23
  balances: {
23
24
  add: (props: {
@@ -79,7 +80,7 @@ export declare const createSDK: (options: SDKOptions) => {
79
80
  };
80
81
  images: {
81
82
  createFromFile: (props: {
82
- file: any;
83
+ file: Blob;
83
84
  }) => Promise<import("../types").ImageEntity>;
84
85
  createFromUrl: (props: {
85
86
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hautechai/sdk",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "license": "MIT",
5
5
  "keywords": [],
6
6
  "repository": {