Skip to content

Commit

Permalink
fix(core): Add date fields to graphql Country type
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Oct 4, 2019
1 parent 2ca9cc1 commit 818be24
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/common/src/generated-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ export type ConfigurableOperationInput = {
export type Country = Node & {
__typename?: 'Country';
id: Scalars['ID'];
createdAt: Scalars['DateTime'];
updatedAt: Scalars['DateTime'];
languageCode: LanguageCode;
code: Scalars['String'];
name: Scalars['String'];
Expand Down
6 changes: 6 additions & 0 deletions packages/common/src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ export type ConfigurableOperationInput = {
export type Country = Node & {
__typename?: 'Country',
id: Scalars['ID'],
createdAt: Scalars['DateTime'],
updatedAt: Scalars['DateTime'],
languageCode: LanguageCode,
code: Scalars['String'],
name: Scalars['String'],
Expand All @@ -339,6 +341,8 @@ export type Country = Node & {
};

export type CountryFilterParameter = {
createdAt?: Maybe<DateOperators>,
updatedAt?: Maybe<DateOperators>,
languageCode?: Maybe<StringOperators>,
code?: Maybe<StringOperators>,
name?: Maybe<StringOperators>,
Expand All @@ -360,6 +364,8 @@ export type CountryListOptions = {

export type CountrySortParameter = {
id?: Maybe<SortOrder>,
createdAt?: Maybe<SortOrder>,
updatedAt?: Maybe<SortOrder>,
code?: Maybe<SortOrder>,
name?: Maybe<SortOrder>,
};
Expand Down
6 changes: 6 additions & 0 deletions packages/core/e2e/graphql/generated-e2e-admin-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ export type ConfigurableOperationInput = {
export type Country = Node & {
__typename?: 'Country';
id: Scalars['ID'];
createdAt: Scalars['DateTime'];
updatedAt: Scalars['DateTime'];
languageCode: LanguageCode;
code: Scalars['String'];
name: Scalars['String'];
Expand All @@ -339,6 +341,8 @@ export type Country = Node & {
};

export type CountryFilterParameter = {
createdAt?: Maybe<DateOperators>;
updatedAt?: Maybe<DateOperators>;
languageCode?: Maybe<StringOperators>;
code?: Maybe<StringOperators>;
name?: Maybe<StringOperators>;
Expand All @@ -360,6 +364,8 @@ export type CountryListOptions = {

export type CountrySortParameter = {
id?: Maybe<SortOrder>;
createdAt?: Maybe<SortOrder>;
updatedAt?: Maybe<SortOrder>;
code?: Maybe<SortOrder>;
name?: Maybe<SortOrder>;
};
Expand Down
2 changes: 2 additions & 0 deletions packages/core/e2e/graphql/generated-e2e-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ export type ConfigurableOperationInput = {
export type Country = Node & {
__typename?: 'Country';
id: Scalars['ID'];
createdAt: Scalars['DateTime'];
updatedAt: Scalars['DateTime'];
languageCode: LanguageCode;
code: Scalars['String'];
name: Scalars['String'];
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/api/schema/type/country.type.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type Country implements Node {
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
languageCode: LanguageCode!
code: String!
name: String!
Expand Down
2 changes: 1 addition & 1 deletion schema-admin.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion schema-shop.json

Large diffs are not rendered by default.

0 comments on commit 818be24

Please sign in to comment.