@malevich-studio/strapi-sdk-typescript 1.2.10 → 1.2.11

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/cli.mjs CHANGED
@@ -21376,6 +21376,11 @@ class Strapi {
21376
21376
  }
21377
21377
  return response;
21378
21378
  }
21379
+ async baseMe(data) {
21380
+ return await this.fetchData('users/me', data, {
21381
+ method: 'GET',
21382
+ });
21383
+ }
21379
21384
  async getLocales(params) {
21380
21385
  return await this.baseFetch('i18n/locales', _.merge({
21381
21386
  headers: {
@@ -22005,6 +22010,10 @@ async function generateStrapiTypes(strapi) {
22005
22010
  ` return await this.baseChangePassword<User>(password, currentPassword);`,
22006
22011
  ' }',
22007
22012
  ' ',
22013
+ ` public async me(data: UserInput) {`,
22014
+ ` return await this.baseMer<User, UserInput>(data);`,
22015
+ ' }',
22016
+ ' ',
22008
22017
  methods.join('\n\n'),
22009
22018
  '}',
22010
22019
  '',