@malevich-studio/strapi-sdk-typescript 1.1.0 → 1.1.1

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
@@ -21629,13 +21629,13 @@ class Dynamiczone extends BaseRelation {
21629
21629
  }
21630
21630
  getType() {
21631
21631
  const types = this.attribute.components
21632
- .map(componentItem => getComponentName(componentItem))
21632
+ .map(componentItem => `DynamiczoneComponent<'${componentItem}', ${getComponentName(componentItem)}>`)
21633
21633
  .join(' | ');
21634
21634
  return `(${types})[]`;
21635
21635
  }
21636
21636
  getInputType() {
21637
21637
  const types = this.attribute.components
21638
- .map(componentItem => `DynamiczoneInput<'${componentItem}', ${getComponentName(componentItem)}Input>`)
21638
+ .map(componentItem => `DynamiczoneComponent<'${componentItem}', ${getComponentName(componentItem)}Input>`)
21639
21639
  .join(' | ');
21640
21640
  return `(${types})[]`;
21641
21641
  }
@@ -21833,7 +21833,7 @@ async function generateStrapiTypes(strapi) {
21833
21833
  allInterfaces.push(generateInputTypeCode(modelName, attributes));
21834
21834
  }
21835
21835
  const output = [
21836
- 'import {Strapi as StrapiBase, Query, Filters, FilterValue, RelationInput, DynamiczonePopulate, DynamiczoneInput} from "@malevich-studio/strapi-sdk-typescript";',
21836
+ 'import {Strapi as StrapiBase, Query, Filters, FilterValue, RelationInput, DynamiczonePopulate, DynamiczoneComponent} from "@malevich-studio/strapi-sdk-typescript";',
21837
21837
  'import {BlocksContent} from "@strapi/blocks-react-renderer";',
21838
21838
  '',
21839
21839
  'export default class Strapi extends StrapiBase {',