Skip to content

Commit

Permalink
fix(admin-ui): Fix ts error introduced by ShippingMethods custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 9, 2020
1 parent 0011ea9 commit 8c38ad1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
21 changes: 20 additions & 1 deletion packages/admin-ui/src/lib/core/src/common/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4816,7 +4816,7 @@ export type OrderLineFragment = (

export type OrderDetailFragment = (
{ __typename?: 'Order' }
& Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'subTotal' | 'subTotalBeforeTax' | 'totalBeforeTax' | 'currencyCode' | 'shipping' | 'shippingWithTax' | 'total'>
& Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'nextStates' | 'active' | 'subTotal' | 'subTotalBeforeTax' | 'totalBeforeTax' | 'currencyCode' | 'shipping' | 'shippingWithTax' | 'total'>
& { customer?: Maybe<(
{ __typename?: 'Customer' }
& Pick<Customer, 'id' | 'firstName' | 'lastName'>
Expand Down Expand Up @@ -6506,6 +6506,24 @@ export type GetServerConfigQuery = (
) | (
{ __typename?: 'DateTimeCustomFieldConfig' }
& CustomFields_DateTimeCustomFieldConfig_Fragment
)>, ShippingMethod: Array<(
{ __typename?: 'StringCustomFieldConfig' }
& CustomFields_StringCustomFieldConfig_Fragment
) | (
{ __typename?: 'LocaleStringCustomFieldConfig' }
& CustomFields_LocaleStringCustomFieldConfig_Fragment
) | (
{ __typename?: 'IntCustomFieldConfig' }
& CustomFields_IntCustomFieldConfig_Fragment
) | (
{ __typename?: 'FloatCustomFieldConfig' }
& CustomFields_FloatCustomFieldConfig_Fragment
) | (
{ __typename?: 'BooleanCustomFieldConfig' }
& CustomFields_BooleanCustomFieldConfig_Fragment
) | (
{ __typename?: 'DateTimeCustomFieldConfig' }
& CustomFields_DateTimeCustomFieldConfig_Fragment
)>, User: Array<(
{ __typename?: 'StringCustomFieldConfig' }
& CustomFields_StringCustomFieldConfig_Fragment
Expand Down Expand Up @@ -7865,6 +7883,7 @@ export namespace GetServerConfig {
export type ProductOption = CustomFieldsFragment;
export type ProductOptionGroup = CustomFieldsFragment;
export type ProductVariant = CustomFieldsFragment;
export type ShippingMethod = CustomFieldsFragment;
export type User = CustomFieldsFragment;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ export const GET_SERVER_CONFIG = gql`
ProductVariant {
...CustomFields
}
ShippingMethod {
...CustomFields
}
User {
...CustomFields
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-server/dev-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const devConfig: VendureConfig = {
paymentMethodHandlers: [examplePaymentHandler],
},
customFields: {},
logger: new DefaultLogger({ level: LogLevel.Info }),
logger: new DefaultLogger({ level: LogLevel.Debug }),
importExportOptions: {
importAssetsDir: path.join(__dirname, 'import-assets'),
},
Expand Down

0 comments on commit 8c38ad1

Please sign in to comment.