diff --git a/.changeset/smooth-suits-cough.md b/.changeset/smooth-suits-cough.md new file mode 100644 index 000000000..00a379b5d --- /dev/null +++ b/.changeset/smooth-suits-cough.md @@ -0,0 +1,5 @@ +--- +'@commercetools-test-data/graphql-types': minor +--- + +Include Core and MC generated types to the package. diff --git a/models/user/package.json b/models/user/package.json index cf7787b15..5da1796a7 100644 --- a/models/user/package.json +++ b/models/user/package.json @@ -21,6 +21,7 @@ "@babel/runtime-corejs3": "^7.17.9", "@commercetools-test-data/commons": "6.11.0", "@commercetools-test-data/core": "6.11.0", + "@commercetools-test-data/graphql-types": "7.0.0", "@commercetools-test-data/project": "workspace:^", "@commercetools-test-data/utils": "6.11.0", "@commercetools/platform-sdk": "^7.0.0", diff --git a/models/user/src/mc-user/types.ts b/models/user/src/mc-user/types.ts index 6eecb9fb7..451a4f645 100644 --- a/models/user/src/mc-user/types.ts +++ b/models/user/src/mc-user/types.ts @@ -2,7 +2,7 @@ import type { TBuilder } from '@commercetools-test-data/core'; import type { TMcUser as TMcUserGraphql, TMcIdTokenUserInfo as TMcIdTokenUserInfoGraphql, -} from '../../../../graphql-types/src/generated/mc'; +} from '@commercetools-test-data/graphql-types/src/generated/mc'; export type { TMcUserGraphql, TMcIdTokenUserInfoGraphql }; export type TMcUser = Omit; diff --git a/models/user/src/user/types.ts b/models/user/src/user/types.ts index c626fc32c..132200afe 100644 --- a/models/user/src/user/types.ts +++ b/models/user/src/user/types.ts @@ -1,5 +1,5 @@ import type { TBuilder } from '@commercetools-test-data/core'; -import { TCoreUser } from '../../../../graphql-types/src/generated/core'; +import { TCoreUser } from '@commercetools-test-data/graphql-types/src/generated/core'; type BusinessRole = | 'ExecutiveManagement' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bfbcd8d36..254e64183 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1054,6 +1054,9 @@ importers: '@commercetools-test-data/core': specifier: 6.11.0 version: 6.11.0 + '@commercetools-test-data/graphql-types': + specifier: 7.0.0 + version: link:../../graphql-types '@commercetools-test-data/project': specifier: workspace:^ version: link:../project