@hautechai/sdk 2.24.0 → 2.25.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/dist/index.d.mts CHANGED
@@ -15625,6 +15625,7 @@ declare const getDirectoryApiDefinitions: () => {
15625
15625
  list: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<UserProfileDto[], any>>;
15626
15626
  self: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<UserProfileDto, any>>;
15627
15627
  getByHandle: (handle: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicUserProfileDto | null, any>>;
15628
+ getById: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicUserProfileDto | null, any>>;
15628
15629
  update: (id: string, updateUserProfileDto: UpdateUserProfileDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<UserProfileDto, any>>;
15629
15630
  }>;
15630
15631
  };
package/dist/index.d.ts CHANGED
@@ -15625,6 +15625,7 @@ declare const getDirectoryApiDefinitions: () => {
15625
15625
  list: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<UserProfileDto[], any>>;
15626
15626
  self: (options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<UserProfileDto, any>>;
15627
15627
  getByHandle: (handle: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicUserProfileDto | null, any>>;
15628
+ getById: (id: string, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<PublicUserProfileDto | null, any>>;
15628
15629
  update: (id: string, updateUserProfileDto: UpdateUserProfileDto, options?: axios.AxiosRequestConfig<any> | undefined) => Promise<axios.AxiosResponse<UserProfileDto, any>>;
15629
15630
  }>;
15630
15631
  };
package/dist/index.js CHANGED
@@ -16942,6 +16942,15 @@ var getUserProfiles = () => {
16942
16942
  options
16943
16943
  );
16944
16944
  };
16945
+ const getById = (id, options) => {
16946
+ return axiosMutator(
16947
+ {
16948
+ url: `/api/v1/user-profiles/${id}`,
16949
+ method: "GET"
16950
+ },
16951
+ options
16952
+ );
16953
+ };
16945
16954
  const updateUserProfile = (id, updateUserProfileDto, options) => {
16946
16955
  return axiosMutator(
16947
16956
  {
@@ -16953,7 +16962,7 @@ var getUserProfiles = () => {
16953
16962
  options
16954
16963
  );
16955
16964
  };
16956
- return { createUserProfile, getUserProfiles: getUserProfiles2, getSelfProfile, getByHandle, updateUserProfile };
16965
+ return { createUserProfile, getUserProfiles: getUserProfiles2, getSelfProfile, getByHandle, getById, updateUserProfile };
16957
16966
  };
16958
16967
 
16959
16968
  // src/sdk/api-definitions/user-profiles.ts
@@ -16964,6 +16973,7 @@ var useUserProfilesApi = () => {
16964
16973
  list: api.getUserProfiles,
16965
16974
  self: api.getSelfProfile,
16966
16975
  getByHandle: wrapApiCallNullable(api.getByHandle),
16976
+ getById: wrapApiCallNullable(api.getById),
16967
16977
  update: api.updateUserProfile
16968
16978
  });
16969
16979
  };