Browse Source

chore: Update some config values & generated schema types

Michael Bromley 6 years ago
parent
commit
b75a55823d

+ 3 - 3
packages/admin-ui/src/vendure-ui-config.json

@@ -1,7 +1,7 @@
 {
-  "apiHost": "auto",
-  "apiPort": "auto",
+  "apiHost": "http://localhost",
+  "apiPort": "3000",
   "adminApiPath": "admin-api",
   "tokenMethod": "cookie",
   "authTokenHeaderKey": "vendure-auth-token"
-}
+}

+ 0 - 137
packages/core/e2e/graphql/generated-e2e-admin-types.ts

@@ -4289,79 +4289,6 @@ export type GetRunningJobsQuery = { __typename?: 'Query' } & {
     jobs: Array<{ __typename?: 'JobInfo' } & Pick<JobInfo, 'name' | 'state'>>;
 };
 
-export type GetProductsQueryVariables = {
-    options?: Maybe<ProductListOptions>;
-};
-
-export type GetProductsQuery = { __typename?: 'Query' } & {
-    products: { __typename?: 'ProductList' } & Pick<ProductList, 'totalItems'> & {
-            items: Array<
-                { __typename?: 'Product' } & Pick<Product, 'id' | 'name' | 'slug' | 'description'> & {
-                        featuredAsset: Maybe<
-                            { __typename?: 'Asset' } & Pick<Asset, 'id' | 'name' | 'preview' | 'source'>
-                        >;
-                        assets: Array<
-                            { __typename?: 'Asset' } & Pick<Asset, 'id' | 'name' | 'preview' | 'source'>
-                        >;
-                        optionGroups: Array<
-                            { __typename?: 'ProductOptionGroup' } & Pick<
-                                ProductOptionGroup,
-                                'id' | 'code' | 'name'
-                            >
-                        >;
-                        facetValues: Array<
-                            { __typename?: 'FacetValue' } & Pick<FacetValue, 'id' | 'name'> & {
-                                    facet: { __typename?: 'Facet' } & Pick<Facet, 'id' | 'name'>;
-                                }
-                        >;
-                        variants: Array<
-                            { __typename?: 'ProductVariant' } & Pick<
-                                ProductVariant,
-                                'id' | 'name' | 'sku' | 'price' | 'stockOnHand' | 'trackInventory'
-                            > & {
-                                    taxCategory: { __typename?: 'TaxCategory' } & Pick<
-                                        TaxCategory,
-                                        'id' | 'name'
-                                    >;
-                                    options: Array<
-                                        { __typename?: 'ProductOption' } & Pick<ProductOption, 'id' | 'code'>
-                                    >;
-                                    assets: Array<
-                                        { __typename?: 'Asset' } & Pick<
-                                            Asset,
-                                            'id' | 'name' | 'preview' | 'source'
-                                        >
-                                    >;
-                                    featuredAsset: Maybe<
-                                        { __typename?: 'Asset' } & Pick<
-                                            Asset,
-                                            'id' | 'name' | 'preview' | 'source'
-                                        >
-                                    >;
-                                    facetValues: Array<
-                                        { __typename?: 'FacetValue' } & Pick<
-                                            FacetValue,
-                                            'id' | 'code' | 'name'
-                                        > & { facet: { __typename?: 'Facet' } & Pick<Facet, 'id' | 'name'> }
-                                    >;
-                                    stockMovements: { __typename?: 'StockMovementList' } & {
-                                        items: Array<
-                                            {
-                                                __typename?:
-                                                    | 'StockAdjustment'
-                                                    | 'Sale'
-                                                    | 'Cancellation'
-                                                    | 'Return';
-                                            } & Pick<StockMovement, 'id' | 'type' | 'quantity'>
-                                        >;
-                                    };
-                                }
-                        >;
-                    }
-            >;
-        };
-};
-
 export type UpdateOptionGroupMutationVariables = {
     input: UpdateProductOptionGroupInput;
 };
@@ -5647,70 +5574,6 @@ export namespace GetRunningJobs {
     export type Jobs = NonNullable<GetRunningJobsQuery['jobs'][0]>;
 }
 
-export namespace GetProducts {
-    export type Variables = GetProductsQueryVariables;
-    export type Query = GetProductsQuery;
-    export type Products = GetProductsQuery['products'];
-    export type Items = NonNullable<GetProductsQuery['products']['items'][0]>;
-    export type FeaturedAsset = NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['featuredAsset']
-    >;
-    export type Assets = NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['assets'][0]>;
-    export type OptionGroups = NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['optionGroups'][0]
-    >;
-    export type FacetValues = NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['facetValues'][0]
-    >;
-    export type Facet = (NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['facetValues'][0]
-    >)['facet'];
-    export type Variants = NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-    >;
-    export type TaxCategory = (NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-    >)['taxCategory'];
-    export type Options = NonNullable<
-        (NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]>)['options'][0]
-    >;
-    export type _Assets = NonNullable<
-        (NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]>)['assets'][0]
-    >;
-    export type _FeaturedAsset = NonNullable<
-        (NonNullable<(NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]>)['featuredAsset']
-    >;
-    export type _FacetValues = NonNullable<
-        (NonNullable<
-            (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-        >)['facetValues'][0]
-    >;
-    export type _Facet = (NonNullable<
-        (NonNullable<
-            (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-        >)['facetValues'][0]
-    >)['facet'];
-    export type StockMovements = (NonNullable<
-        (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-    >)['stockMovements'];
-    export type _Items = NonNullable<
-        (NonNullable<
-            (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-        >)['stockMovements']['items'][0]
-    >;
-    export type StockMovementInlineFragment = DiscriminateUnion<
-        RequireField<
-            NonNullable<
-                (NonNullable<
-                    (NonNullable<GetProductsQuery['products']['items'][0]>)['variants'][0]
-                >)['stockMovements']['items'][0]
-            >,
-            '__typename'
-        >,
-        { __typename: 'StockMovement' }
-    >;
-}
-
 export namespace UpdateOptionGroup {
     export type Variables = UpdateOptionGroupMutationVariables;
     export type Mutation = UpdateOptionGroupMutation;

+ 2 - 9
packages/dev-server/dev-config.ts

@@ -9,12 +9,10 @@ import {
     LogLevel,
     VendureConfig,
 } from '@vendure/core';
-import { ElasticsearchPlugin } from '@vendure/elasticsearch-plugin';
 import { defaultEmailHandlers, EmailPlugin } from '@vendure/email-plugin';
 import path from 'path';
 import { ConnectionOptions } from 'typeorm';
 
-import { RestPlugin } from './rest-plugin';
 import { UiPlugin } from './ui-plugin/ui-plugin';
 
 /**
@@ -37,12 +35,7 @@ export const devConfig: VendureConfig = {
     paymentOptions: {
         paymentMethodHandlers: [examplePaymentHandler],
     },
-    customFields: {
-        /*Product: [
-            { type: 'string', name: 'name' },
-            { type: 'datetime', name: 'expires' },
-        ],*/
-    },
+    customFields: {},
     logger: new DefaultLogger({ level: LogLevel.Info }),
     importExportOptions: {
         importAssetsDir: path.join(__dirname, 'import-assets'),
@@ -60,7 +53,7 @@ export const devConfig: VendureConfig = {
         // }),
         EmailPlugin.init({
             devMode: true,
-            handlers: defaultEmailHandlers,
+            handlers: defaultEmailHandlers as any,
             templatePath: path.join(__dirname, '../email-plugin/templates'),
             outputPath: path.join(__dirname, 'test-emails'),
             mailboxPort: 5003,

File diff suppressed because it is too large
+ 0 - 0
schema-admin.json


File diff suppressed because it is too large
+ 0 - 0
schema-shop.json


Some files were not shown because too many files changed in this diff