isaced / appstore-connect-sdk

A TypeScript module for Node.js that interacts with the App Store Connect API, providing support for all APIs based on OpenAPI specification.
MIT License
27 stars 8 forks source link

Issues with redeclared block-scoped variables #1

Closed chbeer closed 1 year ago

chbeer commented 1 year ago
node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2023:22 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetCollectionFieldsInAppPurchasesEnum'.

2023 export declare const AppsGetCollectionFieldsInAppPurchasesEnum: {
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2030:13 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetCollectionFieldsInAppPurchasesEnum'.

2030 export type AppsGetCollectionFieldsInAppPurchasesEnum = typeof AppsGetCollectionFieldsInAppPurchasesEnum[keyof typeof AppsGetCollectionFieldsInAppPurchasesEnum];
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2044:22 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetCollectionFieldsInAppPurchasesEnum'.

2044 export declare const AppsGetCollectionFieldsInAppPurchasesEnum: {
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2061:13 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetCollectionFieldsInAppPurchasesEnum'.

2061 export type AppsGetCollectionFieldsInAppPurchasesEnum = typeof AppsGetCollectionFieldsInAppPurchasesEnum[keyof typeof AppsGetCollectionFieldsInAppPurchasesEnum];
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2449:22 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetInstanceFieldsInAppPurchasesEnum'.

2449 export declare const AppsGetInstanceFieldsInAppPurchasesEnum: {
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2456:13 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetInstanceFieldsInAppPurchasesEnum'.

2456 export type AppsGetInstanceFieldsInAppPurchasesEnum = typeof AppsGetInstanceFieldsInAppPurchasesEnum[keyof typeof AppsGetInstanceFieldsInAppPurchasesEnum];
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2470:22 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetInstanceFieldsInAppPurchasesEnum'.

2470 export declare const AppsGetInstanceFieldsInAppPurchasesEnum: {
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2487:13 - error TS2451: Cannot redeclare block-scoped variable 'AppsGetInstanceFieldsInAppPurchasesEnum'.

2487 export type AppsGetInstanceFieldsInAppPurchasesEnum = typeof AppsGetInstanceFieldsInAppPurchasesEnum[keyof typeof AppsGetInstanceFieldsInAppPurchasesEnum];
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/CiProductsApi.d.ts:300:22 - error TS2451: Cannot redeclare block-scoped variable 'CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum'.

300 export declare const CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum: {
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/CiProductsApi.d.ts:307:13 - error TS2451: Cannot redeclare block-scoped variable 'CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum'.

307 export type CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum = typeof CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum[keyof typeof CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum];
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/CiProductsApi.d.ts:326:22 - error TS2451: Cannot redeclare block-scoped variable 'CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum'.

326 export declare const CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum: {
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/appstore-connect-sdk/dist/openapi/apis/CiProductsApi.d.ts:343:13 - error TS2451: Cannot redeclare block-scoped variable 'CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum'.

343 export type CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum = typeof CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum[keyof typeof CiProductsAppGetToOneRelatedFieldsInAppPurchasesEnum];
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 12 errors in 2 files.

Errors  Files
     8  node_modules/appstore-connect-sdk/dist/openapi/apis/AppsApi.d.ts:2023
     4  node_modules/appstore-connect-sdk/dist/openapi/apis/CiProductsApi.d.ts:300
isaced commented 1 year ago

Hi @chbeer, It looks like there was some problem with the code generated by OpenAPI Generator.

Version 0.0.6 was released to fix the issue, please try again.

chbeer commented 1 year ago

Works now 👍