@malevich-studio/strapi-sdk-typescript 1.2.22 → 1.2.23

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
@@ -21413,7 +21413,7 @@ class Strapi {
21413
21413
  ...params,
21414
21414
  });
21415
21415
  }
21416
- async updateUser(endpoint, id, data, params = {}) {
21416
+ async updateBaseUser(endpoint, id, data, params = {}) {
21417
21417
  return await this.fetchData(`${endpoint}/${id}`, data, {
21418
21418
  method: 'PUT',
21419
21419
  ...params,
@@ -21954,7 +21954,7 @@ function generateMethodsCode(contentType, permissions) {
21954
21954
  ].join('\n'));
21955
21955
  methods.push([
21956
21956
  ` public async update${getContentTypeName(contentType.schema.singularName)}(id: string, data: ${modelName}Input, params?: RequestInit) {`,
21957
- ` return await this.update${modelName === 'User' ? 'User' : ''}<${modelName}, ${modelName}Input>('${contentType.schema.pluralName}', id, data, params);`,
21957
+ ` return await this.update${modelName === 'User' ? 'BaseUser' : ''}<${modelName}, ${modelName}Input>('${contentType.schema.pluralName}', id, data, params);`,
21958
21958
  ' }',
21959
21959
  ].join('\n'));
21960
21960
  methods.push([