@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.cjs CHANGED
@@ -21396,6 +21396,11 @@ class Strapi {
21396
21396
  }
21397
21397
  return response;
21398
21398
  }
21399
+ async baseMe(data) {
21400
+ return await this.fetchData('users/me', data, {
21401
+ method: 'GET',
21402
+ });
21403
+ }
21399
21404
  async getLocales(params) {
21400
21405
  return await this.baseFetch('i18n/locales', _.merge({
21401
21406
  headers: {
@@ -22025,6 +22030,10 @@ async function generateStrapiTypes(strapi) {
22025
22030
  ` return await this.baseChangePassword<User>(password, currentPassword);`,
22026
22031
  ' }',
22027
22032
  ' ',
22033
+ ` public async me(data: UserInput) {`,
22034
+ ` return await this.baseMer<User, UserInput>(data);`,
22035
+ ' }',
22036
+ ' ',
22028
22037
  methods.join('\n\n'),
22029
22038
  '}',
22030
22039
  '',