@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.cjs CHANGED
@@ -21649,13 +21649,13 @@ class Dynamiczone extends BaseRelation {
21649
21649
  }
21650
21650
  getType() {
21651
21651
  const types = this.attribute.components
21652
- .map(componentItem => getComponentName(componentItem))
21652
+ .map(componentItem => `DynamiczoneComponent<'${componentItem}', ${getComponentName(componentItem)}>`)
21653
21653
  .join(' | ');
21654
21654
  return `(${types})[]`;
21655
21655
  }
21656
21656
  getInputType() {
21657
21657
  const types = this.attribute.components
21658
- .map(componentItem => `DynamiczoneInput<'${componentItem}', ${getComponentName(componentItem)}Input>`)
21658
+ .map(componentItem => `DynamiczoneComponent<'${componentItem}', ${getComponentName(componentItem)}Input>`)
21659
21659
  .join(' | ');
21660
21660
  return `(${types})[]`;
21661
21661
  }
@@ -21853,7 +21853,7 @@ async function generateStrapiTypes(strapi) {
21853
21853
  allInterfaces.push(generateInputTypeCode(modelName, attributes));
21854
21854
  }
21855
21855
  const output = [
21856
- 'import {Strapi as StrapiBase, Query, Filters, FilterValue, RelationInput, DynamiczonePopulate, DynamiczoneInput} from "@malevich-studio/strapi-sdk-typescript";',
21856
+ 'import {Strapi as StrapiBase, Query, Filters, FilterValue, RelationInput, DynamiczonePopulate, DynamiczoneComponent} from "@malevich-studio/strapi-sdk-typescript";',
21857
21857
  'import {BlocksContent} from "@strapi/blocks-react-renderer";',
21858
21858
  '',
21859
21859
  'export default class Strapi extends StrapiBase {',